[XeTeX] typesetting hyphen in xelatex
Ulrike Fischer
news3 at nililand.de
Thu Dec 20 14:31:22 CET 2012
Am Wed, 19 Dec 2012 22:05:06 +0000 schrieb Philip TAYLOR:
>> \usepackage{fontspec}
>> \defaultfontfeatures{Ligatures=TeX}
> Sadly that is not backwards-compatible : tried in Plain XeTeX,
> no ligatures are recognised :
> \font \bodyfont = "Arial Unicode MS:Ligatures=TeX"
Ligatures=TeX is a high-level option of fontspec. If you use
something like
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Arial}
then fontspec will tell you in the log-file how this translates to
low-level syntax:
"Arial/ICU:mapping=tex-text;"
So in plain tex you can do something like this:
\font\test="Arial:mapping=tex-text;"
\test a--b
to get long dashes.
(The /ICU is seldom necessary).
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the XeTeX
mailing list