[XeTeX] Fine tune selecting alternate glyphs

David J. Perry hospes.primus at verizon.net
Tue Feb 9 11:39:18 CET 2010


Thanks -- I should not type things like this late at night!

David

----- Original Message ----- 
From: "Ulrike Fischer" <news3 at nililand.de>
To: <xetex at tug.org>
Sent: Tuesday, February 09, 2010 4:12 AM
Subject: Re: [XeTeX] Fine tune selecting alternate glyphs


> Am Tue, 09 Feb 2010 00:24:36 -0500 schrieb David J. Perry:
>
>> LaTeX \newcommand feature to make this even shorter, something like:
>>     \newcommand{\d1}{\addfontfeature{Alternates=1}δ}
>> Now whenever you type \d1
>
> You can't use numbers in a command name like this!
>
> Try it out:
>
> \documentclass{article}
> \usepackage[T1]{fontenc}
>
> \begin{document}
> %\newcommand{\d1}{abc}\d1 %errors
>
> Def: \newcommand{\m1}{abc}
>
> Test: \m1
>
> \end{document}
>
> Use e.g. roman letters to denote numbers \di, \dii ....
>
>
> -- 
> Ulrike Fischer
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
> 



More information about the XeTeX mailing list