git.iko.soy/typeable/pandoc
on master help sign in
Fixed tests for new ConTeXt writer behavior.
commitdde484f80985411d1e51038e9347b47ff90a1b7e authorJohn MacFarlane <jgm@berkeley.edu> dateSat 30 Nov 2013, 16:34 (13 years ago) parentbb0f299
2 files changed+10−9
tests/tables.context+7−7 tests/writer.context+3−2
tests/tables.context+7−7
@@ -1,6 +1,6 @@
11Simple table with caption:
22
3−\placetable[here]{Demonstration of simple table syntax.}
3+\placetable{Demonstration of simple table syntax.}
44\starttable[|r|l|c|l|]
55\HL
66\NC Right
@@ -29,7 +29,7 @@ Simple table with caption:
2929
3030Simple table without caption:
3131
32−\placetable[here,none]{}
32+\placetable[none]{}
3333\starttable[|r|l|c|l|]
3434\HL
3535\NC Right
@@ -58,7 +58,7 @@ Simple table without caption:
5858
5959Simple table indented two spaces:
6060
61−\placetable[here]{Demonstration of simple table syntax.}
61+\placetable{Demonstration of simple table syntax.}
6262\starttable[|r|l|c|l|]
6363\HL
6464\NC Right
@@ -87,7 +87,7 @@ Simple table indented two spaces:
8787
8888Multiline table with caption:
8989
90−\placetable[here]{Here's the caption. It may span multiple lines.}
90+\placetable{Here's the caption. It may span multiple lines.}
9191\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
9292\HL
9393\NC Centered Header
@@ -111,7 +111,7 @@ Multiline table with caption:
111111
112112Multiline table without caption:
113113
114−\placetable[here,none]{}
114+\placetable[none]{}
115115\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
116116\HL
117117\NC Centered Header
@@ -135,7 +135,7 @@ Multiline table without caption:
135135
136136Table without column headers:
137137
138−\placetable[here,none]{}
138+\placetable[none]{}
139139\starttable[|r|l|c|r|]
140140\HL
141141\NC 12
@@ -158,7 +158,7 @@ Table without column headers:
158158
159159Multiline table without column headers:
160160
161−\placetable[here,none]{}
161+\placetable[none]{}
162162\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
163163\HL
164164\NC First
tests/writer.context+3−2
@@ -30,7 +30,8 @@
3030\setupitemize[autointro] % prevent orphan list intro
3131\setupitemize[indentnext=no]
3232
33−\setupcaption[figure][number=no] % don't number figures
33+\setupfloat[figure][default={here,nonumber}]
34+\setupfloat[table][default={here,nonumber}]
3435
3536\setupthinrules[width=15em] % width of horizontal rules
3637
@@ -844,7 +845,7 @@ or here: <http://example.com/>
844845
845846From \quotation{Voyage dans la Lune} by Georges Melies (1902):
846847
847−\placefigure[here]{lalune}{\externalfigure[lalune.jpg]}
848+\placefigure{lalune}{\externalfigure[lalune.jpg]}
848849
849850Here is a movie {\externalfigure[movie.jpg]} icon.
850851