-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.html
More file actions
1384 lines (1303 loc) · 67.2 KB
/
index.html
File metadata and controls
1384 lines (1303 loc) · 67.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" id="meta-viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A powerful and robust LaTeX, ConTeXt, Plain TeX, PreTeXt, EPlain, Markdown, Textile, CSV and HTML Table Editor and Generator. Import data from LaTeX, Excel, LibreOffice and more.">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5146982563696073"
crossorigin="anonymous"></script>
<title>LaTeX Tables Editor</title>
<link href="css.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<script type="text/javascript" src="js/jquery.min.js">
</script>
<script type="text/javascript" src="js/bootstrap.min.js">
</script>
<script type="text/javascript" src="table.js">
</script>
<script type="text/javascript" src="color.js">
</script>
<script type="text/javascript" src="tableDecimal.js">
</script>
<script type="text/javascript" src="js.js"></script>
<script type="text/javascript">
Table.new = true;
</script>
</head>
<body>
<div id="overlay"></div>
<div id="font-backdrop"></div>
<div class="border-line" id="line"></div>
<div class="container-fluid">
<div id="left-panel">
<div>
<div class="alert alert-info" role="alert" style="margin:3px;">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="glyphicon glyphicon-info-sign"></span> <strong>New tool!</strong> Check out our new tool: <strong><a href="https://www.sochronos.com" target="_blank">Sochronos</a></strong>, a free online timeline editor. No registration required.
</div>
<div class="alert alert-info return-to-desktop" role="alert" style="margin:3px;">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="glyphicon glyphicon-info-sign"></span> <strong>Mobile.</strong> You are using a mobile rendering of our LaTeX table editor. <a href="#" onclick="table.requestDesktopSite()">Request desktop site for this session</a>.
</div>
<div id="mobile-bottom-menu" class="container-fluid">
<div class="mobile-row">
<div class="mobile-col" ontouchstart="table.mobileKey(1, this)" id="mobile-ctrl">Select multiple cells</div>
<div class="mobile-col" ontouchstart="table.mobileKey(2, this)" id="mobile-shift">Select multiple adjacent cells</div>
<div class="mobile-col-xs" onclick="table.prepareEmail()"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span></div>
</div>
</div>
<nav class="nav-latex" id="nav-latex">
<div class="clearfix">
<div style="float:left">
<div class="dropdown" id="top-dropdown-menu">
<span data-toggle="tooltip" title="Undo (CTRL+Z)" class="top-menu-btn" onclick="table.statesManager.undo()"><img src="icons/arrow-counterclockwise.svg"></span>
<!--<span data-toggle="tooltip" title="Redo" class="top-menu-btn" onclick="table.statesManager.undo()"><img src="icons/arrow-clockwise.svg"></span>-->
<span data-toggle="tooltip" title="Generate" class="top-menu-btn" onclick="table.generate();"><img src="icons/play-fill.svg"></span>
<div class="dropdown" style="display:inline-block">
<a class="dropdown-toggle" type="button" id="dropdownMenu1" role="button" data-target="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
File <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1" id="dropdownMenu2">
<li><a href="#" data-target="#myModal" data-toggle="modal">Create table</a></li>
<li class="divider"></li>
<li><a href="#" onclick="table.openImportModal('json')">Open JSON table</a></li>
<li><a href="#" onclick="table.saveToJSON()">Generate JSON</a></li>
<li class="divider"></li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Import Table</a>
<ul class="dropdown-menu">
<li><a href="#" onclick="table.openImportModal('latex')">LaTeX</a></li>
<li><a href="#" onclick="table.openImportModal('csv')">CSV</a></li>
<li><a href="#" onclick="$('#worksheet-dialog').modal('show')">Excel, LibreOffice, CSV files</a></li>
<li><a href="#" onclick="$('#pasteModal').modal('show');">Paste a table</a></li>
<li><a href="#" onclick="table.openImportModal('markdown')">Markdown</a></li>
</ul>
</li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Export File</a>
<ul class="dropdown-menu" style="list-style-type:none;">
<li><a href="#" onclick="table.prepareDownload()">LaTeX</a></li>
</ul>
</li>
</ul>
</div>
<div class="dropdown" style="display:inline-block">
<a class="dropdown-toggle" type="button" id="dropdownMenu3" role="button" data-target="dropdownMenu4" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Table <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu3" id="dropdownMenu4">
<li><a href="#" onclick="table.deleteContent();return false;">Delete content</a></li>
<li><a href="#" onclick="table.transpose();return false;">Transpose</a></li>
</ul>
</div>
<div class="dropdown" style="display:inline-block">
<a class="dropdown-toggle" type="button" id="dropdownMenu5" role="button" data-target="dropdownMenu6" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Output <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu5" id="dropdownMenu6">
<li><a href="#" onclick="table.generate()">Generate</a></li>
<li><a href="#" onclick="table.toMWE()">Convert to MWE</a></li>
<li class="divider"></li>
<li><a href="#" data-target="#format-settings" data-toggle="modal">Settings</a></li>
</ul>
</div>
</div>
</div>
<div style="float:right;" class="top-dropdown-menu-element"><a href="https://github.com/JDMCreator/LaTeXTableEditor/issues" target="_blank">Comments/Requests/Issues</a> |
<div class="dropdown" style="display:inline-block">
<a class="dropdown-toggle" type="button" id="dropdownMenu3" role="button" data-target="dropdownMenu7" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
v3.0 <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu3" id="dropdownMenu7">
<li><a href="v2/index.html">v2.3.3</a></li>
<li><a href="v1/index.html">v1.9.1</a></li>
</ul>
</div> | <a href="#" data-target="#help-modal" data-toggle="modal">Help</a>
</div>
</div>
<div class="toolbar-group-container" tabindex="0" role="toolbar">
<div class="toolbar-group toolbar-group-visible">
<div class="group-row">
<button data-target="#myModal" data-toggle="modal" title="Create or import a new table"><img src="icons/table.svg"><span>New</span></button>
<div class="group-col">
<button data-target="#table-properties" title="Properties of the table" data-toggle="modal"><img src="icons/info-circle.svg">Properties</button>
<button onclick="table.openImportModal('latex')" title="Import a table from LaTeX"><img src="icons/braces.svg">Import from LaTeX</button>
<button onclick="$('#worksheet-dialog').modal('show')" title="Import a table from Excel or from OpenOffice Calc"><img src="icons/file-earmark-spreadsheet.svg">Load from Excel</button>
</div>
</div>
<span>Table</span>
</div>
<div class="toolbar-groups toolbar-group-visible">
<div class="toolbar-group">
<div class="group-row">
<button onclick="table.insertEquation();return false;" title="Insert an equation"><span class="glyphicon glyphicon-usd"></span><span>Math</span></button>
<div class="group-col">
<div class="group-row">
<button title="Unordered list" onclick="table.toggleExecCommand('insertunorderedlist');return false;"><img src="icons/list-ul.svg"></button>
<button title="Indent" onclick="table.indentList();return false;"><img src="icons/indent.svg"></button>
<button title="Outdent" onclick="table.indentList(true) ;return false;"><img src="icons/outdent.svg"></button>
<button title="Text color" onclick="table.setTextColor(this.getAttribute('data-color'));return false;" data-color="red" id="text-color-button"><span class="glyphicon" style="border-bottom:3px solid red;padding:2px;height:auto;width:auto;font-size:1.2rem;margin-bottom:2px;" id="text-color-span"><span class="glyphicon-font"></span></span></button>
<button type="button" class="btn-caret dropdown-toggle" aria-haspopup="true" aria-expanded="false"><span class="caret"></span></button>
<div id="font-color-picker" class="dropdown-menu" style="padding:3px;min-width:min-content;">
<table>
<tr>
<td colspan="5" tabindex="0" style="background:black;color:white;">Automatic</td>
</tr>
<tr>
<td tabindex="0" data-color="black"></td>
<td tabindex="0" data-color="white"></td>
<td tabindex="0" data-color="red"></td>
<td tabindex="0" data-color="blue"></td>
<td tabindex="0" data-color="green"></td>
</tr>
<tr>
<td tabindex="0" data-color="Yellow"></td>
<td tabindex="0" data-color="Orange"></td>
<td tabindex="0" data-color="Maroon"></td>
<td tabindex="0" data-color="DarkBlue"></td>
<td tabindex="0" data-color="DarkGreen"></td>
</tr>
<tr>
<td tabindex="0" data-color="Gray"></td>
<td tabindex="0" data-color="Purple"></td>
<td tabindex="0" data-color="Pink"></td>
<td tabindex="0" data-color="Aqua"></td>
<td tabindex="0" data-color="Lime"></td>
</tr>
</table>
<table id="font-color-theme">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="5">More...</td>
</tr>
</table>
</div>
</div>
<div class="group-row">
<button title="Bold" onclick="table.toggleExecCommand('bold');return false;"><img src="icons/type-bold.svg"></button>
<button title="Italic" onclick="table.toggleExecCommand('italic');return false;"><img src="icons/type-italic.svg"></button>
<button title="Underline" onclick="table.toggleExecCommand('underline');return false;"><img src="icons/type-underline.svg"></button>
<button title="Strikethrough" onclick="table.toggleExecCommand('strikethrough');return false;"><img src="icons/strikethrough.svg"></button>
<button title="Superscript" onclick="table.toggleExecCommand('superscript');return false;"><img src="icons/superscript.svg"></button>
</div>
</div>
<div class="group-col">
<button title="Insert a footnote" onclick="table.insertFootnote();table.showFootnotePanel();return false;"><span><span class="glyphicon glyphicon-font"></span><span class="footnote-exp">1</span></span><span>Insert footnote</span></button>
</div>
</div>
<span>Font</span>
</div>
<div class="toolbar-group">
<div class="group-row">
<button onclick="table.insertRowOver()" title="Insert a row over"><img src="icons/chevron-up.svg"><span>Insert over</span></button>
<div class="group-row">
<div class="group-col">
<button onclick="table.insertRowUnder()" title="Insert a row under"><img src="icons/chevron-down.svg">Insert under</button>
<button onclick="table.insertColBefore()" title="Insert a column before"><img src="icons/chevron-left.svg">Insert before</button>
<button onclick="table.insertColAfter()" title="Insert a column after"><img src="icons/chevron-right.svg">Insert after</button>
</div>
<div class="group-col">
<button onclick="table.removeRow()" title="Remove selected rows"><span class="glyphicon cross-icon"><span class="glyphicon-resize-horizontal"></span></span>Remove row</button>
<button onclick="table.removeCol()" title="Remove selected columns"><span class="glyphicon cross-icon"><span class="glyphicon-resize-vertical"></span></span>Remove column</button>
<button id="button-mode-view" title="Toggle View Mode" onclick="table.mode(table.mode() == 1 ? 0 : 1)" aria-pressed="false"><img src="icons/eye-fill.svg">View mode</button>
</div>
</div>
</div>
<span>Rows & Columns</span>
</div>
<div class="toolbar-group">
<div class="group-col">
<div class="group-row">
<button onclick="table.merge()" title="Merge selected cells"><img src="icons/chevron-contract.svg" style="transform:rotate(90deg)">Merge cells</button>
<button type="button" class="btn-caret btn-caret-merge dropdown-toggle" aria-haspopup="true" aria-expanded="false"><span class="caret"></span></button>
<div id="merge-picker" class="dropdown-menu" style="padding:3px;min-width:min-content;">
<div class="group-col">
<button onclick="table.merge('mergeHorizontal')"><img style="visibility:hidden;"> Merge cells horizontally</button>
<button onclick="table.merge('mergeVertical')"><img style="visibility:hidden;"> Merge cells vertically</button>
</div>
</div>
</div>
<button onclick="table.split()" title="Split selected merged cells"><img src="icons/chevron-expand.svg" style="transform:rotate(90deg)">Split cells</button>
<button onclick="$('#findreplace-dialog').modal('show')" title="Find and replace text in cells"><img src="icons/find-replace.svg">Find & replace</button>
</div>
<span>Cells</span>
</div>
</div>
<div class="toolbar-group toolbar-group-visible">
<div class="group-row">
<button id="button-mode-border" title="Draw borders" onclick="table.mode(table.mode() == 2 ? 0 : 2)" aria-pressed="false"><img src="icons/pencil.svg"><span>Draw borders</span></button>
<div class="group-col">
<button id="button-booktabs" title="Toggle automatic booktabs top and bottom borders" onclick="table.autoBooktabs()" aria-pressed="false"><span class="glyphicon glyphicon-book"></span>Auto-Booktabs</button>
<button onclick="table.setAllBorders()" title="Add all borders to selected cells"><img src="icons/border-all.svg">Add all borders</button>
<button onclick="table.removeBorders()" title="Remove all border from selected cells"><img src="icons/border-none.svg">Remove all borders</button>
</div>
</div>
<span>Borders</span>
</div>
<div class="toolbar-group" id="btn-group-btn-style">
<div class="group-col">
<button onclick="table.borderPick()" title="Borders' color"><span id="border-color" style="border-bottom:3px solid black;padding-bottom:2px;height:auto;width:auto;font-size:1.2rem;margin-bottom:2px;" data-value="#000000"><img src="icons/pen.svg"></span> Border color</button>
<button title="Borders' style"><select id="border" class="form-control input-sm" autocomplete="off">
<option value="normal">[\hline] Default</option>
<option value="double">[\hline\hline] Double line</option>
<optgroup label="Booktabs">
<option value="toprule">[\toprule] Top rule</option>
<option value="midrule">[\midrule] Mid rule</option>
<option value="bottomrule">[\bottomrule] Bottom rule</option>
<option value="trimfull">[\cmidrule(lr)] Trimmed rule</option>
</optgroup>
<optgroup label="arydshln">
<option value="hdashline">[\hdashline] Dashed line</option>
<option value="dottedline">[\hdashline[1pt/1pt]] Dotted line</option>
</optgroup>
</select></button>
</div>
<span>Borders' style</span>
</div>
</div>
<hr style="margin:0;margin-bottom:2px;">
</nav>
<div class="caption-container">
<div class="input-group" style="max-width:400px">
<div class="input-group-addon">
<select id="caption-nb">
<option value=""></option>
<option value="*">*</option>
</select>
</div>
<input id="caption" class="form-control" placeholder="Caption">
</div>
</div>
<div id="table-div-container">
<table id="table">
</table>
</div>
<div>
<div class="alert alert-info" role="alert" style="display:none;" id="border-editor-info">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="glyphicon glyphicon-info-sign"></span> You are now using the border editor. You can drag your cursor to draw multiple borders at once or click on any border to activate or deactivate it. You can change the border style in the toolbar.
</div>
</div>
<hr>
<div id="tooltip-helper">Hey</div>
<div style="margin:0 20%;background:whitesmoke;padding:1em;border-radius:1em;">
<center>
<div class="btn-group" role="group" style="margin-bottom:25px">
<button onclick="table.generate()" class="btn btn-primary" data-toggle="tooltip" title="Generate code" id="generate-button">Generate</button>
<div class="btn-group dropdown">
<button title="Output language" type="button" id="format-btn" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">LaTeX <span class="caret"></span></button>
<ul class="dropdown-menu" id="format-drop" style="max-height:200px;overflow-y:auto;">
<li class="dropdown-header">TeX</li>
<li data-value="latex"><a href="#">LaTeX</a></li>
<li data-value="context"><a href="#">ConTeXt</a></li>
<li data-value="plain"><a href="#">Plain TeX</a></li>
<li data-value="pretext"><a href="#">PreTeXt</a></li>
<li data-value="eplain"><a href="#">Eplain</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Markup</li>
<li data-value="md"><a href="#">Markdown</a></li>
<li data-value="textile"><a href="#">Textile</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Web</li>
<li data-value="html"><a href="#">HTML</a></li>
<li data-value="bbcode"><a href="#">BBCode</a></li>
<li data-value="wikicode"><a href="#">Wikicode</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Data</li>
<li data-value="csv"><a href="#">CSV</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Legacy formats</li>
<li data-value="wml"><a href="#">WML</a></li>
</ul>
</div>
<button title="Settings" class="btn btn-default" data-target="#format-settings" data-toggle-second="tooltip" data-toggle="modal"><span class="glyphicon glyphicon-cog"></span></button>
</div>
</center>
<div id="latex-opt-shortcuts"><div style="text-decoration:underline">Options (<a href="#" data-target="#format-settings" data-toggle="modal">+more</a>)</div>
<div><input type="checkbox" id="copt-break"> Allow table to break across pages</div>
<div><input type="checkbox" id="copt-shrink"> Shrink columns automatically</div>
<div><input type="checkbox" id="copt-ltx-com"> Ignore LaTeX commands in text</div>
<div>
<div class="btn-group dropdown">
<button title="Output environment" type="button" id="env-button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Auto <span class="caret"></span></button>
<ul class="dropdown-menu" id="env-button-drop" style="max-height:200px;overflow-y:auto;">
<li data-value="auto"><a href="#">Auto</a></li>
<li data-value="tabular"><a href="#">Tabular</a></li>
<li data-value="tabularray"><a href="#">Tabularray</a></li>
<li data-value="tabu"><a href="#">Tabu</a></li>
</ul>
</div> LaTeX environment</div>
</div></div>
<div style="margin:20px;">
<div><span style="color:#555">Advertisement</span></div>
<!-- Before-Generate -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5146982563696073"
data-ad-slot="1874006957"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<br>
<div class="row">
<div class="col-md-9">
<textarea id="c" class="form-control">
</textarea>
<a href="javascript:;" onclick="navigator.clipboard.writeText(document.getElementById('c').value)">Copy to Clipboard</a> |
<a href="javascript:;" onclick="table.toMWE();">Convert to Minimal Working Example (MWE)</a>
</div>
<div class="col-md-3">
<div style="width:100%;max-height:20%;min-height:300px;overflow-y:auto;" id="log" class="form-control">
<strong>Log</strong>
<hr>
</div>
</div>
</div>
<!--- Content ---->
<hr>
<div id="page-content">
<h2>What is LaTeX?</h2>
<p> LaTeX is a free typesetting system that allows their users to use a markup language to produce high-quality and consistent documents. Released in 1984, it has since become a standard in academia. Even though LaTeX is relatively easy to use, sometimes building complex typographical structures such as tables can become challenging. This free online generator allows you to build complex tables with a WYSIWYG interface.
<h2>What is this editor?</h2>
<p>This editor is a free tool to let you build high-quality tables easily. This editor try to handle as many typographical or compatibility issues as possible to generate the cleaniest code possible. It also provides you a user interface that is easy to use, intuitive and really powerful. It is the most complexe table editor on the Internet. You can even load your LaTeX tables or import data from spreadsheets.
<p>This editor is free, but also open source and entirely client-based. This means that the content of your table is never send to a server. It stays with you, on your computer. We are hosted by GitHub and really respectful of your privacy.
<p>With this editor, you can merge cells (use <code>CTRL+Click</code> or <code>SHIFT+Click</code> to select multiple cells), draw borders, set the border style or color and set the background color of each cell.</p>
<h2>My table is too wide. How can I fix it?</h2>
<p>LaTeX doesn't have an integrated algorithm to automatically adjust the width of each column. Therefore, a table can become too wide and cause a <code>10000 badness</code> warning. This editor has two options to fix the issue:
<ul>
<li><strong>Scale:</strong> Your table will be resized so it will fit the width of the page. Everything will therefore be smaller but the overall presentation will look the same.
<li><strong>Shrink:</strong> Each column will be narrower so your table will fit the width of the page. In most case, this should be the best option. However, sometimes, your text might not fit in a column.
</ul></p>
<p>You can activate those options in the <a href="#" data-target="#format-settings" data-toggle="modal">Settings</a>. Another option is to <a href="#" data-target="#format-settings" data-toggle="modal">display your table in landscape mode</a>.
<h2>My table is too long. How can I fix it?</h2>
<p>By default, when a table is too long, it will be cropped by the page. However, it is really easy to fix this. In the <a href="#" data-target="#format-settings" data-toggle="modal">Settings</a>, make sure that is the option "Split table in multiple pages" is checked.
<h2>How can I learn more about LaTeX tables?</h2>
<p>This website provide several ressources to easily learn to write LaTeX tables <u>without</u> using a generator! Check out our articles:</p>
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<div class="thumbnail-description bg-warning">Tabular</div>
<div class="caption">
<h2>LaTeX Tables 101: Tabular</h2>
<p>Learn to write tables with the <code>tabular</code> environment.</p>
<p><a href="ressources/tabular.html" class="btn btn-primary" role="button">Read</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<div class="thumbnail-description bg-info">Tabularray</div>
<div class="caption">
<h2>LaTeX Tables 101: Tabularray</h2>
<p>Learn to write modern tables with the <code>tblr</code> environment.</p>
<p><a href="ressources/tabularray.html" class="btn btn-primary" role="button">Read</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<div class="thumbnail-description bg-danger" style="background:red;">Plain TeX</div>
<div class="caption">
<h2>LaTeX Tables: Historical</h2>
<p>LaTeX comes from TeX. Learn how to write a table in Plain TeX.</p>
<p><a href="ressources/tabularray.html" class="btn btn-primary disabled" role="button">Coming Soon</a></p>
</div>
</div>
</div>
</div>
</div>
<hr>
<center><a rel="help" href="help.html" target="_blank">Help</a> | <a href="privacy.html" target="_blank">Privacy</a> | <a href="changelog.txt" target="_blank">Changelog</a> |
<a href="https://github.com/JDMCreator/LaTeXTableEditor/issues" target="_blank">Github</a> | Our other project : <a href="https://www.timemaths.com" target="_blank">TimeMaths : An Online Time Calculator</a></center>
</div>
<div id="right">
<div id="right-controler" onclick="$(document.body).toggleClass('closedPanel')">
<span class="caret">
<!--▶-->
</span>
</div>
<div id="right-container">
<div class="panel-group" id="right_accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#right_accordion" href="#right_cell" aria-expanded="true" aria-controls="right_cell">
Cell properties
</a>
</h4>
</div>
<div id="right_cell" class="panel-collapse collapse in" role="tabpanel">
<div class="panel-body">
<div class="btn-group" role="group" aria-label="Text alignment">
<button type="button" class="btn btn-default active" data-toggle="tooltip" title="Align left" id="info_align_left" onclick="table.setAlign('l')"><span class="glyphicon glyphicon-align-left"></span></button>
<button type="button" class="btn btn-default" id="info_align_center" data-toggle="tooltip" title="Align center" onclick="table.setAlign('c')"><span class="glyphicon glyphicon-align-center"></span></button>
<button type="button" class="btn btn-default" id="info_align_right" onclick="table.setAlign('r')" data-toggle="tooltip" title="Align right"><span class="glyphicon glyphicon-align-right"></span></button>
<button type="button" class="btn btn-default" id="info_align_decimal" data-toggle="tooltip" title="Align with decimal" onclick="table.setAlign('d')"><span class="glyphicon glyphicon-dot"></span></button>
</div>
<h6>Vertical alignment</h6>
<div class="btn-group" role="group" aria-label="Vertical alignment">
<button type="button" class="btn btn-default" data-toggle="tooltip" title="Top-aligned" id="info_align_top" onclick="table.setVAlign('t')"><img src="icons/vertical-align-top.svg" style="height:1em;"></button>
<button type="button" class="btn btn-default active" id="info_align_middle" data-toggle="tooltip" title="Middle-aligned" onclick="table.setVAlign('m')"><img src="icons/vertical-align-center.svg" style="height:1em;"></button>
<button type="button" class="btn btn-default" id="info_align_bottom" onclick="table.setVAlign('b')" data-toggle="tooltip" title="Bottom-aligned"><img src="icons/vertical-align-bottom.svg" style="height:1em;"></button>
</div>
<h6>Effects</h6>
<div class="btn-toolbar" role="toolbar">
<div class="btn-group" role="group" aria-label="Diagonal separators">
<button type="button" class="btn btn-default active" id="info_diag_zero" data-toggle="tooltip" title="No diagonal line" onclick="table.separators(0)"><img src="diag-zero.png"></button>
<button type="button" class="btn btn-default" id="info_diag_one" data-toggle="tooltip" title="Diagonal line" onclick="table.separators(1)"><img src="svg/diag-one.svg"></button>
<button type="button" class="btn btn-default" id="info_diag_two" data-toggle="tooltip" title="Two diagonal lines" onclick="table.separators(2)"><img src="svg/diag-two.svg"></button>
</div>
<div class="btn-group" role="group" aria-label="Cell rotation">
<button type="button" class="btn btn-default active" id="info-unrotated" onclick="table.rotate(false)" data-toggle="tooltip" title="Horizontal text"><span class="glyphicon glyphicon-font"></span></button>
<button type="button" class="btn btn-default" id="info-rotated" onclick="table.rotate(true)" data-toggle="tooltip" title="Vertical text"><span class="glyphicon glyphicon-font" style="transform: rotate(-90deg);margin-left: -4px;"></span></button>
</div>
</div>
<div id="info-diagonal-block" style="display:none;">
<h6>Diagonal line color</h6>
<input type="color" class="form-control" id="info-diagonal-color" style="display:inline-block;" value="#000000" oninput="table.diagonalColor(this.value)">
</div>
<h6>Background</h6>
<div class="input-group">
<input type="color" class="form-control" id="info-background-color" style="display:inline-block;" value="#FFFFFF" oninput="table.backgroundColor(this.value)">
<span class="input-group-btn">
<button type="button" class="btn btn-default" onclick="table.backgroundPick()" data-toggle="tooltip" title="Color Picker"><span class="glyphicon glyphicon-tint"></span></button>
<button type="button" class="btn btn-default" onclick="table.removeBackgroundColor()" data-toggle="tooltip" title="Remove background color"><span class="glyphicon glyphicon-ban-circle"></span></button>
</span>
</div>
<a href="#" class="small" onclick="table.showOddEvenColorsModal()">Alternate Rows Background Colors</a>
<h6>LaTeX Content</h6>
<textarea id="latex_content" class="form-control"></textarea>
</div>
</div>
</div>
<div class="panel panel-default" id="panel-footnotes">
<div class="panel-heading" role="tab">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#right_accordion" href="#right_footnote" aria-expanded="true" aria-controls="right_table">
Footnotes
</a>
</h4>
</div>
<div id="right_footnote" class="panel-collapse collapse" role="tabpanel">
<div class="panel-body">
<div class="btn-group" role="group">
<button onclick="table.insertFootnote()" class="btn btn-default">Insert footnote</button>
<button onclick="table.refreshFootnotes()" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span></button>
</div>
<div id="footnotes-txt"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Create a new table</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-6 text-center">
<center>
<div>
<span id="create_table_x">1</span> x <span id="create_table_y">1</span>
</div>
<table id="create_table">
</table>
</center>
<p>- or -</p>
<div class="form-inline">
<div>
<div class="form-group">
<input type="number" class="form-control" style="width:80px;" id="col" placeholder="x" min="1">
</div> x
<div class="form-group">
<input type="number" class="form-control" style="width:80px;" id="row" placeholder="y" min="1">
</div>
</div>
<button type="button" class="btn btn-primary" onclick="table.create($id('col').value, $id('row').value);$('#myModal').modal('hide')">Create</button>
</div>
</div>
<div class="col-md-6">
<div class="text-center">
<p> - Or use one of these options - </p>
<div>
<div>
<button type="button" class="btn btn-primary btn-import" onclick="$('#myModal').modal('hide');$id('import_format').value='latex';$('#importModal').modal('show');">Import a LaTeX table</button>
</div>
<div>
<button type="button" class="btn btn-primary btn-import" onclick="$('#myModal').modal('hide');$id('import_format').value='auto';$('#importModal').modal('show');">Import JSON, Markdown or CSV</button>
</div>
<div>
<button type="button" class="btn btn-primary btn-import" onclick="$('#myModal').modal('hide');$('#pasteModal').modal('show');">Import from Word, Excel or OpenOffice</button>
</div>
<div>
<button type="button" class="btn btn-primary btn-import" onclick="$('#myModal').modal('hide');$('#pasteModal').modal('show');">Import by pasting a table</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="importModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Import from LaTeX, JSON, Markdown and CSV</h4>
</div>
<div class="modal-body">
<div class="form-group">
<select class="form-control" id="import_format">
<option value="auto">Auto</option>
<option value="json">JSON</option>
<option value="latex">LaTeX</option>
<option value="markdown">Markdown</option>
<option value="csv">CSV</option>
</select>
</div>
<div class="form-group">
<textarea class="form-control textarea-wrap" id="import_value" style="min-height:200px;" placeholder="Content of your file to import"></textarea>
</div>
<div id="latex-import-error" style="display:none;color:red;">Your LaTeX table could not be loaded. Help us and <a href="https://github.com/JDMCreator/LaTeXTableEditor/issues" target="_blank">send us the code of your table</a> so we can see what happened.</div>
<div style="padding-bottom:5px;"><label><input type="checkbox" id="opt-imp-unknown"> Preserve unknown LaTeX commands</label></div>
<div class="text-center">
<button type="button" class="btn btn-primary" onclick="table.importData();">Import the content of a file</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="pasteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Paste a table</h4>
</div>
<div class="modal-body">
<p>Paste here a table from a webpage, a Word document, an Excel document or an OpenOffice document.</p>
<div class="form-control" contenteditable id="extract-div"></div>
<div class="text-center">
<button type="button" class="btn btn-primary" onclick="table.extract($id('extract-div'));$('#myModal').modal('hide')">Extract content</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="campaignModal" tabindex="-1" role="dialog" aria-labelledby="campaignLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="campaignLabel">Help us !</h4>
</div>
<div class="modal-body">
<div class="text-center">
<p>Since the launch of this site, this utility has generated millions of tables, making life easier for students, scientists, academics and LaTeX enthusiasts. My goal was to create an editor that would be easy to use, that would generate its own code and that would handle all situations to produce clean and neat tables.
<p>
I am the sole developer of this project and I ask for your help. I would like to include many more features on this website, so that creating tables can become an even easier task.
<p>To learn more about this annual campaign and make a donation, click on the button below. You can make a donation by credit card, Paypal, Apple Pay and more.
</p>
<a class="dbox-donation-button" href="https://donorbox.org/latex-tables-2018" style="background:#2d81c5 url(https://d1iczxrky3cnb2.cloudfront.net/red_logo.png) no-repeat 37px center; color: #fff;text-decoration: none;font-family: Verdana,sans-serif;display: inline-block;font-size: 16px;padding: 15px 38px 15px 75px; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; box-shadow: 0 1px 0 0 #1f5a89; text-shadow: 0 1px rgba(0, 0, 0, 0.3);" target="_blank" onclick="table.campaignClicked();$('#campaignModal').modal('hide');">Donate</a>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="colorpicker" style="z-index:1051;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" onclick="ColorPicker.cancel()" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Color Picker</h4>
</div>
<div class="modal-body">
<div id="colorpicker-container" style="color:red;">
<div class="clearfix" style="margin-top:-1rem;">
<span style="float:left;color:#000;" id="colorpicker-name1">Sample black text</span>
<span style="float:right;color:#fff;" id="colorpicker-name2">Sample white text</span>
</div>
<div id="colorpicker-name">Red</div>
</div>
<div class="row" style="text-align:center;">
<div class="col-lg-4">
<input class="form-control" style="border:none;outline:initial;text-align:center;" id="colorpicker-rgb">
<small>RGB</small>
</div>
<div class="col-lg-4">
<input class="form-control" style="border:none;outline:initial;text-align:center;" id="colorpicker-hex">
<small>HEX</small>
</div>
<div class="col-lg-4">
<input class="form-control" style="border:none;outline:initial;text-align:center;" id="colorpicker-hsl">
<small>HSL</small>
</div>
</div>
<div style="text-align:center;">
<div class="row">
<div class="col-lg-3" style="text-align:right" ;>R :</div>
<div class="col-lg-9">
<input type="range" id="colorpicker-r" min="0" max="255" step="0.01">
</div>
</div>
<div class="row">
<div class="col-lg-3" style="text-align:right" ;>G :</div>
<div class="col-lg-9">
<input type="range" id="colorpicker-g" min="0" max="255" step="0.01">
</div>
</div>
<div class="row">
<div class="col-lg-3" style="text-align:right" ;>B :</div>
<div class="col-lg-9">
<input type="range" id="colorpicker-b" min="0" max="255" step="0.01">
</div>
</div>
</div>
<h5>Table Color Scheme</h5>
<div id="colorpicker-table-scheme" class="color-scheme">
</div>
<h5>Default Colors</h5>
<div id="colorpicker-default-scheme" class="color-scheme">
</div>
<h5>Saved Colors</h5>
<div id="colorpicker-saved-scheme" class="color-scheme">
</div>
<div style="text-align:center;">
<label>
<input type="color" oninput="ColorPicker.color(this.value)" id="colorpicker-system-input" hidden>
<a type="button" data-toggle="tooltip" title="Use system colorpicker" class="btn btn-default"><span class="glyphicon glyphicon-tint"></span></a>
</label>
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default" onclick="ColorPicker.shade(-0.2)">-20%</button>
<button type="button" class="btn btn-default" onclick="ColorPicker.shade(-0.05)">-5%</button>
<button type="button" class="btn btn-default" readonly>Darken/Lighten Color</button>
<button type="button" class="btn btn-default" onclick="ColorPicker.shade(+0.05)">+5%</button>
<button type="button" class="btn btn-default" onclick="ColorPicker.shade(+0.2)">+20%</button>
</div>
<div style="margin-top:5px;">
<button type="button" class="btn btn-primary" onclick="ColorPicker.choose()">Select</button>
<button type="button" class="btn btn-default" onclick="ColorPicker.cancel()">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="help-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Help</h4>
</div>
<div class="modal-body">
<h4>Select cells</h4>
<p style="margin-left:2em;">To select multiple cells, uses <kbd>CTRL + Click</kbd> (or <kbd>⌘ + Click</kbd> on Macintosh). Hold <kbd>CTRL</kbd> (or <kbd>⌘</kbd>) and click on all the cells that you want to select.</p>
<p style="margin-left:2em;">To select multiple adjacent cells, uses <kbd>SHIFT + Click</kbd>. Click on the first cell, then hold <kbd>Shift</kbd> and click on the last cell.</p>
<h4>Import LaTeX tables</h4>
<p style="margin-left:2em;">Under the logo, there's a <kbd>File</kbd> menu. Click on it and then follows <kbd>File</kbd> > <kbd>Import table</kbd> > <kbd>LaTeX</kbd>.</p>
<h4>My table is too wide ! What can I do ?</h4>
<p style="margin-left:2em;">You can fix the issue if you are generating LaTeX code. To do so, select the menu items <kbd>Output > Settings</kbd>. Then, choose an option under <kbd>Fit table to page method</kbd></span>.</p>
<h4>More help</h4>
<p style="margin-left:2em;"> If you have more questions, check the <a rel="help" href="help.html" target="_blank">FAQ</a>.</p>
</div>
</div>
</div>
</div>
<div class="modal fade" id="table-properties" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Table's properties</h4>
</div>
<div class="modal-body">
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-tags"></span></div>
<input type="text" class="form-control" id="label" placeholder="Label">
</div>
<hr>
<div class="input-group">
<label style="font-weight:normal">
<input type="checkbox" checked id="table-opt-center"> Center table horizontally</label>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="download" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Download</h4>
</div>
<div class="modal-body">
<a href="" download="table.tex" style="line-height:100%" id="link-download">Click to download your .tex file</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="findreplace-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Find & Replace</h4>
</div>
<div class="modal-body">
<form>
<div class="input-control">
<label class="control-label" for="findreplace-from">Find what :</label>
<input type="input" class="form-control" id="findreplace-from">
</div>
<div class="input-control">
<label class="control-label" for="findreplace-to">Replace with :</label>
<input type="input" class="form-control" id="findreplace-to">
</div>
<div class="input-control">
<label class="control-label" for="findreplace-mode">In the following cells :</label>
<select class="form-control" id="findreplace-mode">
<option value="0">All cells</option>
<option value="1">All selected cells</option>
<option value="2">All unselected cells</option>
</select>
</div>
</form>
<center style="padding-top:12px;">
<button type="button" class="btn btn-primary" onclick="table.findReplace()">Replace All</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</center>
</div>
</div>
</div>
</div>
<div class="modal fade" id="email" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Send by email</h4>
</div>
<div class="modal-body">
<a href="" style="line-height:100%" id="link-email">Open the output in an email</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="worksheet-dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Load From Worksheet <span class="label label-warning">BETA</span></h4>
</div>
<div class="modal-body">
<center><em>This utility allows you to load XLS, XLSX, XLSM, CSV, OSD, SLK files and more. <strong>You can't load LaTeX files yet with this utility. Use the other utility instead.</strong></em></center>
<div style="padding:4px;">
<div id="worksheet-drop">
<div>Drag a file</div>
<div>- or -</div>
<input type="file" id="excel-file" class="form-control-file" accept="<!--Accepted files-->
.csv,
.xls,
.xlsx,
.xlsm,
.xlsb,
.ods,
.fods,
.csv,
.txt,
.sylk,
.html,
.dif,
.dbf,
.prn,
.eth">
</div>
<div>
<label><input type="checkbox" id="opt-gen-comma"> Use comma instead of dot as decimal separator</label>
<label><input type="checkbox" id="opt-gen-surround"> Surround numbers with <code>$...$</code></label>
</div>
<button onclick="table.importExcel()" id="excel-button" style="margin:4px;" class="btn btn-primary">OK</button>
</div>
<div id="worksheet-loading-status"></div>
<div id="worksheet-options" style="display:none;">
<center>One step left. Select the workbook you want to import.
<select id="select-workbook" class="form-control"></select>
<button id="button-workbook" class="btn-primary btn" style="margin:8px;">Import workbook</button>
</center>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="oddevencolors" tabindex="-1" role="dialog" aria-labelledby="oddevencolors-label">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="oddevencolors-label">Alternate Rows Background Colors</h4>
</div>
<div class="modal-body">
<div class="form-horizontal">
<div class="form-group">
<label for="oddevencolors-number" class="col-sm-4 control-label">Starting Row</label>
<div class="col-sm-8">
<input type="number" step="1" min="1" class="form-control" id="oddevencolors-number" value="1">
</div>
</div>
<div class="form-group">
<label for="oddevencolors-even" class="col-sm-4 control-label">Even color</label>
<div class="col-sm-8">
<div class="input-group" style="width:100%">
<input type="color" class="form-control" id="oddevencolors-even" value="#FFFFFF">
<span class="input-group-btn">
<button type="button" data-toggle="tooltip" title="Color Picker" class="btn btn-default" onclick="ColorPicker.get(document.getElementById('oddevencolors-even'))"><span class="glyphicon glyphicon-tint"></span></button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="oddevencolors-odd" class="col-sm-4 control-label">Odd color</label>
<div class="col-sm-8">
<div class="input-group" style="width:100%">
<input type="color" class="form-control" id="oddevencolors-odd" value="#FFFFFF">
<span class="input-group-btn">
<button type="button" data-toggle="tooltip" title="Color Picker" class="btn btn-default" onclick="ColorPicker.get(document.getElementById('oddevencolors-odd'))"><span class="glyphicon glyphicon-tint"></span></button>
</span>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8">
<button type="button" class="btn btn-success" onclick="table.applyOddEvenColors()">Apply</button>
<button type="button" class="btn btn-danger" onclick="table.oddEvenColors(false)">Remove</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="format-settings" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Advanced export settings</h4>
</div>
<div class="modal-body">
<select class="form-control" id="format-in" onchange="table.selectFormat(this.value)">
<option value="latex">LaTeX</option>
<option value="context">ConTeXt</option>
<option value="plain">Plain TeX</option>
<option value="md">Markdown</option>
<option value="html">HTML</option>
<option value="bbcode">BBCode</option>
<option value="wikicode">Wikicode</option>
<option value="csv">CSV</option>
<option value="eplain">Eplain</option>