Commit e3f8750e authored by Roland Herzog's avatar Roland Herzog

makes hyperref uncolorization if active changes a package

parent a08d109d
% Parse the .soc file (if it exists) for active changes
\@ifpackageloaded{changes}{\@ifpackagelater{changes}{2018/10/10}{\def\numapdeChangesSearchString{0;0;0;0;0}}{\def\numapdeChangesSearchString{0;0;0}}}{}
\IfFileExists{\jobname.soc}{
\ifnum\pdfshellescape=1
\newread\numapdeinput
\immediate\write18{grep -vq '\numapdeChangesSearchString$' \jobname.soc; echo $? > '\jobname.nac'}
\openin\numapdeinput=\jobname.nac
\bgroup
\endlinechar=-1
\read\numapdeinput to \localline
\global\let\NoActiveChanges\localline
\egroup
\closein\numapdeinput
% In case of active changes, configure hyperref to all gray/black colors
\@ifpackageloaded{hyperref}{\ifthenelse{\equal{\NoActiveChanges}{1}}{}{\@ifpackageloaded{numapde-colors}{\hypersetup{allcolors=TolDarkGray}}{\hypersetup{allcolors=black}}}}{}
\else
\fi
}{}
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