Updated tests for latex/context template changes.
This commit is contained in:
parent
ece2a6c1a7
commit
652b60f141
6 changed files with 85 additions and 159 deletions
|
@ -22,32 +22,14 @@
|
|||
\usepackage{microtype}
|
||||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
||||
}{}
|
||||
\makeatletter
|
||||
\@ifpackageloaded{hyperref}{}{%
|
||||
\ifxetex
|
||||
\usepackage[setpagesize=false, % page size defined by xetex
|
||||
unicode=false, % unicode breaks when used with xetex
|
||||
xetex]{hyperref}
|
||||
\else
|
||||
\usepackage[unicode=true]{hyperref}
|
||||
\fi
|
||||
}
|
||||
\@ifpackageloaded{color}{
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color}
|
||||
}{%
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
}
|
||||
\makeatother
|
||||
\usepackage{hyperref}
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
|
||||
\hypersetup{breaklinks=true,
|
||||
bookmarks=true,
|
||||
pdfauthor={},
|
||||
pdftitle={},
|
||||
colorlinks=true,
|
||||
citecolor=blue,
|
||||
urlcolor=blue,
|
||||
linkcolor=magenta,
|
||||
pdfborder={0 0 0}
|
||||
}
|
||||
unicode=true, colorlinks=true,
|
||||
citecolor=black,
|
||||
urlcolor=black,
|
||||
linkcolor=black,
|
||||
pdfborder={0 0 0}}
|
||||
\urlstyle{same} % don't use monospace font for urls
|
||||
\usepackage{color}
|
||||
\usepackage{fancyvrb}
|
||||
|
|
|
@ -22,32 +22,14 @@
|
|||
\usepackage{microtype}
|
||||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
||||
}{}
|
||||
\makeatletter
|
||||
\@ifpackageloaded{hyperref}{}{%
|
||||
\ifxetex
|
||||
\usepackage[setpagesize=false, % page size defined by xetex
|
||||
unicode=false, % unicode breaks when used with xetex
|
||||
xetex]{hyperref}
|
||||
\else
|
||||
\usepackage[unicode=true]{hyperref}
|
||||
\fi
|
||||
}
|
||||
\@ifpackageloaded{color}{
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color}
|
||||
}{%
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
}
|
||||
\makeatother
|
||||
\usepackage{hyperref}
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
|
||||
\hypersetup{breaklinks=true,
|
||||
bookmarks=true,
|
||||
pdfauthor={},
|
||||
pdftitle={},
|
||||
colorlinks=true,
|
||||
citecolor=blue,
|
||||
urlcolor=blue,
|
||||
linkcolor=magenta,
|
||||
pdfborder={0 0 0}
|
||||
}
|
||||
unicode=true, colorlinks=true,
|
||||
citecolor=black,
|
||||
urlcolor=black,
|
||||
linkcolor=black,
|
||||
pdfborder={0 0 0}}
|
||||
\urlstyle{same} % don't use monospace font for urls
|
||||
\usepackage{listings}
|
||||
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -22,32 +22,14 @@
|
|||
\usepackage{microtype}
|
||||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
||||
}{}
|
||||
\makeatletter
|
||||
\@ifpackageloaded{hyperref}{}{%
|
||||
\ifxetex
|
||||
\usepackage[setpagesize=false, % page size defined by xetex
|
||||
unicode=false, % unicode breaks when used with xetex
|
||||
xetex]{hyperref}
|
||||
\else
|
||||
\usepackage[unicode=true]{hyperref}
|
||||
\fi
|
||||
}
|
||||
\@ifpackageloaded{color}{
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color}
|
||||
}{%
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
}
|
||||
\makeatother
|
||||
\usepackage{hyperref}
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
|
||||
\hypersetup{breaklinks=true,
|
||||
bookmarks=true,
|
||||
pdfauthor={John MacFarlane; Anonymous},
|
||||
pdftitle={Pandoc Test Suite},
|
||||
colorlinks=true,
|
||||
citecolor=blue,
|
||||
urlcolor=blue,
|
||||
linkcolor=magenta,
|
||||
pdfborder={0 0 0}
|
||||
}
|
||||
unicode=true, pdftitle={Pandoc Test Suite}, pdfauthor={John MacFarlane; Anonymous}, colorlinks=true,
|
||||
citecolor=black,
|
||||
urlcolor=black,
|
||||
linkcolor=black,
|
||||
pdfborder={0 0 0}}
|
||||
\urlstyle{same} % don't use monospace font for urls
|
||||
\usepackage{fancyvrb}
|
||||
\VerbatimFootnotes % allows verbatim text in footnotes
|
||||
|
|
|
@ -1,27 +1,28 @@
|
|||
\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]
|
||||
% 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,12 +36,11 @@
|
|||
|
||||
\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={
|
||||
\bigskip\stopalignment}]
|
||||
|
||||
|
||||
\starttext
|
||||
|
|
|
@ -22,32 +22,14 @@
|
|||
\usepackage{microtype}
|
||||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
||||
}{}
|
||||
\makeatletter
|
||||
\@ifpackageloaded{hyperref}{}{%
|
||||
\ifxetex
|
||||
\usepackage[setpagesize=false, % page size defined by xetex
|
||||
unicode=false, % unicode breaks when used with xetex
|
||||
xetex]{hyperref}
|
||||
\else
|
||||
\usepackage[unicode=true]{hyperref}
|
||||
\fi
|
||||
}
|
||||
\@ifpackageloaded{color}{
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color}
|
||||
}{%
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
}
|
||||
\makeatother
|
||||
\usepackage{hyperref}
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
|
||||
\hypersetup{breaklinks=true,
|
||||
bookmarks=true,
|
||||
pdfauthor={},
|
||||
pdftitle={},
|
||||
colorlinks=true,
|
||||
citecolor=blue,
|
||||
urlcolor=blue,
|
||||
linkcolor=magenta,
|
||||
pdfborder={0 0 0}
|
||||
}
|
||||
unicode=true, colorlinks=true,
|
||||
citecolor=black,
|
||||
urlcolor=black,
|
||||
linkcolor=black,
|
||||
pdfborder={0 0 0}}
|
||||
\urlstyle{same} % don't use monospace font for urls
|
||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||
\usepackage[shorthands=off,ngerman,british,ngerman,spanish,french,main=english]{babel}
|
||||
|
|
Loading…
Reference in a new issue