Deployingggg
This commit is contained in:
parent
fa6e6f175d
commit
8ef108bd52
|
@ -0,0 +1,44 @@
|
||||||
|
# Excel => LaTeX
|
||||||
|
|
||||||
|
A silly Javascript tool for converting Excel spreadsheets into LaTeX tables.
|
||||||
|
|
||||||
|
Right now I don't have any settings for what the resulting table looks like...I want to add this eventually, it's not difficult or anything. Sorry in advance if the formatting isn't what you're looking for, I'll make it more flexible in the future!
|
||||||
|
|
||||||
|
I just whipped this up in a few hours for fun, and haven't really tested it much. Pleasepleaseplease let me know if you manage to break it, I'd really appreciate it.
|
||||||
|
|
||||||
|
### Compatability
|
||||||
|
|
||||||
|
Not completely sure, but most likely newer versions of Chrome, Firefox, and IE 10 will work great with this. Only tested on Chrome...this is just a little experiment ;)
|
||||||
|
|
||||||
|
### Shout outs
|
||||||
|
|
||||||
|
Thanks to <a href="http://gildas-lormeau.github.com/zip.js/">zip.js</a> for making this thing possible. It's a badass library.
|
||||||
|
|
||||||
|
### License
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright (c) 2012, Eric Wood
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the author nor the
|
||||||
|
names of its contributors may be used to endorse or promote products
|
||||||
|
derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL ERIC WOOD BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
```
|
|
@ -124,6 +124,7 @@ excelParser = {
|
||||||
$('body').bind('dragover', function(event) {
|
$('body').bind('dragover', function(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
event.dataTransfer.dropEffect = 'copy';
|
||||||
});
|
});
|
||||||
|
|
||||||
$('body').bind('drop', excelParser.handleFile);
|
$('body').bind('drop', excelParser.handleFile);
|
||||||
|
|
20
index.html
20
index.html
|
@ -1,12 +1,22 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Excel to LaTeX converter</title>
|
<meta charset='utf-8'>
|
||||||
|
<title>Excel => LaTeX</title>
|
||||||
|
<link href="style.css" rel="stylesheet" type="text/css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Excel to LaTeX converter</h1>
|
<a href="https://github.com/eric-wood/excel2latex"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
||||||
<p>Drag any .xlsx file onto the page to begin!</p>
|
<div class="center">
|
||||||
<h3>LaTeX output:</h3>
|
<h1 class="title">excel => LaTeX</h1>
|
||||||
<textarea id="latex-output" readonly="readonly" rows="30" cols="80"></textarea>
|
<h4 class="info">Drag any .xlsx file onto the page to convert it into a LaTeX table</h4>
|
||||||
|
<div class="content">
|
||||||
|
<textarea id="latex-output" readonly="readonly"></textarea>
|
||||||
|
<p>Mostly untested, so if you find a bug or have a feature request, <a href="https://github.com/eric-wood/excel2latex/issues">let me know!</a>
|
||||||
|
<p class="disclaimer">Note: this only works with .xlsx files. That means .xls files will <b>not</b> work.</p>
|
||||||
|
<p>Lovingly hacked together by <a href="http://ericwood.org">Eric Wood</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="zip.js"></script>
|
<script type="text/javascript" src="zip.js"></script>
|
||||||
<script type="text/javascript" src="converter.js"></script>
|
<script type="text/javascript" src="converter.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue