[XeTeX] Two font data problems -- newbie question

mskala at ansuz.sooke.bc.ca mskala at ansuz.sooke.bc.ca
Tue Apr 12 16:23:17 CEST 2011


On Mon, 11 Apr 2011, Dan Drake wrote:
> If you please, what dumb thing am I doing here?

No dumb mistakes, just a little more work needed to get the results
you want.

The quotation marks thing should be easy.  Try specifying Mapping=tex-text
as an option when you choose the font, as in:

   \setmainfont[Mapping=tex-text]{Adobe Garamond Pro}

The "overfull hbox" thing will be harder.  This is most likely happening
because of places where TeX wasn't able to make a good line break, and
there *is* no perfect solution to that.  In a human-written document the
human would be expected to manually examine and fix each such issue, by
techniques that might include specifying additional hyphenation points;
forcing manual line breaks; locally invoking the \sloppy command to relax
the tolerance on goodness of fit; switching to ragged right; switching to
wider columns; tolerating a few overfull boxes; or even rewriting the
offending text.  In theory, if your text is automatically generated, you
could do some of these things automatically, but not all of them will be
easy.

Specifying \sloppy at the start of your document and leaving it in effect
through the whole thing might be a simple way to make the messages go
away, but it'd be at the cost of allowing a lot of unappealing line
breaks.  To really do it right you'll need to analyse what's actually
causing the messages and respond intelligently to it.
-- 
Matthew Skala
mskala at ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/


More information about the XeTeX mailing list