Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Adequate hyphenation of words already containing a hyphen

As a mathematician, I often have to write documents with long words containing embedded mathematical symbols, e.g. λ-representation, 𝑅-homomorphism, κ-accessible, etc. Neither XeTeX nor LuaTeX is able to correctly hyphenate those words, regardless of whether I'm using unicode-math or mathspec or directly inputting Unicode characters. Is there a package or an option I can use to automatically hyphenate these words, without having to insert discretionary hyphens by hand everywhere?

\documentclass[12pt,a4paper]{article}

\usepackage{unicode-math}

\setmainfont{TeX Gyre Termes}
\setmathfont{xits-math.otf}

\begin{document}
(ii). Clearly, the constant functions and projection functions admit λ-representations, and the composition of λ-representable functions is certainly λ-representable. The conclusion follows from (i).

(ii). Clearly, the constant functions and projection functions admit $\lambda$-representations, and the composition of $\lambda$-representable functions is certainly $\lambda$-representable. The conclusion follows from (i).
\end{document}
share|improve this question

marked as duplicate by percusse, lockstep, Marco Daniel, Stefan Kottwitz Apr 28 '12 at 10:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4  
It's not so much the exotic characters as the - TeX doesn't hyphenate explicitly hyphenated words. have a look at \hyph from hyphenat tex.stackexchange.com/questions/2706/… –  David Carlisle Apr 27 '12 at 15:55

1 Answer 1

up vote 4 down vote accepted

I guess it’s a general “problem” with words containing a dash. TeX prevents to hyphenate words like this. With babel one can use "= to insert a dash not disturbing other hyphenation points. As David says you may have a look at Adequate hyphenation of words already containing a hyphen.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.