[XeTeX] How to make hyphenation work in XeLaTeX?

Jonathan Kew jonathan_kew at sil.org
Sun Jan 21 21:46:49 CET 2007

On 21 Jan 2007, at 8:30 pm, Mojca Miklavec wrote:

> I was confused because of two things:
> - I still got a lot of overfull boxes and no hyphens showed (sometimes
> hyphens are borrowed from English - for example if language isn't set
> properly) - the fact that \showhyphens didn't work was confusing me
> most

Yes, that's certainly confusing, and you're not the only one to be  
deceived by it. If someone writes a good replacement macro, it would  
be nice to provide that (maybe in Will's xltxtra package), but the  
one I put together previously doesn't completely do the job, as it  
only really works for single words. Any volunteers? :)

> - I do get OpenType LM fonts without using fontspec. pdffonts shows  
> me:
> name                                 type         emb sub uni  
> object ID
> ------------------------------------ ------------ --- --- ---  
> ---------
> LTKUPO+LMRoman10-Regular-Identity-H  CID Type 0C  yes yes yes       
> 5  0
> and I also get all the necessary accents (which wouldn't happen if I
> would be using Type1).

I think (but may be mistaken) that this is happening because you  
specified the EU1 font encoding, and eu1enc.def declares lmr as the  
default substitution font for this encoding. So LaTeX's default font  
family was still CM, but this wasn't available in EU1, and so LM was  
used instead. But it's better to explicitly choose LM, for example by  
loading fontspec.

Best wishes,


More information about the XeTeX mailing list