Page Layoutgeometry | Huge Font exceeds Margins

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
arobase
Posts: 33
Joined: Sat Apr 14, 2012 7:46 pm

geometry | Huge Font exceeds Margins

Post by arobase »

'ABRA CADA BRA' below exceeds the right margin. Is there a better way?

Code: Select all

\documentclass{memoir}
\usepackage{lmodern}
\usepackage[margin=2in]{geometry}
\usepackage[english]{babel}

\begin{document}
\thispagestyle{empty}

{
\fontsize{100pt}{100pt}\selectfont 

ABRA CADA BRA
}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

geometry | Huge Font exceeds Margins

Post by Stefan Kottwitz »

It seems like you constructed an example that must fail. You could
  • hyphenate words by \hyphenation
  • adjust the font size
  • adjust the margins
  • insert \allowbreak where a line break should be allowed
Stefan
LaTeX.org admin
Post Reply