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.

When I use \hfill and in the previous line the last word is hyphenated, the \hfill doesn't work the same way as usual:

\documentclass[a4paper, 12pt]{book}
\begin{document}

Spellings attempt to transcribe the sounds of the language into 
alphabetic letters, but phonetic spellings are exceptions   \hfill go to library

AA Spellings attempt to transcribe the sounds of the language into 
alphabetic letters, but phonetic spellings  \hfill go to library

\end{document}

What should I write to get \hfill work like the first \hfill in the example?

share|improve this question
2  
Welcome to TeX.SX! Your problem has nothing to do with hyphenation. Is tex.stackexchange.com/questions/91548/… helping? –  egreg Dec 29 '13 at 17:34
    
alternatively to @egreg's link, you can try to reduce the occurrences of hyphenation by using the microtype package. In your mwe it works. –  ArTourter Dec 29 '13 at 17:42
    
Thank you both for your answers. I write mostly in greek, so I use the babel package and the microtype package does't reduce the occurrences of hyphenation, I don't know why. The link you gave me is not helping with hypernation. I found today this tex.stackexchange.com/questions/9325/… and @Jørgen Tesman describes the same problem with hypernation in his answer. –  Bozelou M. Dec 30 '13 at 18:47
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.