XeTeX, ligatures, en and em dashes and encoding mapping (was Re: [OS X TeX] )
William Adams
will.adams at frycomm.com
Mon Oct 9 19:51:11 CEST 2006
On Oct 9, 2006, at 12:05 PM, Alex Hamann wrote:
> By comparing two different versions of the same paper I wrote (one
> encoded in MacOSRoman and processed by latex, the other one in
> utf-8 with Gentium fonts and processed with xelatex) that only in
> the macosroman version typing --- would result in one long hyphen,
That's not a hyphen but an em-dash.
> while in the utf-8 version I would get three separate adjacent
> short hyphens. What is the reason for that and how do I get the
> long hyphen in the second document as well?
The conversion of ``---'' to — is done via TeX's ligature mechanism
and Gentium doesn't have a ligature defined for this (nor for ``--''
to an en-dash either I suppose).
You can enable this functionality by turning on the ``tex mapping''
i.e.,
\font\x="Times New Roman:mapping=tex-text" at 12pt
William
--
William Adams
senior graphic designer
Fry Communications
This email message and any files transmitted with it contain information
which is confidential and intended only for the addressee(s). If you are
not the intended recipient(s), any usage, dissemination, disclosure, or
action taken in reliance on it is prohibited. The reliability of this
method of communication cannot be guaranteed. Email can be intercepted,
corrupted, delayed, incompletely transmitted, virus-laden, or otherwise
affected during transmission. Reasonable steps have been taken to reduce
the risk of viruses, but we cannot accept liability for damage sustained
as a result of this message. If you have received this message in error,
please immediately delete it and all copies of it and notify the sender.
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list