aboutsummaryrefslogtreecommitdiff
path: root/test/lhs-test.latex
diff options
context:
space:
mode:
authorEnno <Konfekt@users.noreply.github.com>2018-12-11 15:22:31 -0300
committerJohn MacFarlane <jgm@berkeley.edu>2018-12-11 13:22:31 -0500
commit84147eeff15afe29899578fb5a5cc4cb2af1fb7d (patch)
treee80aa2dfdc72ef39093f07b328c347a7cd4d8c0f /test/lhs-test.latex
parent0f736d778f3a93d418c7fed8c9a4a64754aeb515 (diff)
downloadpandoc-84147eeff15afe29899578fb5a5cc4cb2af1fb7d.tar.gz
Let KOMA document class handle parskip when applicable (#5143)
This is just a change to the default latex template.
Diffstat (limited to 'test/lhs-test.latex')
-rw-r--r--test/lhs-test.latex13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/lhs-test.latex b/test/lhs-test.latex
index 8379864ec..88758c51c 100644
--- a/test/lhs-test.latex
+++ b/test/lhs-test.latex
@@ -21,12 +21,13 @@
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
-\IfFileExists{parskip.sty}{%
-\usepackage{parskip}
-}{% else
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{6pt plus 2pt minus 1pt}
-}
+\@ifundefined{KOMAClassName}{%
+ \IfFileExists{parskip.sty}{%
+ \usepackage{parskip}
+ }{% else
+ \setlength{\parindent}{0pt}
+ \setlength{\parskip}{6pt plus 2pt minus 1pt}
+ }}{\KOMAoptions{parskip=half}}
\usepackage{hyperref}
\hypersetup{
pdfborder={0 0 0},