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

Michael Kubovy kubovy at virginia.edu
Sat Jun 9 15:25:34 CEST 2007


On Jun 9, 2007, at 9:23 AM, Bruno Voisin wrote:

> 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:
>
> \defaultfontfeatures{Mapping=tex-text}
> \setmainfont{Palatino}
>
> not
>
> \setmainfont{Palatino}
> \defaultfontfeatures{Mapping=tex-text}
>
> 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).

Thanks so much. That did it.
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



------------------------- 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 macostex-archives mailing list