Lorem ipsum in LaTeX
To get lorem ipsum in LaTeX, load the lipsum package with \usepackage{lipsum} and write \lipsum where you want the text. On its own, \lipsum typesets paragraphs 1 to 7. Add a range in square brackets for other paragraphs, such as \lipsum[1-3].
Lorem ipsum generatorUpdated 3 min read
A minimal example
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1-3]
\end{document}lipsum is included in TeX Live and MiKTeX, the two main TeX distributions, so you rarely need to install it yourself.
Choose paragraphs and sentences
The package holds 150 paragraphs of lorem ipsum. Its documentation gives this syntax:
\lipsumtypesets the default range, paragraphs 1 to 7.\lipsum[23]typesets paragraph 23 only.\lipsum[4-57]typesets paragraphs 4 to 57.\lipsum[3-9][4-8]takes paragraphs 3 to 9, splits them into sentences and typesets sentences 4 to 8. Sentence 1 is the first sentence of paragraph 3.\lipsum*is the starred version. It puts a different set of separators around the paragraphs or sentences.
To change the default range for the whole document, use \SetLipsumDefault{1-3} or the default-range option.
Other dummy texts in lipsum
lipsum ships with more than one text. Load another with the text option, for example \setlipsum{text=cicero}. The package documentation lists:
lipsum: the standard lorem ipsum (the default).cicero: the Cicero passage that lorem ipsum was made from, in Latin.lipsum-cs: dummy text in Czech.
Loading a new text clears the previous one and switches the language to match.
Store the text in a macro
\unpacklipsum takes the same ranges as \lipsum, but saves the text in the \lipsumexp macro instead of typesetting it. That's useful when you need the text as an argument, for example inside a box or a table cell. Unlike \lipsum, it doesn't switch the language.
Hyphenation and language
\lipsum switches the active language to the dummy text's language while it typesets, so the right hyphenation patterns apply. If you load babel, include latin in its languages to get Latin hyphenation, for example \usepackage[latin, english]{babel}, the setup the package's own documentation uses.
Whole test documents with blindtext
The blindtext package goes further. It gives you \blindtext and \Blindtext for blind text, and \blinddocument and \Blinddocument for an entire random document with sections, lists and mathematics. It supports English, German and Latin. Its Latin option is a short lorem ipsum; CTAN points to lipsum for a fuller text.
Use blindtext when you're testing a new class or template and want to see headings, lists and maths together. Use lipsum when you only need body paragraphs.
Lorem ipsum outside LaTeX
For text you'll paste into another program, such as a slide, a web page or a design file, make it here. You can set an exact number of words or list items, and copy it as plain text or HTML.
Lorem ipsum generator
Open the full toolIf you paste this text into a .tex file instead of using lipsum, it works fine as plain paragraphs: LaTeX treats a blank line as a paragraph break. Leave HTML off, since LaTeX would print the tags.
Remove it before you submit
Search your .tex files for \lipsum, \blindtext and "lorem" before you submit a thesis or paper, and remove \usepackage{lipsum} if nothing uses it any more.
Sources
- lipsum – Easy access to the Lorem Ipsum and other dummy texts, CTAN, checked 2026-11-02
- lipsum package source and documentation (lipsum.dtx), GitHub, checked 2026-11-02
- blindtext – Producing blind text for testing, CTAN, checked 2026-11-02
Questions
What is the use of lipsum in LaTeX?
It typesets lorem ipsum dummy text, so you can test a class, a page layout or a font before the real text exists. It holds 150 paragraphs.
How do I get only a few sentences with lipsum?
Add a second optional argument: \lipsum[1][1-3] gives sentences 1 to 3 of paragraph 1.
Do I need to install lipsum?
Usually not. lipsum is part of TeX Live and MiKTeX, so \usepackage{lipsum} works on most installs without any extra step.
Is lorem ipsum still used?
Yes. LaTeX packages, Word's =lorem() and code editors such as VS Code with Emmet all still generate it.