doc suggestion, was: [XeTeX] beginners trouble
Will Robertson
will at guerilla.net.au
Sun Nov 13 22:55:30 CET 2005
On 13/11/2005, at 10pm, Peter Dyballa wrote:
> This is not a fontspec topic, I'm just missing some mentioning of
> this. How do you prevent XeTeX from creating an fl ligature here:
> beruflich (professionally)? In German it's just 'beruf"|lich.'
Unless things have changed since I wrote the fontspec documentation,
this is indeed something that is different from TeX; the thing you
undoubtedly tried, "beruf{}lich" doesn't work because of the way the
font processor works in XeTeX.
So, as mentioned in the fontspec docs :) (I admit, it's a tiny
comment), you need to put in an empty hbox or something; see if this
works:
\mbox{beruf\null lich}
I'm not sure if the surrounding mbox is necessary...usually you'd be
okay without it, but I don't know what goes on with hyphenation.
(Alternatively, you could define "beruflich" to be in a font that
doesn't contain the common ligatures:
\def\beruflich{\addfontfeature{Ligatures=NoCommon}beruflich})
here is \beruflich
But your tastes may vary...)
Will
More information about the XeTeX
mailing list