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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
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