[XeTeX] dealing with $ character
Steffen Prohaska
prohaska at zib.de
Wed Jul 14 20:33:03 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Jul 9, 2004, at 8:43 AM, Bruno Voisin wrote:
> Le 9 juil. 04, à 08:29, Steffen Prohaska a écrit :
>
>> \def\"o{ö}
>
> In a rush: but then you'll have to account for all different input
> possibilities? Like:
>
> Schr\"odinger
> Schr\"{o}dinger
> Fran\c cais
> Fran\c{c}ais
>
Next try ... The macros below work fine with all the cases from above:
\renewcommand{\"}[1]{\if#1a{ä}\else\if#1A{Ä}\else\if#1u{ü}\else\if#1U{Ü}
\else\if#1o{ö}\else\if#1O{Ö}\else ERROR: unexpected character
>#1<\fi\fi\fi\fi\fi\fi}
\renewcommand{\c}[1]{\if#1c{ç}\else\if#1C{Ç}\else ERROR: unexpected
character >#1<\fi\fi}
I'm adding more cases as needed.
Steffen
- --
PGP Public Key: http://www.zib.de/prohaska/prohaska.pgp
Key id: 0xDA749299
Key fingerprint: 8B59 83A8 A43D E0E2 DEDB D479 3157 2FEA DA74 9299
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
iD8DBQFA9XxlMVcv6tp0kpkRAiPJAJ0dgC/xg684KfnGmeCXzpkMa+rqQwCeM9CF
Aq8S8oT6Oh+REUTAc6vra6I=
=OdaJ
-----END PGP SIGNATURE-----
More information about the XeTeX
mailing list