Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
LaTeX Beginner's Guide - Second Edition

You're reading from  LaTeX Beginner's Guide - Second Edition

Product type Book
Published in Oct 2021
Publisher Packt
ISBN-13 9781801078658
Pages 354 pages
Edition 2nd Edition
Languages
Author (1):
Stefan Kottwitz Stefan Kottwitz
Profile icon Stefan Kottwitz

Table of Contents (16) Chapters

Preface Chapter 1: Getting Started with LaTeX Chapter 2: Formatting Text and Creating Macros Chapter 3: Designing Pages Chapter 4: Creating Lists Chapter 5: Including Images Chapter 6: Creating Tables Chapter 7: Using Cross-References Chapter 8: Listing Contents and References Chapter 9: Writing Math Formulas Chapter 10: Using Fonts Chapter 11: Developing Large Documents Chapter 12: Enhancing Your Documents Further Chapter 13: Troubleshooting Chapter 14: Using Online Resources Other Books You May Enjoy

Enlarging a page

There may be occasions where we want to put a little more text onto a page, even if the text will be squeezed a bit or the text height increases. There's a command that will help us out: \enlargethispage.

We shall modify our example a bit. This time, we will try to avoid a nearly empty page by squeezing the text on the preceding page:

  1. Remove the \newpage command from our example and switch to 11pt base font. This time, use less filler text in the subsection:
    \documentclass[a4paper,11pt]{book}
    \usepackage[english]{babel}
    \usepackage{blindtext}
    \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm,
    bottom=3cm, bindingoffset=1cm]{geometry}
    \begin{document}
    \chapter{Exploring the page layout}
    In this chapter we will study the layout of pages.
    \section{Some filler text}
    \blindtext
    \section{A lot more filler text}
    More dummy text will follow.
    \subsection{Plenty of filler text}
    \blindtext[3]
    \end{document}
  2. Compile, and the result will consist of two pages...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}