The lipsum package

Inserts paragraphs of the dummy text "Lorem ipsum" with \lipsum, for testing a layout before the real text exists.

Loading the package

\usepackage{lipsum}

The package holds 150 paragraphs of pseudo-Latin text. \lipsum without an argument prints paragraphs 1 to 7, about one page. The first optional argument selects paragraphs, the second one sentences within them.

Main commands

\lipsumParagraphs 1 to 7.
\lipsum[3]Paragraph 3 only.
\lipsum[2-4]Paragraphs 2 to 4.
\lipsum[1][1-3]The first three sentences of paragraph 1.
\lipsum*[1]Starred form: no paragraph break after the text, so your own text can continue in the same paragraph.
\usepackage[nopar]{lipsum}Swaps the two forms: \lipsum ends without a paragraph break and \lipsum* with one.

Complete example

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\section{A full paragraph}
\lipsum[1]

\section{Two sentences}
\lipsum[2][1-2]

\section{Text that continues}
\lipsum*[3][1] This sentence belongs to the same paragraph.
\end{document}
Result
The compiled example

Open in the editor

Compiled with pdfLaTeX from TeX Live 2023.

Pitfalls

Related pages