Skip to content

Commit ac2456c

Browse files
committed
Patch revtex's \addtocontents (plk#1356)
1 parent 237c4d4 commit ac2456c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tex/latex/biblatex/biblatex.sty

+8-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,14 @@
345345
{\blx@contentssafe@citecommands
346346
\let}
347347
{}
348-
{\blx@err@patch{\string\addtocontents}}%
348+
{% revtex
349+
% (which defines \robustify@contents to make commands safe
350+
% in this context, so we check if we can have that)
351+
\ifundef\robustify@contents
352+
{\@secondoftwo}
353+
{\ifpatchable\addtocontents{\robustify@contents}}
354+
{\appto\robustify@contents{\blx@contentssafe@citecommands}}
355+
{\blx@err@patch{\string\addtocontents}}}%
349356
% patch footnote
350357
\toggletrue{blx@tempa}%
351358
\def\do#1{%

0 commit comments

Comments
 (0)