About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-12-13: Ebook sale (12th December 2024 – 1st January 2025): cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.


5 Dummy Text

Sometimes a problem may only occur at a certain place or after a certain point, in which case you may need to create some dummy text to pad out your example. If so, the lipsum package is a useful tool. This provides the command \lipsum which has an optional argument that specifies the paragraph or the range of paragraphs to typeset.

For example, suppose you are using the book class and you don't understand why the page number appears on the bottom of the first page of the chapter and at the top of the second page. Then you could illustrate this as follows:

\documentclass{book}

\usepackage{lipsum}

\begin{document}
\chapter{Sample}

\lipsum[1-4]
\end{document}
This will produce enough text to generate two pages.

There is another dummy text package called blindtext that provides the commands \blindtext (for short blocks of text) and \Blindtext (for longer blocks of text). For example:

\documentclass{book}

\usepackage{blindtext}

\begin{document}
\chapter{Sample}

\Blindtext
\end{document}
The blindtext package also provides other commands to provide a random document, dummy lists etc. See the blindtext documentation for further details.

There are other dummy text generators listed on CTAN Topic dummy-gen.

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs