aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-03 10:27:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-03 10:27:05 -0800
commitb1a58a04fddd04f3f6cb677437656773566e6264 (patch)
tree315870bab1f8bebfcb4f24ede7c5dd66be6ef2a1 /data
parent8f75a535429abdd8bd089f83a04a783baa60ce31 (diff)
downloadpandoc-b1a58a04fddd04f3f6cb677437656773566e6264.tar.gz
LaTeX template: fix `\CSLRightInline`...
so that it does not run over the right margin.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex6
1 files 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$