I have define a variable that changes with a counter as such:
% Abbreviate after first instance
\newcounter{whocount}
\setcounter{whocount}{0}%
\newcommand{\who}{
\stepcounter{whocount}
\ifnum\value{whocount}=1%\ifnum\c@whocount=1%<<<the TeX way
World Health Organisation (W.H.O.)%
\else%
W.H.O%
\fi
}
If I have a sentence such as the following:
The \who recommends wearing masks in public.
It will output
The World Health Organisation (W.H.O.) recommends wearing masks in public.
The only way I can find to fix this would be the following:
The\ignorespaces\who recommends wearing masks in public.
\unskip also works as above.
Is there something I can change in my \who definition to suppress this strange white-space before the word?
\newcommand{\who}{%solve your problem? – Sigur Apr 28 '21 at 02:16