0

Can I force a word to jump to the next line ?

This is my code; I use special hyphenation rules for albanian :

\documentclass{article}
\usepackage[paperwidth=140mm,paperheight=210mm,top=25mm,bottom=20mm,left=20mm,right=20mm,heightrounded]{geometry}
\usepackage{polyglossia}
\setmainlanguage{albanian}

\hyphenation{ko-sta-n-di-no-po-jës} %<- for this example

\begin{document}

\textbf{{\large Burimet kryesore për historinë e rënies së Kostandinopojës}}

\end{document}

and the result is this : enter image description here

I would like the word Kostandinopojës to jump to the next line. \mbox{Kostandinopojës} didnt do the trick

  • 3
    By "\mbox{Kostandinopojës} didn't do the trick" you mean that it stopped hyphenation, but didn't put the word on the line below it? – Werner Nov 9 '17 at 19:30
  • Yes, the word simply continued beyond the margins, quite ugly. Maybe there is a solution in that direction. – alfred Nov 9 '17 at 19:31
  • 1
    You need to add also (beside using a box) some more stretch to the wordspace, e.g. with \sloppy or not so drastic with \emergencystretch 1ex. – Ulrike Fischer Nov 9 '17 at 19:32
  • 1
    @alfred: You can also issue \linebreak just before that word... – Werner Nov 9 '17 at 19:33
  • in connection with @UlrikeFischer's suggestion regarding \sloppy, using instead the environment sloppypar around that paragraph would restrict the effect to just the one paragraph. – barbara beeton Nov 9 '17 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.