Skip to content

Commit 81868d5

Browse files
committed
Version 1.4
See changelog
1 parent 9123be6 commit 81868d5

File tree

8 files changed

+517
-60
lines changed

8 files changed

+517
-60
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## LaTeX Table Editor ##
22

3-
**Version 1.3**
3+
**Version 1.4**
44

55
This is the GitHub page of an Open Source WYSIWYG table editor that exports to multiples languages including LaTeX, ConTeXt, Plain TeX, CSV, HTML, BBCode, Eplain, PreTeXt, Markdown and WML.
66

@@ -22,6 +22,7 @@ You need Bootstrap 3, ntc.js and JQuery. See the online example.
2222
- HTML
2323
- CSV
2424
- BBCode
25+
- Textile
2526
- Eplain
2627
- PreTeXt
2728
- WML

src/changelog.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@ Legend
66
[#] Fixed
77
Dates use a YYYY/MM/DD format.
88

9+
Version 1.4 (2018/07/20)
10+
===========
11+
12+
| Note on this release :
13+
| Trimmed borders (booktabs), Textile export and bug fixes
14+
15+
BORDER EDITOR MODULE
16+
17+
[+] New "trimmed" borders with `\cmidrule(lr)`
18+
[#] Color is updated if the border color change (before, the border was removed)
19+
20+
LATEX EXPORT
21+
22+
[#] The `color` package would be forgotten if the only color in the table was in a vertical rule
23+
24+
TEXTILE EXPORT
25+
26+
[+] New Textile export module
27+
28+
PLAIN TEX EXPORT
29+
30+
[#] Vertical rules could appeared where they were not supposed to be if the cell spanned multiple columns
31+
932
Version 1.3 (2018/06/10)
1033
===========
1134

src/css.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,52 @@
314314
#latex_content {
315315
width: 100%;
316316
}
317+
/* Trimmed borders */
318+
#table td[data-border-bottom^="trim"], #table td[data-border-top^="trim"]{
319+
position:relative;
320+
}
321+
#table td[data-border-bottom^="trim"]{
322+
border-bottom-style:none !important;
323+
}
324+
#table td[data-border-top^="trim"]{
325+
border-top-style:none !important;
326+
}
327+
#table td[data-border-bottom^="trim"]::after{
328+
content:" ";
329+
position:absolute;
330+
left:3px;
331+
right:3px;
332+
border-bottom:1px solid;
333+
bottom:-1px;
334+
border-bottom-color:inherit;
335+
}
336+
#table td[data-border-bottom="trimfull"]::after,
337+
#table td[data-border-bottom="trimright"]::after{
338+
left:0;
339+
}
340+
#table td[data-border-bottom="trimfull"]::after,
341+
#table td[data-border-bottom="trimleft"]::after{
342+
right:0;
343+
}
344+
#table td[data-border-top^="trim"]::after{
345+
content:" ";
346+
position:absolute;
347+
left:3px;
348+
right:3px;
349+
border-top:1px solid;
350+
top:-1px;
351+
border-top-color:inherit;
352+
}
353+
#table td[data-border-top="trimfull"]::after,
354+
#table td[data-border-top="trimright"]::after{
355+
left:0;
356+
}
357+
#table td[data-border-top="trimfull"]::after,
358+
#table td[data-border-top="trimleft"]::after{
359+
right:0;
360+
}
361+
/*
362+
#table td[data-border-bottom=""]
317363
#table td[data-border-bottom="trimfull"]{
318364
position:relative;
319365
}
@@ -336,6 +382,7 @@
336382
top:-1px;
337383
border-top:0.5px solid black;
338384
}
385+
*/
339386
#table td[data-border-left="trimfull"]{
340387
border-left:1px solid black !important;
341388
}

src/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h4>Summary</h4>
5252
</div>
5353
<div id="export" class="question">
5454
<p><strong>Which format are supported to export a table ?</strong>
55-
<p>LaTeX, ConTeXt, Plain TeX, Markdown, JSON, BBCode, PreTeXt, Eplain, HTML and WML.
55+
<p>LaTeX, ConTeXt, Plain TeX, Markdown, Textile, JSON, BBCode, PreTeXt, Eplain, HTML and WML.
5656
</div>
5757
<div id="latex" class="question">
5858
<p><strong>Which features are supported when you import a LaTeX table?</strong>

src/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8">
66

7-
<meta name="description" content="A powerful and robust LaTeX, ConTeXt, Plain TeX, PreTeXt, EPlain, Markdown, CSV and HTML Table Editor and Generator. Import data from LaTeX, Excel, LibreOffice and more.">
7+
<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.">
88
<title>LaTeX Tables Editor</title>
99
<link href="css.css" rel="stylesheet">
1010
<link href="css/bootstrap.min.css" rel="stylesheet">
@@ -185,6 +185,7 @@
185185
</optgroup>
186186
<optgroup label="Markup">
187187
<option value="md">Markdown</option>
188+
<option value="textile">Textile</option>
188189
</optgroup>
189190
<optgroup label="Web">
190191
<option value="html">HTML</option>
@@ -283,9 +284,7 @@ <h4 class="panel-title">
283284
<option value="toprule">[\toprule] Top rule</option>
284285
<option value="midrule">[\midrule] Mid rule</option>
285286
<option value="bottomrule">[\bottomrule] Bottom rule</option>
286-
<!---
287287
<option value="trimfull">[\cmidrule(lr)] Trimmed rule</option>
288-
----->
289288
</optgroup>
290289
<optgroup label="arydshln">
291290
<option value="hdashline">[\hdashline] Dashed line</option>
@@ -654,6 +653,7 @@ <h4 class="modal-title" id="myModalLabel">Advanced export settings</h4>
654653
<option value="csv">CSV</option>
655654
<option value="eplain">Eplain</option>
656655
<option value="pretext">PreTeXt</option>
656+
<option value="textile">Textile</option>
657657
<option value="wml">WML</option>
658658
</select>
659659
<div class="form-group" data-option-group="latex">
@@ -789,6 +789,9 @@ <h5>Indentation</h5>
789789
<option value="two">Two spaces</option>
790790
<option value="four" selected>Four spaces</option></select>
791791
</div>
792+
<div class="form-group" data-option-group="textile" style="display:none;">
793+
<h4>Textile options</h4>
794+
</div>
792795
</div>
793796
</div>
794797
</div>
@@ -915,6 +918,8 @@ <h5>Indentation</h5>
915918
</script>
916919
<script type="text/javascript" src="toConteXt.js">
917920
</script>
921+
<script type="text/javascript" src="toTextile.js">
922+
</script>
918923
</body>
919924

920925
</html>

0 commit comments

Comments
 (0)