[XeTeX] Fine tune selecting alternate glyphs

Ulrike Fischer news3 at nililand.de
Tue Feb 9 10:12:06 CET 2010


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 



More information about the XeTeX mailing list