Updated context tests.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1869 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
53d8977886
commit
1bc5fc0117
2 changed files with 50 additions and 22 deletions
|
@ -132,3 +132,44 @@ Multiline table without caption:
|
||||||
\NC\AR
|
\NC\AR
|
||||||
\HL
|
\HL
|
||||||
\stoptable
|
\stoptable
|
||||||
|
|
||||||
|
Table without column headers:
|
||||||
|
|
||||||
|
\placetable[here]{none}
|
||||||
|
\starttable[|r|l|c|r|]
|
||||||
|
\HL
|
||||||
|
\NC 12
|
||||||
|
\NC 12
|
||||||
|
\NC 12
|
||||||
|
\NC 12
|
||||||
|
\NC\AR
|
||||||
|
\NC 123
|
||||||
|
\NC 123
|
||||||
|
\NC 123
|
||||||
|
\NC 123
|
||||||
|
\NC\AR
|
||||||
|
\NC 1
|
||||||
|
\NC 1
|
||||||
|
\NC 1
|
||||||
|
\NC 1
|
||||||
|
\NC\AR
|
||||||
|
\HL
|
||||||
|
\stoptable
|
||||||
|
|
||||||
|
Multiline table without column headers:
|
||||||
|
|
||||||
|
\placetable[here]{none}
|
||||||
|
\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
|
||||||
|
\HL
|
||||||
|
\NC First
|
||||||
|
\NC row
|
||||||
|
\NC 12.0
|
||||||
|
\NC Example of a row that spans multiple lines.
|
||||||
|
\NC\AR
|
||||||
|
\NC Second
|
||||||
|
\NC row
|
||||||
|
\NC 5.0
|
||||||
|
\NC Here's another one. Note the blank line between rows.
|
||||||
|
\NC\AR
|
||||||
|
\HL
|
||||||
|
\stoptable
|
||||||
|
|
|
@ -14,24 +14,6 @@
|
||||||
\setuphead[subsection][style=\tfb]
|
\setuphead[subsection][style=\tfb]
|
||||||
\setuphead[subsubsection][style=\bf]
|
\setuphead[subsubsection][style=\bf]
|
||||||
|
|
||||||
% define title block commands
|
|
||||||
\unprotect
|
|
||||||
\def\doctitle#1{\gdef\@title{#1}}
|
|
||||||
\def\author#1{\gdef\@author{#1}}
|
|
||||||
\def\date#1{\gdef\@date{#1}}
|
|
||||||
\date{\currentdate} % Default to today unless specified otherwise.
|
|
||||||
\def\maketitle{%
|
|
||||||
\startalignment[center]
|
|
||||||
\blank[2*big]
|
|
||||||
{\tfd \@title}
|
|
||||||
\blank[3*medium]
|
|
||||||
{\tfa \@author}
|
|
||||||
\blank[2*medium]
|
|
||||||
{\tfa \@date}
|
|
||||||
\blank[3*medium]
|
|
||||||
\stopalignment}
|
|
||||||
\protect
|
|
||||||
|
|
||||||
% define descr (for definition lists)
|
% define descr (for definition lists)
|
||||||
\definedescription[descr][
|
\definedescription[descr][
|
||||||
headstyle=bold,style=normal,align=left,location=hanging,
|
headstyle=bold,style=normal,align=left,location=hanging,
|
||||||
|
@ -68,11 +50,16 @@ after={\blank[medium]},
|
||||||
|
|
||||||
\protect
|
\protect
|
||||||
|
|
||||||
\doctitle{Pandoc Test Suite}
|
|
||||||
\author{John MacFarlane\\Anonymous}
|
|
||||||
\date{July 17, 2006}
|
|
||||||
\starttext
|
\starttext
|
||||||
\maketitle
|
\startalignment[center]
|
||||||
|
\blank[2*big]
|
||||||
|
{\tfd Pandoc Test Suite}
|
||||||
|
\blank[3*medium]
|
||||||
|
{\tfa John MacFarlane\crlf Anonymous}
|
||||||
|
\blank[2*medium]
|
||||||
|
{\tfa July 17, 2006}
|
||||||
|
\blank[3*medium]
|
||||||
|
\stopalignment
|
||||||
|
|
||||||
This is a set of tests for pandoc. Most of them are adapted from
|
This is a set of tests for pandoc. Most of them are adapted from
|
||||||
John Gruber's markdown test suite.
|
John Gruber's markdown test suite.
|
||||||
|
|
Loading…
Reference in a new issue