Alternative to “Lorem Ipsum”

I have found, and started using the package \kantlipsum, which provides blindtext in a Kantian style. It is in English, about philosophy, and the paragraphs are rather long, which suits my needs just fine. A nice change from the same old\lipsum.

You use it the same way you would use the regular \lipsum-package:

\documentclass{article}
\usepackage{kantlipsum}
\begin{document}
\kant         % Produces seven paragraphs of blindtext
\kant[5]      % The fifth paragraph of the blindtext
\kant[23-34]  % produces paragraph 23 to 34
\end{document}  

It was produced by the Kant generator for Python by Mark Pilgrim, found in the book Dive into Python.

Here it is on CTAN. The documentation is here

Example text (first paragraph):

As any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding. The paralogisms of practical reason are what first give rise to the architectonic of practical reason. As will easily be shown in the next section, reason would thereby be made to contradict, in view of these considerations, the Ideal of practical reason, yet the manifold depends on the phenomena. Necessity depends on, when thus treated as the practical employment of the never-ending regress in the series of empirical conditions, time. Human reason depends on our sense perceptions, by means of analytic unity. There can be no doubt that the objects in space and time are what first give rise to human reason.


One of the problems I had found with lipsum was that \lipsum provides formatting for its paragraphs (\pars, etc.). For a number of applications where you want to test a macro that manipulates plain text, it would be nice to be able to get lipsum text without the formatting.

So I contacted the author, and he was gracious enough to provide me with the following code (\singlelipsum{}), which provides just the text of a single lipsum paragraph, without any paragraph formatting.

\usepackage{lipsum}
\makeatletter
\newcommand\singlelipsum[1]{%
  \begingroup\let\lips@par\relax\csname lipsum@\@roman{#1}\endcsname
\endgroup }
\makeatother

Perhaps this would satisy your particular need, which was unstated in your question.


As noted in the comments to this answer, there is a \lipsum* macro (or alternately a [nopar] package option) which will suppress the terminating \par on lipsum paragraph outputs. HOWEVER, \lipsum* and \singlelipsum are not identical. Here is an MWE which shows it:

\documentclass{article}
\usepackage{lipsum}
\usepackage{censor}
\makeatletter
\long\def\blackout#1{%
  \def~{-}%
  \protected@edef\save@arg{#1}%
  \expandafter\censor@Block\save@arg\stringend\let~\sv@tilde}
\newcommand\singlelipsum[1]{%
  \begingroup\let\lips@par\relax\csname lipsum@\@roman{#1}\endcsname
\endgroup }
\makeatother
\begin{document}
\blackout{\singlelipsum{4}}
%\blackout{\lipsum*[4]}
\end{document}

As it is given, it compiles. But if you uncomment the second to last line, which is nominally similar to the third to last line, it breaks the code.


I find it very dull to keep seeing lipsum, also being (fake) latin it hyphenates really badly unless you switch hyphenation patterns, which can cause problems. I usually just add a few simple macros to generate text as required.

Some examples: here or here (where that last one injects a roman numeral counter so that the text and line breaking is less regular). Using such macros it is easy to tailor the text length to exactly what is needed (for example a line break happening at exactly the right place to show some effect, between paragraphs or on the last or first line to demonstrate controlling widows/orphans etc.