14

Are there any alternative filler text packages besides lorem ipsum and blindtext? There seem to be a lot for the web, but I can't find any LaTeX packages and searching “alternatives to lorem ipsum” here does not return an answer.

Edit: An English language package would be helpful. So would a Spanish language package. "ptext" is Farsi/Persian, but my computer is not right to left enabled. I just wondered what alternatives might be out there in the TEx world considering the wealth of html alternatives.

4
  • 6
    There's kantlipsum; can you be more specific about your need?
    – egreg
    Sep 2, 2013 at 11:17
  • 8
    A search on CTAN.org reveal lipsum, ptext, kantlipsum, blindtext and plipsum. What is it you’re missing from these packages? Sep 2, 2013 at 11:19
  • 1
    A good reference are also the ctan topic pages: ctan.org/topic/dummy-gen
    – Hotschke
    Jun 16, 2014 at 9:13
  • I would be interested a package providing short text samples. \lipsum[1] is sometimes to much.
    – buhtz
    Sep 9, 2017 at 10:34

4 Answers 4

7

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.

2
  • 1
    This is available also with kantlipsum: \kantdef{\foo}{1} stores in \foo just the text of paragraph 1. But also \lipsum*[1] will not have paragraph ending.
    – egreg
    Sep 2, 2013 at 11:37
  • 1
    The lipsum package provides a nopar option as well as a starred version of \lipsum (which still doesn’t make it expandable). Sep 2, 2013 at 11:38
11

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.

2
  • 1
    Welcome to TeX.SX! Thisalternative works well (+1). It's alayws helpful to see (minimal) compilable code (i changed your code slightly) -> So everyone could copy and paste your code and test it. Other tips you can find here: How do I write a good answer? ... always good to know. Have fun with LaTeX.
    – Bobyandbob
    Nov 8, 2017 at 16:04
  • Nice! Didn't think about that, i usually just stuff code into the projects i am working on anyways, but I guess it is a good point to showcase the package by itself.
    – Ola S
    Nov 8, 2017 at 16:56
5

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.

3

For Polish speakers, I highly recommend bredzenie designed by Marcin Wołiński during this year Tug@BachoTeX meeting.

An abstract from the doc :

Graphic designers often need some semantically neutral material to showcase a document layout. This problem is usually solved by using the classic pseudo-Latin text Lorem ipsum dolor sit amet…. This text has been made available by Patrick Happel in the form of the LATEX package lipsum.sty.

However, languages differ in word lengths, characteristic frequency of letters and their n-grams, and so on. This means that a page of text in Latin will look different than a page of Polish. For the development of Polish document classes I have developed the package bredzenie, which provides access to several paragraphs of pseudo-Polish.

The text has been generated with Hidden Markov Models and, alternatively, Re- current Neural Networks trained on a corpus of Polish. Although the text makes absolutely no sense, it exhibits correct statistical characteristics, it “looks” Polish (in particular Polish hyphenation patterns are applicable).

Both useful and funny. Polish speakers, read its samples ! Here is a MWE for LuaLaTeX or XeLaTeX:

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{polish}
\usepackage{bredzenie}
\begin{document}
\bredzenie{105-108}
\end{document}

And for pdflatex :

\documentclass{article}
\usepackage[polish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{bredzenie}
\begin{document}
\bredzenie{105-108}
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .