diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-05-18 22:46:58 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-05-18 22:46:58 +0200 |
commit | 917612747dcfe3b3e1ea9d72bdbd8f2888b87cf2 (patch) | |
tree | 2574ad464177212f18648e9b036f1acdca6ad287 | |
parent | b45e47735c4f7f2a0e4493d156a43e603615f398 (diff) | |
download | pandoc-917612747dcfe3b3e1ea9d72bdbd8f2888b87cf2.tar.gz |
Test updates for latex template changes.
-rw-r--r-- | test/writers-lang-and-dir.latex | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex index c5c363312..0a7832a91 100644 --- a/test/writers-lang-and-dir.latex +++ b/test/writers-lang-and-dir.latex @@ -29,6 +29,19 @@ pdfborder={0 0 0}, breaklinks=true} \urlstyle{same} % don't use monospace font for urls +\setlength{\emergencystretch}{3em} % prevent overfull lines +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} +\setcounter{secnumdepth}{0} +% Redefines (sub)paragraphs to behave more like sections +\ifx\paragraph\undefined\else +\let\oldparagraph\paragraph +\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} +\fi +\ifx\subparagraph\undefined\else +\let\oldsubparagraph\subparagraph +\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} +\fi \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex \usepackage[shorthands=off,ngerman,british,nswissgerman,spanish,french,main=english]{babel} \newcommand{\textgerman}[2][]{\foreignlanguage{ngerman}{#2}} @@ -41,6 +54,7 @@ \newcommand{\textfrench}[2][]{\foreignlanguage{french}{#2}} \newenvironment{french}[2][]{\begin{otherlanguage}{french}}{\end{otherlanguage}} \else + % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic) \usepackage{polyglossia} \setmainlanguage[]{english} \setotherlanguage[]{german} @@ -49,19 +63,6 @@ \setotherlanguage[]{spanish} \setotherlanguage[]{french} \fi -\setlength{\emergencystretch}{3em} % prevent overfull lines -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} -\setcounter{secnumdepth}{0} -% Redefines (sub)paragraphs to behave more like sections -\ifx\paragraph\undefined\else -\let\oldparagraph\paragraph -\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} -\fi -\ifx\subparagraph\undefined\else -\let\oldsubparagraph\subparagraph -\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} -\fi \ifxetex % load bidi as late as possible as it modifies e.g. graphicx \usepackage{bidi} |