git.iko.soy/typeable/pandoc
on master help sign in
Fixed tests for new ConTeXt writer behavior.
dde484fJohn MacFarlane
tests/tables.context+7−7
@@ -1,6 +1,6 @@
1Simple table with caption:
1Simple table with caption:
2
2
3−\placetable[here]{Demonstration of simple table syntax.}
3+\placetable{Demonstration of simple table syntax.}
4\starttable[|r|l|c|l|]
4\starttable[|r|l|c|l|]
5\HL
5\HL
6\NC Right
6\NC Right
@@ -29,7 +29,7 @@ Simple table with caption:
29
29
30Simple table without caption:
30Simple table without caption:
31
31
32−\placetable[here,none]{}
32+\placetable[none]{}
33\starttable[|r|l|c|l|]
33\starttable[|r|l|c|l|]
34\HL
34\HL
35\NC Right
35\NC Right
@@ -58,7 +58,7 @@ Simple table without caption:
58
58
59Simple table indented two spaces:
59Simple table indented two spaces:
60
60
61−\placetable[here]{Demonstration of simple table syntax.}
61+\placetable{Demonstration of simple table syntax.}
62\starttable[|r|l|c|l|]
62\starttable[|r|l|c|l|]
63\HL
63\HL
64\NC Right
64\NC Right
@@ -87,7 +87,7 @@ Simple table indented two spaces:
87
87
88Multiline table with caption:
88Multiline table with caption:
89
89
90−\placetable[here]{Here's the caption. It may span multiple lines.}
90+\placetable{Here's the caption. It may span multiple lines.}
91\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
91\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
92\HL
92\HL
93\NC Centered Header
93\NC Centered Header
@@ -111,7 +111,7 @@ Multiline table with caption:
111
111
112Multiline table without caption:
112Multiline table without caption:
113
113
114−\placetable[here,none]{}
114+\placetable[none]{}
115\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
115\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
116\HL
116\HL
117\NC Centered Header
117\NC Centered Header
@@ -135,7 +135,7 @@ Multiline table without caption:
135
135
136Table without column headers:
136Table without column headers:
137
137
138−\placetable[here,none]{}
138+\placetable[none]{}
139\starttable[|r|l|c|r|]
139\starttable[|r|l|c|r|]
140\HL
140\HL
141\NC 12
141\NC 12
@@ -158,7 +158,7 @@ Table without column headers:
158
158
159Multiline table without column headers:
159Multiline table without column headers:
160
160
161−\placetable[here,none]{}
161+\placetable[none]{}
162\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
162\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
163\HL
163\HL
164\NC First
164\NC First
tests/writer.context+3−2
@@ -30,7 +30,8 @@
30\setupitemize[autointro] % prevent orphan list intro
30\setupitemize[autointro] % prevent orphan list intro
31\setupitemize[indentnext=no]
31\setupitemize[indentnext=no]
32
32
33−\setupcaption[figure][number=no] % don't number figures
33+\setupfloat[figure][default={here,nonumber}]
34+\setupfloat[table][default={here,nonumber}]
34
35
35\setupthinrules[width=15em] % width of horizontal rules
36\setupthinrules[width=15em] % width of horizontal rules
36
37
@@ -844,7 +845,7 @@ or here: <http://example.com/>
844
845
845From \quotation{Voyage dans la Lune} by Georges Melies (1902):
846From \quotation{Voyage dans la Lune} by Georges Melies (1902):
846
847
847−\placefigure[here]{lalune}{\externalfigure[lalune.jpg]}
848+\placefigure{lalune}{\externalfigure[lalune.jpg]}
848
849
849Here is a movie {\externalfigure[movie.jpg]} icon.
850Here is a movie {\externalfigure[movie.jpg]} icon.
850
851