[XeTeX] toc in Monospaced Lining font

Tilman Hannemann tilmanh at uni-bremen.de
Sat Apr 25 17:56:32 CEST 2009


Hello Wybo,

Am 25.04.2009 um 16:26 schrieb Wybo Dekker:

> In a document with Proportional Oldstyle, how can I make the toc use
> Monospaced Lining numbers?


Just try the following code in your preamble:

\let\oldcontentsline\contentsline
\renewcommand\contentsline[3]{%
  \oldcontentsline{#1}{#2}{\addfontfeatures{Numbers= 
{Lining,Monospaced}} #3}
}%


and remove

\addfontfeatures{Numbers={Lining,Monospaced}}

from line 10.

Best,

Tilman


More information about the XeTeX mailing list