[XeTeX] Fine tune selecting alternate glyphs

Guido Herzog guido_herzog at hotmail.com
Tue Feb 9 19:17:20 CET 2010



Try the folowing code:

 

\documentclass{article}

\usepackage{times} 

 

\begin{document}

%\newcommand{\d1}{abc}\d1 %errors 

 

\makeatletter

\let\nDef\@namedef

\let\nUse\@nameuse

\makeatother

 

\nDef{d1}{\Large\bf abc}

\nUse{d1}

 

\newcount\cA \cA = 101

 

\nDef{d\the\cA}{\Large\it abc}

 

\nUse{d\the\cA}

 

\nUse{d101}

 

\end{document}

 

 

Guido Herzog


 
> From: hospes.primus at verizon.net
> To: news3 at nililand.de; xetex at tug.org
> Date: Tue, 9 Feb 2010 05:39:18 -0500
> Subject: Re: [XeTeX] Fine tune selecting alternate glyphs
> 
> 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
> > 
> 
> 
> 
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
 		 	   		  
_________________________________________________________________
http://redirect.gimas.net/?n=M1001xHM2
Hotmail macht’s dir leicht: Versende vorgeschriebene Neujahrsgrüße
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100209/70b8738f/attachment.html>


More information about the XeTeX mailing list