Skip to content

Commit

Permalink
Patch revtex's \addtocontents (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
moewew committed May 2, 2024
1 parent 237c4d4 commit ac2456c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tex/latex/biblatex/biblatex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,14 @@
{\blx@contentssafe@citecommands
\let}
{}
{\blx@err@patch{\string\addtocontents}}%
{% revtex
% (which defines \robustify@contents to make commands safe
% in this context, so we check if we can have that)
\ifundef\robustify@contents
{\@secondoftwo}
{\ifpatchable\addtocontents{\robustify@contents}}
{\appto\robustify@contents{\blx@contentssafe@citecommands}}
{\blx@err@patch{\string\addtocontents}}}%
% patch footnote
\toggletrue{blx@tempa}%
\def\do#1{%
Expand Down

0 comments on commit ac2456c

Please sign in to comment.