Skip to content

Commit

Permalink
Adjust default latex template to improve citeproc output.
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
jgm committed Sep 7, 2023
1 parent 1c7a57f commit 6273220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/templates/default.latex
Expand Up @@ -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)$
Expand Down

0 comments on commit 6273220

Please sign in to comment.