[XeTeX] Quick question on font substitutions and the like

Michael B. Trausch mike at trausch.us
Sun Dec 9 08:40:18 CET 2007

On Sun, 2007-12-09 at 00:16 -0600, Jonathan Kew wrote:
> You could do this by making these characters "active" (i.e., single- 
> character macros) and giving them appropriate definitions:
>    \catcode"2191 = \active
>    \def^^^^2191{{\arrowfont\char"2191}}
> where \arrowfont is a command you've defined that switches to the  
> font you want to use. (If you're using xelatex, you can use  
> fontspec's \newfontfamily to define it; see the fontspec
> documentation.)

Ah, thank you so much.  I have been using regular LaTeX (from eTeX) for
a little while now, and when I stumbled upon XeTeX/XeLaTeX, I was in
heaven.  This teensy problem was the only one I could not figure out; I
knew there had to be a better way than doing it manually.  This is
definitely something for me to add into my document template’s preamble.


	--- Mike

Michael B. Trausch                                   mike at trausch.us
home: 404-592-5746, 1                                 www.trausch.us
cell: 678-522-7934                       im: mike at trausch.us, jabber
Ubuntu Unofficial Backports Project:    http://backports.trausch.us/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://tug.org/pipermail/xetex/attachments/20071209/071620bc/attachment.bin 

More information about the XeTeX mailing list