I'm finding that if I use an acro
acronym inside a soul
strikeout command, I get errors about the acronym not being defined. Here is my Minimal Working Example:
\documentclass{article}
\usepackage{acro} % Handling of acronyms
\usepackage{soul} % Strikeout font
%\soulfont{\ac}{1} % Protect's \ac command from soul
\DeclareAcronym{abc}{ short = ABC, long =AbBraCadabra }
\begin{document}
Try strikeout \st{abc}
Try acronym \ac{abc}
% This causes error about undefined acronym '{abc}'
Try strikeout acronym \st{\ac{abc}}
\end{document}
The commented-out \soulfont command is an attempt protect the \ac command, as per the soul packcage documentation (section "Adding font commands"). It causes the following error
! TeX capacity exceeded, sorry [input stack size=5000].
\SOUL@do #1->\SOUL@scan
#1\SOUL@stop
Is there any way around this without abandoning the acro package?
\st{{\ac{abc}}}
– doesn't help if the acronym is used for the first time, though… – cgnieder May 1 '17 at 15:51\soulregister{\ac}{1}
should work but it doesn't… – cgnieder May 1 '17 at 15:57