[Aleph] Lamed and dollars

Giuseppe Bilotta gip.bilotta at iol.it
Tue Nov 23 11:07:30 CET 2004


Tuesday, November 23, 2004 klists at saphor.de wrote:

>> "$" => "\$" ;
>> "_" => "\_"  ;
>> "&" => "&"  ;   
>> "#" => "\#"  ;      
>> "\" => "\textbackslash" ;      
>> "{" => "\{"  ;      
>> "}" => "\}"  ;  
>> "%" => "\%"  ;
>> "~" => "\~{}" ;
>> "^" => "\^{}" ;

> For curiousity: *Why* do these shifts work? It is \$ originally in the
> source, yet you shift $ to \$. What happens to any $s that are used
> for marking mathematical text?

\$ will never get to the OTP parser, so it stays \$. Everything
else gets re-scanned, but will lose its catcode value when
re-input. By re-escaping them, it works. I still have to get a
better look at a proper way to fix this, though.

-- 
Giuseppe "Oblomov" Bilotta



More information about the Aleph mailing list