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>.
commitb3473df417a760bb3fc10ee71c76a834c4c05214
authorAndrew Dunning <adunning@users.noreply.github.com>
dateFri 22 Mar 2019, 01:32 (8 years ago)
parent567a43a
data/templates/default.latex+3−1
@@ -93,7 +93,6 @@ $else$
9393$endif$
9494$if(linestretch)$
9595\usepackage{setspace}
96−\setstretch{$linestretch$}
9796$endif$
9897\usepackage{amssymb,amsmath}
9998\usepackage{ifxetex,ifluatex}
@@ -431,6 +430,9 @@ $endif$
431430$if(lof)$
432431\listoffigures
433432$endif$
433+$if(linestretch)$
434+\setstretch{$linestretch$}
435+$endif$
434436$if(has-frontmatter)$
435437\mainmatter
436438$endif$