diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-22 13:56:04 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-22 13:56:04 -0700 |
commit | d611568237d047046705ea2590a1868e1db133f4 (patch) | |
tree | 7c7cf89cb18f7706731ac8ff405429b77467a5cc | |
parent | 581ec74a18864a3bd0eab52e46afcefd2b92b1ad (diff) | |
download | pandoc-d611568237d047046705ea2590a1868e1db133f4.tar.gz |
Updated tests for new latex templates.
-rw-r--r-- | tests/lhs-test.latex | 17 | ||||
-rw-r--r-- | tests/lhs-test.latex+lhs | 17 | ||||
-rw-r--r-- | tests/writer.latex | 17 |
3 files changed, 42 insertions, 9 deletions
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex index f8851900a..647f16396 100644 --- a/tests/lhs-test.latex +++ b/tests/lhs-test.latex @@ -1,11 +1,22 @@ \documentclass{article} \usepackage{amssymb,amsmath} -\usepackage[mathletters]{ucs} -\usepackage[utf8x]{inputenc} +\usepackage{iftex} +\ifXeTeX + \usepackage{fontspec,xltxtra,xunicode} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} +\else + \ifLuaTeX + \usepackage{fontspec} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} + \else + \usepackage[mathletters]{ucs} + \usepackage[utf8x]{inputenc} + \fi +\fi \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref} \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} -\setlength{\emergencystretch}{3em} -- prevent overfull lines +\setlength{\emergencystretch}{3em} % prevent overfull lines \setcounter{secnumdepth}{0} diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs index 6222866ea..0cd3185db 100644 --- a/tests/lhs-test.latex+lhs +++ b/tests/lhs-test.latex+lhs @@ -1,13 +1,24 @@ \documentclass{article} \usepackage{amssymb,amsmath} -\usepackage[mathletters]{ucs} -\usepackage[utf8x]{inputenc} +\usepackage{iftex} +\ifXeTeX + \usepackage{fontspec,xltxtra,xunicode} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} +\else + \ifLuaTeX + \usepackage{fontspec} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} + \else + \usepackage[mathletters]{ucs} + \usepackage[utf8x]{inputenc} + \fi +\fi \usepackage{listings} \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref} \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} -\setlength{\emergencystretch}{3em} -- prevent overfull lines +\setlength{\emergencystretch}{3em} % prevent overfull lines \setcounter{secnumdepth}{0} diff --git a/tests/writer.latex b/tests/writer.latex index b13f93ac4..19a8753f5 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -1,7 +1,18 @@ \documentclass{article} \usepackage{amssymb,amsmath} -\usepackage[mathletters]{ucs} -\usepackage[utf8x]{inputenc} +\usepackage{iftex} +\ifXeTeX + \usepackage{fontspec,xltxtra,xunicode} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} +\else + \ifLuaTeX + \usepackage{fontspec} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} + \else + \usepackage[mathletters]{ucs} + \usepackage[utf8x]{inputenc} + \fi +\fi \usepackage{fancyvrb} % Redefine labelwidth for lists; otherwise, the enumerate package will cause % markers to extend beyond the left margin. @@ -28,7 +39,7 @@ \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref} \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} -\setlength{\emergencystretch}{3em} -- prevent overfull lines +\setlength{\emergencystretch}{3em} % prevent overfull lines \setcounter{secnumdepth}{0} \VerbatimFootnotes % allows verbatim text in footnotes |