aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2019-03-22 01:32:52 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-21 23:32:52 -0600
commitb3473df417a760bb3fc10ee71c76a834c4c05214 (patch)
treedcbca184bdbe2c232e2cc08a0d1cb8f003bb1391 /data/templates
parent567a43ace322bb8198a75954fef97e1cc91015a1 (diff)
downloadpandoc-b3473df417a760bb3fc10ee71c76a834c4c05214.tar.gz
LaTeX template: Move \setstretch after front matter (#5378)
Ensures that `\maketitle`, `\tableofcontents`, and so forth are not affected by changes to line spacing. Closes #5179 by partially working around <https://github.com/reutenauer/polyglossia/issues/218>.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.latex4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index bb83755e0..8cd64b866 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -93,7 +93,6 @@ $else$
$endif$
$if(linestretch)$
\usepackage{setspace}
-\setstretch{$linestretch$}
$endif$
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
@@ -431,6 +430,9 @@ $endif$
$if(lof)$
\listoffigures
$endif$
+$if(linestretch)$
+\setstretch{$linestretch$}
+$endif$
$if(has-frontmatter)$
\mainmatter
$endif$