[XeTeX] How to make hyphenation work in XeLaTeX?

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Jan 21 20:04:33 CET 2007


Hello,

I'm sorry for a newbie question (I'm most probably missing something
really obvious, but I almost never use LaTeX.): How do I get
(default?) LM + hyphenation to work under XeLaTeX?

I tried the following:

\documentclass{article}
\usepackage[slovene]{babel}
%\usepackage{fontspec} % do I need this ?
\usepackage[EU1]{fontenc}

\begin{document}

% should be:
lo-ko-mo-ti[-]va ču-ha-pu[-]ha

\def\a{lokomotiva čuhapuha}
\a
\showhyphens{\a}

\end{document}


I get some hyphens, but log file (slightly longer text) seems pretty
weird (no hyphens shown):

Overfull \hbox (0.82622pt too wide) in paragraph at lines 13--14
\EU1/lmr/m/n/10 prodajalna ne moralizirajo. Moja
[1]
Underfull \hbox (badness 10000) in paragraph at lines 17--17
[] \EU1/cmr/m/n/10 lokomotiva čuhapuha
[2] (./latex-slo.aux)

I also don't understand why there is "cmr" in the last line. (from
\showhyphens).


Thanks a lot,
    Mojca


More information about the XeTeX mailing list