[XeTeX] toc in Monospaced Lining font
Wybo Dekker
wybo at servalys.nl
Sat Apr 25 16:26:53 CEST 2009
In a document with Proportional Oldstyle, how can I make the toc use
Monospaced Lining numbers? The example below does not work:
\documentclass{article}
\usepackage[english]{polyglossia}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text, Numbers={Proportional,OldStyle}}
\setmainfont[SmallCapsFont={Latin Modern Roman Caps}]{Latin Modern Roman}
\begin{document}
\setcounter{page}{13}
{ \addfontfeatures{Numbers={Lining,Monospaced}}
\tableofcontents
}
\section{One -- 1234}
\begin{tabular}{ll}
regular, lining, monospaced: &
\addfontfeatures{Numbers={Lining,Monospaced}}111112344444\\
regular, lining, proportional: &
\addfontfeatures{Numbers={Lining,Proportional}}111112344444\\
regular, oldstyle, monospaced: &
\addfontfeatures{Numbers={OldStyle,Monospaced}}111112344444\\
regular, oldstyle, proportional: &
111112344444
\end{tabular}
\subsection{One -- one}
\subsection{One -- two}
\subsection{One -- three}
\end{document}
--
Wybo
More information about the XeTeX
mailing list