0

I would like to locally deactivate the colon character (made active by babel package used with frenchb option). But it appears to not work within a macro:

\documentclass{article}
\usepackage[frenchb]{babel}

\begin{document}
In normal text: {\NoAutoSpacing 20:20}. % working

In a macro: \textsuperscript{\NoAutoSpacing 20:20} % not working

\end{document}

image result

This appears to be the same using \shorthandoff{:} and \shorthandon{:} (as a consequence, this is linked to this topic but I don't clearly see how it applies here.).

Thank you for your help.

Tobard
  • 1,189

1 Answers1

2

Your issue can only be reproduced with TeX Live 2015 or earlier.

If you can't update your TeX distribution, use

\textsuperscript{20\string:20}
egreg
  • 1,121,712