git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: fix `\CSLRightInline`...

so that it does not run over the right margin.

commitb1a58a04fddd04f3f6cb677437656773566e6264 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 3 Nov 2020, 10:27 (6 years ago) parent8f75a53
1 file changed+3−3
data/templates/default.latex+3−3
data/templates/default.latex+3−3
@@ -384,10 +384,10 @@ $if(csl-refs)$
384384 \fi
385385 }%
386386 {}
387−\usepackage{calc} % for \widthof, \maxof
387+\usepackage{calc}
388388\newcommand{\CSLBlock}[1]{#1\hfill\break}
389−\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\maxof{\widthof{#1}}{\csllabelwidth}}{#1}}
390−\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth}{#1}}
389+\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
390+\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}}
391391\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
392392$endif$
393393