[XeTeX] latin modern questions

Gareth Hughes garzohugo at gmail.com
Sat Apr 25 01:24:51 CEST 2009


Getting carried away: here is the PDF as well as the input file with a
few other variants of LMR.

Gareth.

Wybo Dekker wrote:
> I'm trying to use xelatex for the first time, but I can't get the fonts
> right.
> The following example:
> 
> ___________________________________________
> \documentclass{article}
> \usepackage[english]{babel}
> \usepackage{fontspec}
> \usepackage{xltxtra}
> \usepackage{xunicode}
> \usepackage{fancyhdr}
> \pagestyle{fancy}
> 
> \defaultfontfeatures{Mapping=tex-text,Numbers=OldStyle}
> 
> \begin{document}
> \fontspec{Latin Modern Roman}
> \tableofcontents
> \setcounter{page}{1234}
> \section{One -- 1234}
> \input{tufte}
> 
> 1234
> 
> \textsc{smallcaps: 1234}
> 
> \textsl{slanted: 1234}
> 
> \textbf{bold: 1234}
> 
> \textit{italic: 1234}
> 
> \input{tufte}
> \subsection{One -- one}
> \input{tufte}
> \subsection{One -- two}
> \input{tufte}
> \subsection{One -- three}
> \input{tufte}
> \section{Two -- 1234}
> \input{tufte}
> \end{document}
> ___________________________________________
> 
> shows some of my problems:
> 
> - numbers are oldstyle, except in:
>   headings,
>   (sub)section titles,
>   page numbers
>   subsection page numbers in the toc
> - The latter stick out in the margin
> - slanted is not slanted but italic
> - smallcaps is not smallcaps but roman
> 
> How can I fix this?
> 

-- 
Gareth Hughes

Department of Eastern Christianity
Oriental Institute
Pusey Lane
Oxford
OX1 2LE

+44 (0)1865 610227
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LMtest.pdf
Type: application/pdf
Size: 38651 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20090425/bc5a7aaa/attachment-0001.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LMtest.tex
Type: text/x-tex
Size: 1050 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20090425/bc5a7aaa/attachment-0001.bin 


More information about the XeTeX mailing list