summaryrefslogtreecommitdiff
path: root/tests/writer.context
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-20 15:22:52 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-20 15:22:52 -0700
commit652b60f141e9498c8f0568e4d841153d4a1006f5 (patch)
tree18e2fa6f43abd33540b6c3e72b8ff9ee78373daf /tests/writer.context
parentece2a6c1a78c7e1beac07e7ad11f430ff8d73a9c (diff)
Updated tests for latex/context template changes.
Diffstat (limited to 'tests/writer.context')
-rw-r--r--tests/writer.context68
1 files changed, 33 insertions, 35 deletions
diff --git a/tests/writer.context b/tests/writer.context
index 2ae763771..a2427b363 100644
--- a/tests/writer.context
+++ b/tests/writer.context
@@ -1,27 +1,30 @@
-\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,
+ style=normal,
+ color=black,
+ contrastcolor=black,
+ title=Pandoc Test Suite,
+ author=John MacFarlane; Anonymous]
+% make chapter, section bookmarks visible when opening document
+\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
+\setupinteractionscreen[option=bookmark]
+\setuptagging[state=start]
+
+\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=yes] % use microtypography
+\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 +38,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.