aboutsummaryrefslogtreecommitdiff
path: root/test/writer.latex
diff options
context:
space:
mode:
authorEnno <Konfekt@users.noreply.github.com>2018-12-11 18:21:45 -0300
committerJohn MacFarlane <jgm@berkeley.edu>2018-12-11 16:21:45 -0500
commitdc8caf10df9ba65169ba050ea37cca2d45fcc4d4 (patch)
tree05728091ac632192a263e37be4f4586c13b1378c /test/writer.latex
parentfe9c6eb86b162560c502675619b72d866df15601 (diff)
downloadpandoc-dc8caf10df9ba65169ba050ea37cca2d45fcc4d4.tar.gz
template:latex: make @ letter before using it (#5145)
This fixes the previous commit for parskip and KOMA classes.
Diffstat (limited to 'test/writer.latex')
-rw-r--r--test/writer.latex11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/writer.latex b/test/writer.latex
index 0a9cf96f8..46e9b7a38 100644
--- a/test/writer.latex
+++ b/test/writer.latex
@@ -21,13 +21,16 @@
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
+\makeatletter
\@ifundefined{KOMAClassName}{%
\IfFileExists{parskip.sty}{%
- \usepackage{parskip}
+ \usepackage{parskip}
}{% else
- \setlength{\parindent}{0pt}
- \setlength{\parskip}{6pt plus 2pt minus 1pt}
- }}{\KOMAoptions{parskip=half}}
+ \setlength{\parindent}{0pt}
+ \setlength{\parskip}{6pt plus 2pt minus 1pt}}
+}{% else
+ \KOMAoptions{parskip=half}}
+\makeatother
\usepackage{fancyvrb}
\usepackage{hyperref}
\hypersetup{