diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-10-13 10:09:19 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-10-13 10:09:19 -0700 |
commit | 82280cc62c9fdfe7ffe1b0d8443d1739b441e22b (patch) | |
tree | 4756756a63b0d551e6ff91a2a2244288d3e65322 /data | |
parent | ef6627f6456f80534dce937ae89a395b904b0c29 (diff) | |
download | pandoc-82280cc62c9fdfe7ffe1b0d8443d1739b441e22b.tar.gz |
default.latex: fix CSLReference macro definition.
It improperly handled entry spacing and expected 3 parameters
instead of 2.
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/default.latex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex index 31327c1d8..eed41d54b 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -370,15 +370,14 @@ $if(csl-refs)$ \setlength{\cslhangindent}{1.5em} \newlength{\csllabelwidth} \setlength{\csllabelwidth}{3em} -\newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry sp +\newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry spacing {% don't indent paragraphs \setlength{\parindent}{0pt} % turn on hanging indent if param 1 is 1 \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi - % set line spacing % set entry spacing \ifnum #2 > 0 - \setlength{\parskip}{#3\baselineskip} + \setlength{\parskip}{#2\baselineskip} \fi }% {} |