logo

How to Use Lorem Ipsum in Text 📂Writing

How to Use Lorem Ipsum in Text

Code

Lorem Ipsum or Lipsum is a placeholder made of meaningless strings to focus on the document’s design. In TeX\TeX, it can be used by utilizing the lipsum package.

\lipsum 1

The command \lipsum can be handled as if it were a two-dimensional array.

  • \lipsum[x]: Outputs the xx-th paragraph.
  • \lipsum[x][y]: Outputs the xx-th paragraph’s yy-th sentence.
  • \lipsum[x][y-z]: Outputs from the yy-th to the zz-th sentence in the xx-th paragraph.
\documentclass{article}
\usepackage{lipsum}

\begin{document}
  \paragraph{lipsum[1]}
  \lipsum[1]
  \paragraph{lipsum[2]}
  \lipsum[2]
  \paragraph{lipsum[1][2]}
  \lipsum[1][2]
  \paragraph{lipsum[1][1-3]}
  \lipsum[1][1-3]
\end{document}

alt text