Commit 4c6ec709 authored by Roland Herzog's avatar Roland Herzog
Browse files

avoids use of authorcolor, which is undefined for older version of changes.sty

parent 736c9039
......@@ -46,7 +46,7 @@
% Finally, locally increase the width of ulem's \sout-generated lines and use the
% current author's colors for all hyperref colors
\renewcommand{\ULthickness}{1.2pt}%
\ltx@ifpackageloaded{hyperref}{\hypersetup{allcolors=authorcolor}}{}%
\ltx@ifpackageloaded{hyperref}{\@ifundefinedcolor{authorcolor}{}{\hypersetup{allcolors=authorcolor}}}{}%
% Fix the strikeout command for 'deleted' and 'replaced' commands to work correctly in displayed equations
% https://tex.stackexchange.com/questions/297111/wrong-to-delete-replace-equation-by-using-changes-package
\ifmmode\text{\sout{\ensuremath{#1}}}\else\sout{#1}\fi%
......@@ -55,7 +55,7 @@
\setdeletedmarkup{\numapde@deleted{#1}}
% Fix the added command to use current author's color for all hyperref colors
\newcommand{\numapde@added}[1]{%
\ltx@ifpackageloaded{hyperref}{\hypersetup{allcolors=authorcolor}}{}%
\ltx@ifpackageloaded{hyperref}{\@ifundefinedcolor{authorcolor}{}{\hypersetup{allcolors=authorcolor}}}{}%
#1%
}
\setaddedmarkup{\numapde@added{#1}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment