[XeTeX] loosing some active characters
Jonathan Kew
jonathan_kew at sil.org
Thu Jun 12 23:38:56 CEST 2008
On 12 Jun 2008, at 2:29 pm, François Patte wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bonsoir,
>
> I used to type: --- in order to get a punctuation dash with latex.
> This
> is no more true with xelatex... Did I forgot something?
That wasn't actually an "active character" in latex, it's a ligature
in the traditional TeX fonts.
If you're loading fonts in xelatex through fontspec, you want to
apply the "tex-text" font mapping to provide this functionality:
\documentclass{....}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{MyFontName}
....etc...
Or to apply this to all fonts by default:
\documentclass{....}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{MyFontName}
\setsansfont{MySansSerifFont}
....etc...
JK
More information about the XeTeX
mailing list