From b1a58a04fddd04f3f6cb677437656773566e6264 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 3 Nov 2020 10:27:05 -0800 Subject: [PATCH] LaTeX template: fix `\CSLRightInline`... so that it does not run over the right margin. --- data/templates/default.latex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/templates/default.latex b/data/templates/default.latex index 4cac0a7cc..b03c4d824 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -384,10 +384,10 @@ $if(csl-refs)$ \fi }% {} -\usepackage{calc} % for \widthof, \maxof +\usepackage{calc} \newcommand{\CSLBlock}[1]{#1\hfill\break} -\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\maxof{\widthof{#1}}{\csllabelwidth}}{#1}} -\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth}{#1}} +\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} +\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}} \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} $endif$