24 Jun
2006
24 Jun
'06
5:29 p.m.
Hello Hans, what is the purpose of \hexstringtonumber{..}? I would expect something like: \unprotect \setvalue{@@uc@@a}{10} \setvalue{@@uc@@A}{10} \setvalue{@@uc@@b}{11} \setvalue{@@uc@@B}{11} \setvalue{@@uc@@c}{12} \setvalue{@@uc@@C}{12} \setvalue{@@uc@@d}{13} \setvalue{@@uc@@D}{13} \setvalue{@@uc@@e}{14} \setvalue{@@uc@@E}{14} \setvalue{@@uc@@f}{15} \setvalue{@@uc@@F}{15} \def\dohexstringtonumber#1#2% FF {\the\numexpr\csname @@uc@@#1\endcsname * 16 + \csname @@uc@@#2\endcsname\relax} \protect \starttext \hexstringtonumber{1E} \hexstringtonumber{f5} \stoptext But your version just adds a " to the string... Cheers, Peter -- http://pmrb.free.fr/contact/