LaTeX template: fix \CSLRightInline...

so that it does not run over the right margin.
This commit is contained in:
John MacFarlane 2020-11-03 10:27:05 -08:00
parent 8f75a53542
commit b1a58a04fd

View file

@ -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$