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
\lipsum | Paragraphs 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}Compiled with pdfLaTeX from TeX Live 2023.
Pitfalls
- Inside an optional argument, such as
\twocolumn[...]or\item[...], the closing bracket of\lipsum[1]ends the outer argument and the run stops with Argument of \align has an extra }. Write{\lipsum[1]}there. - The text is Latin. For dummy text in the language of the document, use
blindtext.
Related pages
- Package
blindtext - How-to Create a minimal document in LaTeX
- How-to Two-column text in LaTeX
- How-to Wrap text around an image in LaTeX