[OS X TeX] separators in label names

Piet van Oostrum piet-l at vanoostrum.org
Sun Oct 13 08:21:10 EDT 2019


jfbu <jfbu at free.fr> writes:

>
> Hi,
>
> sorry if completely off the mark, but doesn't babel provide the
>
> \@safe at activestrue
>
> toggle precisely for such \csname...\endcsname expansions ?
>
> Couldn't crossreftools in presence of babel do
>
> \@safe at activestrue
> ...
>
> \@safe at activesfalse
>
I have tried that, but because there are all kinds of expansions going on at different times, I couldn't get it working.

However, I found that I had made an error in my code. There was a r@{#1} that should be r@#1.

So the code should be:

\renewcommand{\@@crtextr at ct@ref}[2]{%
  \expandafter\@@@crtextr at ct@ref\expandafter{\detokenize{#2}}{#1}%
}
\newcommand{\@@@crtextr at ct@ref}[2]{%
  \expandafter\ifx\csname r@#1\endcsname\relax
  \crt at refundefined%
  \else
  \expandafter\expandafter\csname crt at ref@splitter@#2\endcsname\csname r@#1\endcsname%
  \fi
}
-- 
Piet van Oostrum <piet-l at vanoostrum.org>
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]


More information about the MacOSX-TeX mailing list