[XeTeX] mapping and Latin Modern font

Robert Spence spence at saar.de
Tue Jul 3 21:37:05 CEST 2007


Sorry, I spoke too soon!

On 03 Jul 2007, at 19:41 , Robert Spence wrote:

> Hi Alex,
>
> On 03 Jul 2007, at 18:31 , Alex Hamann wrote:
>
>> I am using a utf-8 encoded tex-file, process it with xelatex using
>> xdvipdfmx and want to have it typset with latin modern fonts.
>> calling
>>    \usepackage{xunicode, fontspec}
>> gives me everything I want except for the correct mapping of
>> ligatures e.g. "--" and "---"
>>  From the fontspec manual I could only gather how to get the correct
>> mapping when using the setromanfont-option.
>
> Try:
>
> \usepackage{xunicode,fontspec}
> \defaultfontfeatures{Mapping=tex-text}
> then do
> \setromanfont
> or
> \setmainfont
> or whatever else you need to do with fonts.
>
> Should work.


What I suggested doesn't work.  You'd need to explicitly specify the  
font as LMRoman10-Regular or something... which raises a new complex  
of problems.

Can someone else with more experience help?

-- Rob Spence


More information about the XeTeX mailing list