[OS X TeX] --- .neq m-dash

Bruno Voisin bvoisin at mac.com
Sat Jun 9 09:23:43 EDT 2007

Le 9 juin 07 à 15:02, Michael Kubovy a écrit :

> Apparently the problem is not due to hyperref. Nor do Robert's  
> suggestions fix the problem here. This fails to produce an m-dash
> %%!TEX TS-program = xelatexmk
> %%!TEX encoding = UTF-8 Unicode
> \documentclass[11pt]{article}
> \usepackage[cm-default]{fontspec}
> \setmainfont{Palatino}
> \defaultfontfeatures{Mapping=tex-text}
> \usepackage{xunicode}
> \title{Brief Article}
> \author{The Author}
> %\date{}
> \begin{document}
> \maketitle
> here---it is
> \end{document}

Robert's suggestions do indeed fix the problem here, but you need to  
be careful with the order in which you load things:




You need to specify the remapping which will be applied when loading  
the font (the mapping=tex-text instruction) *before* actually loading  
the font itself (the \setmainfont instruction).

Bruno Voisin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list