summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-09-07 09:04:56 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-09-07 09:04:56 -0700
commit62732204497dc67a54497cd27b9e6005d2c3ff25 (patch)
treebb5341776b24ba10c6fd436ef4014d35b98d1276 /data/templates
parent1c7a57f0698aebe2a6c8563387588da025ab5212 (diff)
Adjust default latex template to improve citeproc output.
- Add a strut to avoid inconsistencies in spacing. - Remove a break at the end of CSLRightInline to avoid inconsistencies in spacing. It shouldn't be necessary because the paragraph should extend to the right margin. See #9058.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.latex4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 4aa28138f..3e1b2f7ad 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -365,8 +365,8 @@ $if(csl-refs)$
{\end{list}}
\usepackage{calc}
\newcommand{\CSLBlock}[1]{\hfill\break#1\hfill\break}
-\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
-\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
+\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut #1 \strut}}
+\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut #1 \strut}}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
$endif$
$if(lang)$