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.

On the next-to-last line of a paragraph, I have some hyphenation and on the last line, I only have the end of the word.

blablabla cou-
cou.
New paragraph

I thought the command \finalhyphendemerits could resolve this problem, but it doesn't seems to…

Any idea ? I’m using memoir class and XeLaTeX

share|improve this question
    
What value are you setting \finalhyphendemerits to? –  egreg Jul 5 '12 at 23:32
    
\finalhyphendemerits=10000 –  Calixte Jul 6 '12 at 6:12
5  
That's comparable to \penalty 100 when talking of line or page breaks, so it's not high enough; try 50000000. –  egreg Jul 6 '12 at 6:26

1 Answer 1

The value of \finalhyphendemerits should by much higher. Here's an example

\documentclass{article}
\usepackage{kantlipsum}
\textwidth=18pc
\begin{document}
\hyphenpenalty=-5000
\finalhyphendemerits=50000000

\kant[2]

\end{document}

The setting of \hyphenpenalty is just to invite TeX to hyphenate more frequently. Notice that the last line doesn't have a hyphen.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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