summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-09-03 15:28:47 -0600
committerJohn MacFarlane <jgm@berkeley.edu>2023-09-03 15:29:28 -0600
commitc017bbed581dddc74766471e8fbcc5c6e53638a7 (patch)
tree32d21daed1d35b70e4c18a571b48775b63e856f1 /data
parent734f1b4578ba5a2e14fdc1c63e795f1c7d5305fa (diff)
LaTeX template: add code allow `\cite` to break across lines.
Closes #9050.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index c177c00e8..dff015525 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -339,8 +339,10 @@ $if(csl-refs)$
\NewDocumentCommand\citeproctext{}{}
\NewDocumentCommand\citeproc{mm}{%
\begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
-% avoid brackets around text for \cite:
\makeatletter
+ % allow citations to break across lines
+ \let\@cite@ofmt\@firstofone
+ % avoid brackets around text for \cite:
\def\@biblabel#1{}
\def\@cite#1#2{{#1\if@tempswa , #2\fi}}
\makeatother