[XeTeX] dealing with $ character

Hans Hagen pragma at wxs.nl
Thu Jul 8 09:51:47 CEST 2004


Bruce D'Arcus wrote:

>
> On Jul 7, 2004, at 12:08 PM, Hans Hagen wrote:
>
>>> Following from previous discussion, is there a way that I can get 
>>> TeX to accept the $ character without having to do \$?  My source is 
>>> XML, so it's not convenient to modify there, or in the XSLT.
>>
>>
>> \catcode`\$=12
>
>
> Thanks Hans, but this -- in the preamble -- doesn't seem to work.  Is 
> there something else I need to do?
>
> I just want to be able to typeset "$4000".

it sort of depends on the macro package you use; in context, you can say:  

\chardef\XMLtokensreduction\plustwo

of course you then have to use fonts that have the dollar in the normal ascii slot (not cmr -)

I always wonder why characters like $ are not symbols  

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the XeTeX mailing list