aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.context
diff options
context:
space:
mode:
Diffstat (limited to 'tests/writer.context')
-rw-r--r--tests/writer.context73
1 files changed, 38 insertions, 35 deletions
diff --git a/tests/writer.context b/tests/writer.context
index 29af26dba..1f8c3aff7 100644
--- a/tests/writer.context
+++ b/tests/writer.context
@@ -1,27 +1,32 @@
-\startmode[*mkii]
- \enableregime[utf-8]
- \setupcolors[state=start]
-\stopmode
-
% Enable hyperlinks
-\setupinteraction[state=start, color=middleblue]
-
-\setuppapersize [letter][letter]
-\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
- height=middle, topspace=0.75in, bottomspace=0.75in]
-
-\setuppagenumbering[location={footer,center}]
-
-\setupbodyfont[11pt]
-
+\setupinteraction
+ [state=start,
+ title={Pandoc Test Suite},
+ author={John MacFarlane; Anonymous},
+ style=,
+ color=,
+ contrastcolor=]
+% make chapter, section bookmarks visible when opening document
+\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
+\setupinteractionscreen[option=bookmark]
+\setuptagging[state=start]
+
+% use microtypography
+\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=yes,pnum=yes]
+\definefontfeature[smallcaps][smallcaps][protrusion=quality,expansion=quality,onum=yes,pnum=yes]
+\setupalign[hz,hanging]
+\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
+\setupbodyfont[mainfont]
\setupwhitespace[medium]
-\setuphead[chapter] [style=\tfd]
-\setuphead[section] [style=\tfc]
-\setuphead[subsection] [style=\tfb]
-\setuphead[subsubsection][style=\bf]
+\setuphead[chapter] [style=\tfd,header=empty]
+\setuphead[section] [style=\tfc]
+\setuphead[subsection] [style=\tfb]
+\setuphead[subsubsection] [style=\bf]
+\setuphead[subsubsubsection] [style=\sc]
+\setuphead[subsubsubsubsection][style=\it]
-\setuphead[chapter, section, subsection, subsubsection][number=no]
+\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
\definedescription
[description]
@@ -35,24 +40,19 @@
\setupthinrules[width=15em] % width of horizontal rules
-\setupdelimitedtext
- [blockquote]
- [before={\blank[medium]},
- after={\blank[medium]},
- indentnext=no,
- ]
+\setuphead[title][
+ style={\tfd\raggedcenter},
+ before={\startalignment[middle]},
+ after={
+ \smallskip
+ {\tfa John MacFarlane\crlf Anonymous}
+ \smallskip
+ {\tfa July 17, 2006}
+ \bigskip\stopalignment}]
\starttext
-\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
+\title{Pandoc Test Suite}
This is a set of tests for pandoc. Most of them are adapted from John Gruber's
markdown test suite.
@@ -545,11 +545,13 @@ Blank line after term, indented marker, alternate markers:
Simple block on one line:
foo
+
And nested without indentation:
foo
bar
+
Interpreted markdown in a table:
This is {\em emphasized}
@@ -575,6 +577,7 @@ As should this:
Now, nested:
foo
+
This should just be an HTML comment:
Multiline: