Page LayoutOverflow in some circumstances

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
kalmer
Posts: 3
Joined: Sat Apr 02, 2022 9:58 pm

Overflow in some circumstances

Post by kalmer »

Code: Select all

\documentclass{book}

\begin{document}
	asdf... Vesi ja 2-hüdroksü-1,2,3-heksaantrihape ehk 2-hüdroksü-1,2,3-propaantrikarboksüülhape
	
	Ma tahtsin teha natuke valimislubadusi, aga need ei läinud läbi ja siis tuli teha seaduseelnõusid ja vaesed inimesed ei saanud süüa muud kui sissetulekut ja siis oli vaja ravimeid ja kaja kallas organiseeris neid neile.
\end{document}
Please see that the text is not wrapped and flows over the edge of the page.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

Overflow in some circumstances

Post by MjK »

What do you expect (La)TeX to do in this case? If you try to park a bus on a car parking lot, it will always cause problems.

I would recommend:
  1. Declare the used language using package babel.
  2. Add package microtype to allow some extra freedom of paragraph break.
  3. Add some manual hyphenation points using \-, if absolutely needed.
There are more possibilities like \emergencystretch or sloppypar, but I would not recommend to use it in such a case, because terms like 2-hüdroksü-1,2,3-propaantrikarboksüülhape are very, very special and manual hyphenation (or breaking) is almost the only thing that has a chance to avoid very ugly or semantically problematic hyphenation.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
Post Reply