Blind Text
Blind Text
Blind Text
Abstract With this package you can create dummy text. Use \blindtext to get some text and \Blindtext to get a long text. With \blinddocument (or \Blinddocument) you get complete dummy documents. Details can be found at http://tex.lickert.net/packages/blindtext/ index_en.html. This File describes version V2.0. Mit diesem Paket kann man lange Texte erzeugen, ohne lange Texte einzugeben. Sinn ist die Erzeugung langer Beispieltexte, ohne den Quelltext lang zu machen. Details unter http: // tex. lickert. net/ packages/ blindtext/ . Dieses Dokument beschreibt Version V2.0.
Contents
1 Overview/Ubersicht 1.1 Create Documents . . . . . . 1.2 Package options . . . . . . . . 1.2.1 Math Option . . . . . 1.2.2 Toc Option . . . . . . 1.2.3 Random Option . . . 1.2.4 Pangram Option . . . 1.2.5 Bible Option . . . . . 1.3 Get Some Text . . . . . . . . 1.4 Get Some Lists . . . . . . . . 1.5 Get Some Math in the Text . 1.6 Get Additional Markup in the . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 4 4 4 4 5 5 5 5 6 6
http://tex.lickert.net/packages/blindtext/
2 FAQ/More features 2.1 Add Tabulars and Tables 2.2 Add Pictures and Figures 2.3 Key-Value-Options . . . . 2.4 More Languages . . . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
6 6 7 7 7 8 8 9 9 12 12 12 13 13 15 15 15 16 16 16 16 16 17 17 18 21 24 27 29 32 35 38
A Implementation A.1 Counter and Supporting Macros A.2 Creating Text . . . . . . . . . . . A.3 Lists . . . . . . . . . . . . . . . . A.4 Blind Text with Markup . . . . . A.5 Blind Text with Math . . . . . . A.5.1 Inline Math . . . . . . . . A.5.2 Big Formulas . . . . . . A.6 Create Complete Documents . . B Option Processing B.1 Bible Option . . B.2 Bible Option . . B.3 Random Option . B.4 Pangram Option B.5 Math Option . . B.6 Toc Option . . . C Closing Actions D The D.1 D.2 D.3 D.4 D.5 D.6 D.7 D.8
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
Texts Default Without Language . . . . . . . . . . . English Texts (babel: english) . . . . . . . . . . German Texts (babel: german) . . . . . . . . . German New Orthography (babel: ngerman) American Texts (English) (babel: american) . . Catalan Texts (babel: catalan) . . . . . . . . . Latin Texts (babel: latin) . . . . . . . . . . . . FrenchTexts (babel: french) . . . . . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
E Thanks
1
1.1
\blinddocument \Blinddocument
Overview/Ubersicht
Create Documents
\blinddocument create a document with sections, subsections. . . and lists (itemize, enumerate and description). \Blinddocument create a document with bigger sections, subsections. . . and longer lists.
Command/Makro \blinddocument \Blinddocument \blindtext \Blindtext \blindlist{env} \blindlistoptional {env} \blindlistlist [level]{env} \Blindlist{env} \Blindlistoptional {env} \blinditemize \blindenumerate \blinddescription [x]
Englisch create a document create a big document create text create more text create a list create a list with \item[] create cascaded lists create a big list create a big list with \item[] create an itemize list create an enumerate list create a description list Repetition
German erzeugt ein Dokument erzeugt ein groes Dokument erzeugt Text erzeugt mehr Text erzeugt eine Liste erzeugt eine Liste mit \item[] erzeugt geschachtelte Listen erzeugt eine groe Liste erzeugt eine groe Liste mit \item[] erzeugt eine itemizeListe erzeugt eine enumerateListe erzeugt eine descriptionListe Wiederholungsfaktor
Parameter(s) [n ] [ x ][ n ]
Global Redenitions of Default \setcounter{ Counter }{ n } Counter Parameter Remark blindtext {n } n repetitions per paragraph Blindtext {n } n paragraph for \Blindtext blindlist {n } n items in list blindlistlevel { n } depth of nested lists (max. 4)
1.4 A.3
* The default for \blindtext values depends on selected option (random : 17 sentences, pangram : 5 pangrams, default: 1 text).
Table 2: Modiying Repetion Factors The smallest document to check the look of a class would be:
\documentclass{<class>} \usepackage{blindtext} \begin{document} \blinddocument \end{document}
If you want to have a table of contents you have two ways: 1. use the package option toc 2. Just add the \tableofcontents-command in your testdocument.
1.2
1.2.1
Package options
Math Option
The math -option activates math formula for \blindtext. More see in section 1.5 on page 6 and B.5 on page 16. 1.2.2 Toc Option
The random -option changes the default blind text to a sequence of predened sentences. The next paragraph starts with the next phrase from the previous paragraph. You may redene the number of phrases per paragraph, details see table 2. If the language does not support this option, the default text is used.
1.2.4
Pangram Option
The pangram -option changes the default blind text to a sequence of pangrams. A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once.1 You may redene the number of phrases per paragraph, details see table 2 on the previous page. If the language does not support this option, the default text is used. 1.2.5 Bible Option
The bible -option changes the default blind text to texts from bible verse 3.14 (Genesis, Exodus, Leviticus, Numeri and Deuteronomium)
1.3
\blindtext
\Blindtext
\parstart \parend
\blindtext[ x ] create a text. The optional parameter dene a repetition. Default for the repetition is one and can be modied with \setcounter{ blindtext } { 1 }. See also table 2 on the preceding page. \Blindtext[ x ][ y ] create x paragraphs with the text of \blindtext. The rst optional parameter denes a repetition of the paragraphs. Default for the repetition is ve and can be modied with \setcounter{ Blindtext }{ 5 }. The second optional parameter is given to \blindtext. See also table 2 on the previous page. It is possible to add a start and end sequence for each paragraph. The two macros \parstart and \parend dene a starting and ending sequence for each paragraph in \Blindtext. The paragraph start is redened for each language change: First paragraphs get an empty start, the following paragraphs get dierent starting texts. Advantage: Each paragraph in a paragraph sequence looks dierent. This feature must be supported by the language2
1.4
\blindlist
\blindlistlist
\Blindlist
\blindlistoptional
\blindlist{ env }[ x ] create a list, the type is dened by the obligatory parameter. The optional parameter denes a repetition. Default for the repetition is ve and can be modied with \setcounter{ blindlist }{ x }. \blindlistlist[ level ]{ env }[ x ] creates cascaded lists up to level level, the type is dened by the second obligatory parameter. The optional parameter denes a repetition. Default is the same like in \blindlist. \Blindlist{ env }[ x ] create a list with long texts. The optional parameter denes a repetition. Default for the repetition is ve and can be modied with \setcounter{ blindlist }{ x }. \blindlistoptional{ env }[ x ] create a list with \item[ ]. The list is
1 http://en.wikipedia.org/wiki/Pangram 2
dened by the obligatory parameter. The optional parameter denes a repetition. Default for the repetition is ve and can be modied with \setcounter{ blindlist } { x }. \Blindlistoptional create a list like \blindlistoptional with long texts. The commands \blinditemize, \blindenumerate and \blinddescription are abbreviations for \blindlist{ itemize }, \blindlist{ enumerate } and \blindlist{ description }. The commands \Blinditemize, \Blindenumerate and \Blinddescription are abbreviations for \Blindlist{ itemize }, \Blindlist{ enumerate } and \Blindlist{ description }.
Option math
1.5
\blindmathpaper
\blindmathtrue \blindmathfalse
If you need a dummy text with math formula, you can add some math with the package option math. \blindmathpaper built some text with formulas in between. This macro is used in \blinddocument if \blindmathtrue is set. If you need dummy text with and without math, you can (de)activate the math option with the following commands: With \blindmathtrue you set a ag, so the following blind text contains inline math. With \blindmathfalse you reset the ag for inline math inside the blind text.
1.6
\blindmarkup
If you want to test some markup in your dummy text you can redene \blindmarkup. \blindmarkup is a macro with one parameter and it set some parts in your markup. Example:
\renewcommand{\blindmarkup}[1]{\emph{#1}}
2
2.1
FAQ/More features
Add Tabulars and Tables
Is it possible to add tabulars to blindtext? There are no plans to integrate tabulars in blindtext. Tabulars in text are no good idea, they should be integrated to tables-environment (tabular, may be a short description, caption). Tabulars need there own layout, I dont think you may dene a table for each use in blindtext. You may dene your own tabular/table and surround it with \blindtext. Example:
2.2
Is it possible to add pictures to blindtext? There are no plans to integrate pictures in blindtext. I dont think you may dene a picture for each use in blindtext.
2.3
Key-Value-Options
You may change some defaults by redening commands3 or numbers4 . Would it be possible to dene them as key-value options? In theory yes, but I dont want to add an additional dependency to other packages.
2.4
More Languages
The language xx is not supported - can you add it? If you want to have blindtext in another language, please provide me some texts. I need: The language name (used in babel) Some text for the paragraphs Some (at least three) sentences for paragraph start. The numbers as used in rst, second. . . Some sentences to be used with option random. You may tell a little story and the last sentence can be continued with the rst sentence. Some pangrams (See http://en.wikipedia.org/wiki/List_of_pangrams. The following texts: item: item in a list heading: Heading on level lists: Lists listsEx: Example for list blindmath: Some blind text with math formulas
3 macro 4 blindtext,
A
1 2
Implementation
\providecommand{\grqq}{} \providecommand{\glqq}{}
\blind@checklanguage
It is possible, that you use blindtext.sty with undened languages. This macro checks if blindtext supports the language. If it is not available, an error is reported and the default lorem lipsum used. If you dont load babel, the message may be confusing: I get the warning welsh not dened.5
\newcommand{\blind@checklanguage}{% \@ifundefined{blindtext@\languagename}{% 9 \PackageWarning{blindtext}{\languagename\space not 10 defined, using English instead.\MessageBreak 11 }% 12 }{}% 13 }
7 8
A.1
First we need some counters for the number of repetitions of the text and the paragraphs.
14 15
\newcounter{blindtext}\setcounter{blindtext}{1} \newcounter{Blindtext}\setcounter{Blindtext}{5}
\newcounter{blind@countparstart}
\blindtext
\blindtext[x] writes a sentence x times. The default is stored in the counter blindtext. This value can be changed with \setcounter{blindtext}{1}.
\newcount\blind@countxx \newcommand{\blindtext}[1][\value{blindtext}]{% 19 \blind@checklanguage 20 \setcounter{blind@randommax}{#1}%for option random 21 \setcounter{blind@pangrammax}{#1}%for option pangram 22 \blind@countxx=1 % 23 \loop 24 \blindtext@text\ 25 \ifnum\blind@countxx<#1\advance\blind@countxx by 1 % 26 \repeat 27 }
17 18
5 L A T
EX loads babel on its own to load hyphenations, Welsch is the last language in alphabet.
A.2
\Blindtext
Creating Text
\Blindtext[x][y] execute x\blindtext[y]. Each \blindtext[y] built a paragraph. The default is stored in the counter Blindtext. This value can be changed with \setcounter{Blindtext}{5}. The counter blindtext@numBlindtext stores the rst optional parameter to be used in \blindtext@Blindtext.
\newcount\blindtext@numBlindtext \newcommand{\Blindtext}[1][\value{Blindtext}]{% 30 \blind@checklanguage 31 \blindtext@numBlindtext=#1\relax 32 \blind@Blindtext 33 }
28 29
\blind@Blindtext
This macro continue \Blindtext with a second optional parameter. Each paragraph starts and end with a text, which can be dened with \starttext or \endtext.
\newcount\blind@countyy \newcommand{\blind@Blindtext}[1][\value{blindtext}]{% 36 \blind@countyy=1 % 37 \loop 38 {\blindtext@parstart\blindtext[{#1}]\blindtext@parend\par}% 39 \ifnum\blind@countyy<\blindtext@numBlindtext\advance\blind@countyy by 1 % 40 \repeat 41 }
34 35
\parstart \parend
\newcommand{\blindtext@parstart}{} % Text at start of paragraph \newcommand{\blindtext@parend}{} % Text at end of paragraph 44 \newcommand{\parstart}[1]{\renewcommand{\blindtext@parstart}{#1}} 45 \newcommand{\parend}[1]{\renewcommand{\blindtext@parend}{#1}}
42 43
A.3
Lists
Here I dene some ags to decide in the lists if we have to create big items and if we need the optional parameter at \item. These ags are reset in \blind@list. The counter blindlist dene the default number of items in a list. The counter blindlistitem is needed by \blindtext@count to write a text like rst, second. . . .
\newif\ifblind@long\blind@longfalse \newif\ifblind@optional\blind@optionalfalse 48 \newcounter{blindlist} 49 \newcounter{blindlistlevel}% Up tu X level 50 \newcounter{blindlist@level}% internal counter 51 \newcount\blind@listitem
46 47
\blindlist \blind@listtype
\blindlist{env}[x] writes an env-list with x items. The default is stored in the counter blindlist. This value can be changed with \setcounter{blindlist}{1}. The type of list is stored in \blind@listtype.
\blind@list
This macro continue the macro \blindlist and with the optional parameter. After the printout, we reset the ags and the counter for the list text.
\newcommand{\blind@list}[1][5]{% \setcounter{blindlist}{#1}% 61 \stepcounter{blindlist@level}% depth of list 62 \blind@listitem=1 % 63 \begin{\blind@listtype}% 64 \blind@items 65 \end{\blind@listtype}% 66 \blind@longfalse 67 \blind@optionalfalse 68 }
59 60
\blindlistlist
\blindlistlistoptional
\blinditemize \blindenumerate
\newcommand{\blinditemize}{\blindlist{itemize}} \newcommand{\blindenumerate}{\blindlist{enumerate}}
\Blindlist[x] write a list with x items. The default is stored in the counter blindlist. This value can be changed with \setcounter{blindlist}{1}.
\Blindlist \newcommand{\Blindlist}[1]{% \blind@longtrue 84 \blindlist{#1}% 85 }
82 83
10
\Blinditemize \Blindenumerate
\newcommand{\Blinditemize}{\Blindlist{itemize}} \newcommand{\Blindenumerate}{\Blindlist{enumerate}}
\blindlistoptional
Here we start a list with \item[]. So we set the ag for optional parameter and start the normal list.
\newcommand{\blindlistoptional}[1]{% \blind@optionaltrue 90 \blindlist{#1}% 91 }
88 89
\Blindlistoptional
\blinddescription \Blinddescription
\blind@items
Here the \item are written. A local counter is dened and the \item is written. The type of \item is inuenced by the ags.
\newcommand{\blind@items}{% \setcounter{blind@listcount}{1}% 103 \loop 104 \ifblind@optional 105 \ifblind@long 106 \item[\blindtext@countitem] \blindtext@text 107 \else 108 \item[\blindtext@count] \blindtext@item 109 \fi 110 \else % \blind@optionalfalse 111 \ifblind@long 112 \item \blindtext@text 113 \else 114 \item \blindtext@countitem 115 \fi 116 \fi % \ifblind@optional
101 102
11
\repeat }
A.4
\blindmarkup
130
\newcommand{\blindmarkup}[1]{#1}
A.5
A.5.1
\blindtext@endsentence
Finish a sentence with a dot. This macro is redened for blind text with inline math/formulas.
131
\def\blindtext@endsentence{.\xspace}%
\newcount{\blind@mathformula}\blind@mathformula=0%
\newif\ifblindmath
\blindmathtrue
Make the following blind text with inline math. This redene the logical variable \ifblindmath, to keep the ag we have to store and call the old denition.
\let\oldblindmathtrue\blindmathtrue \renewcommand{\blindmathtrue}{ 136 \oldblindmathtrue
134 135
\def\blindtext@endsentence{% \advance\blind@mathformula by 1% \ifcase\blind@mathformula% \or. \(\sin^2(\alpha) + \cos^2(\beta) = 1\)% \or\xspace\(E = mc^2\)% \or. \(\sqrt[n]{a} \cdot \sqrt[n]{b} = \sqrt[n]{ab}\)% \or. \(\frac{\sqrt[n]{a}}{\sqrt[n]{b}} = \sqrt[n]{\frac{a}{b}}\)% \or. \(a\sqrt[n]{b} = \sqrt[n]{a^n b}\)% \or. \(\mathrm{d}\Omega = \sin \vartheta \mathrm{d} \vartheta \mathrm{d}\varphi\)% \else\global\blind@mathformula=0% \fi% .\xspace}%
12
149
}%\blindmathtrue
\blindmathfalse
\def\blindtext@endsentence{.\xspace}% }%\includemath
A.5.2
Big Formulas
\newcount{\blind@Mathformula} \blind@Mathformula=0%
\blindtext@formula
\def\blindtext@formula{% \advance\blind@Mathformula by 1% \ifcase\blind@Mathformula% \[\bar x = \frac{1}{n}\sum_{i=1}^{i=n} x_i = \frac{x_1 + x_2 + \dots{} + x_n}{n}\] \or \[ \int_0^\infty e^{-\alpha x^2} \mathrm{d}x = \frac12\sqrt{\int_{-\infty}^\infty e^{-\alpha x^2}} \mathrm{d}x\int_{-\infty}^\infty e^{-\alpha y^2}\mathrm{d}y = \frac12\sqrt{\frac{\pi}{\alpha}} \] \or \[ \sum_{k=0}^\infty a_0q^k = \lim_{n\to\infty}\sum_{k=0}^n a_0q^k = \lim_{n\to\infty} a_0\frac{1-q^{n+1}}{1-q} = \frac{a_0}{1-q} \] \or \[x_{1,2}=\frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{-p \pm \sqrt{p^2-4q}}{2}\] \or \[ \frac{\partial^2 \Phi}{\partial x^2} + \frac{\partial^2 \Phi}{\partial y^2} + \frac{\partial^2 \Phi}{\partial z^2} = \frac{1}{c^2}\frac{\partial^2\Phi}{\partial t^2} \] \or \[\sqrt[n]{a} \cdot \sqrt[n]{b} = \sqrt[n]{ab}\] \or \[\frac{\sqrt[n]{a}}{\sqrt[n]{b}} = \sqrt[n]{\frac{a}{b}}\] \or \[a\sqrt[n]{b} = \sqrt[n]{a^n b}\] \global\blind@Mathformula=0% \fi% }%
A.6
179 180
13
\blinddocument
\blinddocument adds a document with \chapter, \section. . . , texts and lists (itemize, enumerate, description).
\newcommand{\blinddocument}{% \ifblindtoc\tableofcontents\fi 183 \@ifundefined{chapter}{}{% 184 \chapter{\blindtext@heading 0 (chapter)}% 185 \blindtext 186 }% 187 \section{\blindtext@heading 1 (section)}% 188 \blindtext 189 \subsection{\blindtext@heading 2 (subsection)}% 190 \blindtext 191 \subsubsection{\blindtext@heading 3 (subsubsection)}% 192 \blindtext 193 \paragraph{\blindtext@heading 4 (paragraph)}% 194 \blindtext 195 \section{\blindtext@list}% 196 \subsection{\blindtext@listEx (itemize)}% 197 \blinditemize 198 \subsubsection{\blindtext@listEx (4*itemize)}% 199 \blindlistlist{itemize}[2]% 200 \subsection{\blindtext@listEx (enumerate)}% 201 \blindenumerate 202 \subsubsection{\blindtext@listEx (4*enumerate)}% 203 \blindlistlist{enumerate}[2]% 204 \subsection{\blindtext@listEx (description)}% 205 \blinddescription 206 \subsubsection{\blindtext@listEx (4*description)}% 207 \blindlistlistoptional{description}[2]% 208 }
181 182
\Blinddocument
\blinddocument adds a document with \chapter, \section. . . , texts and lists (itemize, enumerate, description).
\newcommand{\Blinddocument}{% \ifblindtoc\tableofcontents\fi 211 \@ifundefined{chapter}{}{% 212 \chapter{\blindtext@heading 0 (chapter)}% 213 \blindtext 214 }% 215 \section{\blindtext@heading 1 (section)}% 216 \Blindtext 217 \subsection{\blindtext@heading 2 (subsection)}% 218 \Blindtext 219 \subsubsection{\blindtext@heading 3 (subsection)}% 220 \Blindtext 221 \paragraph{\blindtext@heading 4 (paragraph)}% 222 \Blindtext 223 \section{\blindtext@list}% 224 \subsection{\blindtext@listEx (itemize)}%
209 210
14
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
\Blinditemize \subsubsection{\blindtext@listEx (4*itemize)}% \blind@longtrue \blindlistlist{itemize}[2]% \subsection{\blindtext@listEx (enumerate)}% \Blindenumerate \subsubsection{\blindtext@listEx (4*enumerate)}% \blind@longtrue \blindlistlist{enumerate}[2]% \subsection{\blindtext@listEx (description)}% \Blinddescription \subsubsection{\blindtext@listEx (4*description)}% \blind@longtrue \blindlistlistoptional{description}[2]% % \ifblindmath \section{\blindtext@blindmath}% \blindmathpaper% \fi% }
\blindmathpaper
B
B.1 B.2
258 259
Option Processing
Bible Option Bible Option
The option bible change the default blind text to texts from the bible.
\newif\ifblindbible \DeclareOption{bible}{ 260 \blindbibletrue 261 }
15
B.3
262
Random Option
\newif\ifblindrandom \newcounter{blind@randomcount}\setcounter{blind@randomcount}{0}
Dene a counter to dene the number of sentences per paragraph when you use the random option. blind@randommax is redened in \lindtext
264
\newcounter{blind@randommax}
The option random change the default blind text to texts from the random. Changes also the counter blindtext (Default parameter for \lindtext).
\DeclareOption{random}{ \blindrandomtrue 267 }
265 266
B.4
268
Pangram Option
\newif\ifblindpangram \newcounter{blind@pangramcount}\setcounter{blind@pangramcount}{0}
Dene a counter to dene the number of sentences per paragraph when you use the pangram option. blind@pangrammax is redened in \lindtext
270
\newcounter{blind@pangrammax}
The option pangram change the default blind text to texts from the pangram. Changes also the counter blindtext (Default parameter for \lindtext).
271
B.5
274 275
Math Option
B.6
277 278
Toc Option
C
280
Closing Actions
16
D
\blind@addtext
The Texts
This macro adds the texts according to the language denitions. Four language packages are supported: babel polyglossia (see http://tug.ctan.org/tex-archive/macros/xetex/latex/ polyglossia/) german ngerman Parameters: 1. Language 2. The text denitions
281
\newcommand{\blind@addtext}[2]{%
\@ifpackageloaded{babel}{ \expandafter\addto\csname extras#1\endcsname{#2} }{}% \@ifpackageloaded{polyglossia}{ \expandafter\gappto\csname captions#1\endcsname {#2} }{}% \@ifpackageloaded{ngerman}{ \expandafter\g@addto@macro\csname captions#1\endcsname {#2} }{}% \@ifpackageloaded{german}{ \expandafter\g@addto@macro\csname captions#1\endcsname {#2} }{}% }%\blind@addtext
A Polyglossia provides a complete Babel replacement for users of XeL TEX. 285 286 287
D.1
295 296
17
sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis fringilla tristique neque. Sed interdum libero ut metus. Pellentesque placerat. Nam rutrum augue a leo. Morbi sed elit sit amet ante lobortis sollicitudin. Praesent blandit blandit mauris. Praesent lectus tellus, aliquet aliquam, luctus a, egestas a, turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum turpis accumsan semper.%
} \def\blindtext@count{% 311 \ifcase\blind@listitem\or 312 First\or Second%... 313 \else 314 Last% 315 \blind@listitem=0 % 316 \fi 317 \global\advance\blind@listitem by 1 % 318 }% \blindtext@count 319 \def\blindtext@item{itemtext} 320 \def\blindtext@countitem{\blindtext@count\ \blindtext@item} 321 \def\blindtext@heading{Heading on level\xspace} 322 \def\blindtext@list{Lists} 323 \def\blindtext@listEx{Example for list\xspace} 324 \def\blindtext@blindmath{Some blind text with math formulas}
/package
D.2
\def\blindtext@english{}
18
342
Dene dierent paragraph starts for second and later paragraphs. The rst paragraph gets no special start.
\blind@addtext{english}{% \def\blindtext@parstart{% 345 \ifcase\value{blind@countparstart}\or 346 This is the second paragraph.\or 347 And after the second paragraph follows the third paragraph.\or 348 After this fourth paragraph, we start a new paragraph sequence.\or 349 \setcounter{blind@countparstart}{0} 350 \fi 351 \stepcounter{blind@countparstart} 352 }% \blindtext@parstart 353 }
343 344
19
383 384 385 386 387 388 389 390 391 392 393 394
And he shall offer thereof his offering, even an offering made by fire unto the Lord; the fat that covereth the inwards, and all the fat that is upon the inwards,\ldots And the Lord spake unto Moses in the wilderness of Sinai, saying,\ldots Jair the son of Manasseh took all the country of Argob unto the coasts of Geshuri and Maachathi; and called them after his own name, Bashanhavothjair, unto this day.% }% \blindtext@text \def\blindtext@parstart{}%no change for bible option } \fi %\ifbible
20
430 431
D.3
\def\blindtext@german{}
Dene dierent paragraph starts for second and later paragraphs. The rst paragraph gets no special start.
\blind@addtext{german}{% \def\blindtext@parstart{% 456 \ifcase\value{blind@countparstart}\or 457 Das hier ist der zweite Absatz.\or 458 Und nun folgt -- ob man es glaubt oder nicht -- der dritte Absatz.\or 459 Nach diesem vierten Absatz beginnen wir eine neue Z\"ahlung.\or 460 \setcounter{blind@countparstart}{0} 461 \fi 462 \stepcounter{blind@countparstart} 463 }% \blindtext@parstart 464 }
454 455
\blind@addtext{german}{% \def\blindtext@count{%
21
467 468
\ifcase\value{blind@listcount}\or Erster\or Zweiter\or Dritter\or Vierter\or F{\"u}nfter\or 469 Sechster\or Siebter\or Achter\or Neunter\or Zehnter\or 470 Elfter\or Zw{\"o}lfter\or Dreizehnter\or Vierzehnter% 471 \else 472 Noch ein% 473 \fi 474 }% \blindtext@count 475 \def\blindtext@item{Listenpunkt, Stufe~\arabic{blind@levelcount}}% 476 }%\addto\extrasgerman
22
510
\blind@countxx=1 % \loop 512 \ifcase\value{blind@randomcount}% 513 Dies hier ist ein Blindtext zum Testen von 514 Textausgaben\blindtext@endsentence 515 \or Gerne werden Pangramme als Blindtexte 516 verwendet\blindtext@endsentence 517 \or Das griechische Wort Pangramm (oder holoalphabetischer Satz) 518 bezeichnet einen Satz, der alle Buchstaben des Alphabets 519 enth\"alt\blindtext@endsentence 520 \or Wobei man \glqq alle Buchstaben\grqq\ mit und ohne Umlaute z\"ahlen 521 kann\blindtext@endsentence 522 \or Aber das soll uns hier nicht k\"ummern, eigentlich wollen wir doch 523 eine Geschichte erz\"ahlen\blindtext@endsentence 524 \or Aber wozu wollen wir eine Geschichte erz\"ahlen?\xspace 525 \or Ach ja, wir brauchen Text um das Layout dieses Textes zu p\"ufen -526 dazu nimmt man meist einen Blindtext\blindtext@endsentence% 527 \setcounter{blind@randomcount}{-1}% 528 \fi% 529 \refstepcounter{blind@randomcount}% 530 \ifnum\blind@countxx<\value{blind@randommax}\advance\blind@countxx by 1 % 531 \repeat% 532 \setcounter{blind@randommax}{\value{blindtext}}% 533 }% \blindtext@text 534 \def\blindtext@parstart{}%no change for random option 535 } 536 \fi %option random
511
23
\ifnum\blind@countxx<\value{blind@pangrammax}\advance\blind@countxx by 1 % \repeat% \setcounter{blind@pangrammax}{\value{blindtext}}% }% \blindtext@text \def\blindtext@parstart{}%no change for pangram option } \fi %option pangram \@ifpackageloaded{german}{\selectlanguage{german}}{}
D.4
\def\blindtext@ngerman{}
Dene dierent paragraph starts for second and later paragraphs. The rst paragraph gets no special start.
\blind@addtext{ngerman}{% \def\blindtext@parstart{% 590 \ifcase\value{blind@countparstart}\or 591 Das hier ist der zweite Absatz.\or 592 Und nun folgt -- ob man es glaubt oder nicht -- der dritte Absatz.\or 593 Nach diesem vierten Absatz beginnen wir eine neue Z\"ahlung.\or 594 \setcounter{blind@countparstart}{0}
588 589
24
25
26
\or Stanleys Expeditionszug quer durch Afrika wird von jedermann bewundert\blindtext@endsentence% 688 \setcounter{blind@pangramcount}{-1}% 689 \fi% 690 \refstepcounter{blind@pangramcount}% 691 \ifnum\blind@countxx<\value{blind@pangrammax}\advance\blind@countxx by 1 % 692 \repeat% 693 \setcounter{blind@pangrammax}{\value{blindtext}}% 694 }% \blindtext@text 695 \def\blindtext@parstart{}%no change for pangram option 696 } 697 \fi %option pangram
686 687
\@ifpackageloaded{ngerman}{\selectlanguage{ngerman}}{}
D.5
American is a copy of English. This denition is added to allow the usage of Amrican with ba Thanks to Karl Voit for the hint.
\blindtext@american
\def\blindtext@american{}
Dene dierent paragraph starts for second and later paragraphs. The rst paragraph gets no special start.
\blind@addtext{american}{% \def\blindtext@parstart{% 719 \ifcase\value{blind@countparstart}\or 720 This is the second paragraph.\or 721 And after the second paragraph follows the third paragraph.\or
717 718
27
After this fourth paragraph, we start a new paragraph sequence.\or \setcounter{blind@countparstart}{0} 724 \fi 725 \stepcounter{blind@countparstart} 726 }% \blindtext@parstart 727 }
722 723
28
D.6
29
\blindtext@catalan
\def\blindtext@catalan{}
Dene dierent paragraph starts for second and later paragraphs. The rst paragraph gets no special start.
822 823
\blind@addtext{catalan}{% \def\blindtext@parstart{% 824 \ifcase\value{blind@countparstart}\or 825 Aquest \es el segon par\agraf\blindtext@endsentence\or 826 I despr\es del segon ve el tercer par\agraf\blindtext@endsentence\or 827 Despr\es del quart par\agraf comencem una nova tanda de nous par\agrafs\blindtext@endsentence 828 \setcounter{blind@countparstart}{0} 829 \fi 830 \stepcounter{blind@countparstart} 831 }% \blindtext@parstart 832 }
\blind@addtext{catalan}{%
30
31
\or Coi! quinze jans golafres de X\ativa, beuen whisky a pams\blindtext@endsentence% 891 \setcounter{blind@pangramcount}{-1}% 892 \fi% 893 \refstepcounter{blind@pangramcount}% 894 \ifnum\blind@countxx<\value{blind@pangrammax}\advance\blind@countxx by 1 % 895 \repeat% 896 \setcounter{blind@pangrammax}{\value{blindtext}}% 897 }% \blindtext@text 898 \def\blindtext@parstart{}%no change for pangram option 899 } 900 \fi %option pangram
889 890
D.7
I dont speak Latin, but I think the classic Lorem ipsum should be available. There is no inline math supported for this Lorem ipsum. The following Latin texts are not really correct Latin. If you want correct texts, please provide them to me. Latin with option random use some citations from Asterix.
\blindtext@latin
\def\blindtext@latin{}
32
924
Undecim\or Duodecim% \else 926 Nova% 927 \fi 928 }% \blindtext@count 929 \def\blindtext@item{, altum~\arabic{blind@levelcount}}% 930 }%\addto\extraslatin
925
33
\or Ad gladios!\xspace \or Alea iacta est\blindtext@endsentence 969 \or Argumentum baculinum!\xspace 970 \or Audaces fortuna juvat!\xspace 971 \or Auri sacra fames!\xspace 972 \or Aut Caesar, aut nihil!\xspace 973 \or Ave C\"asar, lucrifacturi te salutant!\xspace 974 \or Beati Asterixem possidentes!\xspace 975 \or Beati pauperes spiritu\blindtext@endsentence 976 \or Bis repetita non placent\blindtext@endsentence 977 \or Carpe diem\blindtext@endsentence 978 \or Cautela abundans non nocet\blindtext@endsentence 979 \or Cogito, ergo sum\blindtext@endsentence 980 \or Concursu!\xspace 981 \or Condicio sine qua non\blindtext@endsentence 982 \or Contraria contrariis curantur!\xspace 983 \or Similia similibus curantur\blindtext@endsentence 984 \or Da capo!\xspace 985 \or Ceterum censeo Carthaginem esse delendam\blindtext@endsentence 986 \or Desinit in piscem mulier formosa superne!\xspace 987 \or Diem perdidi!\xspace 988 \or Dignus est intrare\blindtext@endsentence 989 \or Donec eris felix, multos numerabis amicos\blindtext@endsentence 990 \or Tempora si fuerint nubila, solus eris\blindtext@endsentence 991 \or Dulce et decorum est pro patria mori\blindtext@endsentence 992 \or Errare humanum est\blindtext@endsentence 993 \or Et nunc reges, intelligite erudimini qui judicatis 994 terram\blindtext@endsentence 995 \or Exegi monumentum aere perennius\blindtext@endsentence 996 \or Felix, qui potuit rerum cognoscere\blindtext@endsentence 997 \or Felix qui potuit rerum cognocscere causas!\xspace 998 \or Fluctuat nec mergitur!\xspace 999 \or Ipso facto!\xspace 1000 \or Ira furor brevis est\blindtext@endsentence 1001 \or Ita deis placuit!\xspace 1002 \or Ita est!\xspace 1003 \or Legio expedita!\xspace 1004 \or Leontes te devorant \blindtext@endsentence 1005 \or Major e longinquo reverentia\blindtext@endsentence 1006 \or Mens sana in corpore sano\blindtext@endsentence 1007 \or Morituri te salutant!\xspace 1008 \or Nihil conveniens decretis ejus!\xspace 1009 \or Non licet omnibus adire Brivatum\blindtext@endsentence 1010 \or Non licet omnibus adire Corinthum\blindtext@endsentence 1011 \or Non omnia possumus omnes!\xspace 1012 \or O fortunatos nimium, sua si bona norint, agricolas!\xspace 1013 \or Qui habet aures audiendi, audiat!\xspace 1014 \or Quod erat demonstrandum\blindtext@endsentence 1015 \or Quot capita tot census!\xspace 1016 \or Sic transit gloria mundi\blindtext@endsentence
967 968
34
\or \or 1019 \or 1020 \or 1021 \or 1022 \or
1017 1018 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
Summum jus, summa injuria!\xspace Ubi solitudinem faciunt, pacem appellant\blindtext@endsentence Vanitas vanitatum et omnia vanitas\blindtext@endsentence Victrix causa diis placuit, sed victa Catoni\blindtext@endsentence Video meliora proboque deteriora sequor\blindtext@endsentence Vinum et musica laetificant cor\blindtext@endsentence% \setcounter{blind@randomcount}{-1}% \fi% \refstepcounter{blind@randomcount}% \ifnum\blind@countxx<\value{blind@randommax}\advance\blind@countxx by 1 % \repeat% \setcounter{blind@randommax}{\value{blindtext}}% }% \blindtext@text \def\blindtext@parstart{}%no change for random option
D.8
This text is just an interim solution until I get a correct text. To ll up the text the Latin Lorem lipsum is used.
\blindtext@french
\def\blindtext@french{}
\blind@addtext{french}{% \def\blindtext@text{% 1058 Quest que cest?\blindtext@endsentence Cest une phrase 1059 fran\c{c}ais \blindmarkup{avant le lorem 1060 ipsum}\blindtext@endsentence Lorem ipsum dolor sit amet, 1061 consectetuer adipiscing elit. Etiam lobortis facilisis sem. Nullam 1062 nec mi et neque pharetra sollicitudin. Praesent imperdiet mi nec 1063 ante. Donec ullamcorper, felis non sodales commodo, lectus velit 1064 ultrices augue, a dignissim nibh lectus placerat pede. Vivamus nunc 1065 nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor. 1066 Praesent in sapien. \blindmarkup{Lorem ipsum} dolor sit amet, 1067 consectetuer adipiscing elit. Duis fringilla tristique neque. Sed 1068 interdum libero ut metus. Pellentesque placerat. Nam rutrum augue a 1069 leo. Morbi sed elit sit amet ante lobortis sollicitudin. Praesent 1070 blandit blandit mauris. Praesent lectus tellus, \blindmarkup{aliquet 1071 aliquam}, luctus a, egestas a, turpis. Mauris lacinia lorem sit amet 1072 ipsum. Nunc quis urna dictum turpis accumsan semper.% 1073 }% \blindtext@text 1074 }
1056 1057
36
1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116
maudit entre tout le b\etail et entre tous les animaux des champs, tu marcheras sur ton ventre, et tu mangeras de la poussi\ere tous les jours de ta vie. Dieu dit \a Mo\"ise: Je suis celui qui suis. Et il ajouta: Cest ainsi que tu r\epondras aux enfants dIsra\"el: Celui qui sappelle je suisma envoy\e vers vous. De la victime, il offrira en sacrifice consum\e par le feu devant l\eternel: la graisse qui couvre les entrailles et toute celle qui y est attach\ee,\ldots L\eternel parla \a Mo\"ise, dans le d\esert de Sina\"i, et dit: Ja\"ir, fils de Manass\e, prit toute la contr\ee dArgob jusqu\a la fronti\ere des Gueschuriens et des Maacathiens, et il donna son nom aux bourgs de Basan, appel\es encore aujourdhui bourgs de Ja\"ir.% }% \blindtext@text \def\blindtext@parstart{}%no change for bible option } \fi %\ifbible
37
*packageend
Thanks
Thanks to Heiko Oberdiek and Arno Trautmann for corrections (Version 1.8) Thanks to Andrea Bergschneider for her idea with math formulas inside the text (and Arno Trautmann for his cooperation in realizing it). Thanks to Dennis Heidsieck for his hint with polygloss. (Version 1.9) Thanks to Joan Queralt Gil for the Catalanian translation. Thanks to Felix Lehmann for corrections of the documentation and German and English blind texts. (Version 2.0)
Index
Numbers written in italic refer to the page where the corresponding entry is described; numbers underlined refer to the code line of the denition; numbers in roman refer to the code lines where the entry is used.
B \blind@addtext . . . . \blind@Blindtext . . \blind@checklanguage \blind@items . . . . . . \blind@list . . . . . . . \blind@listtype . . . \Blinddescription . \blinddescription . \Blinddocument . . . . \blinddocument . . . . \Blindenumerate . . . \blindenumerate . . . \Blinditemize . . . . . \blinditemize . . . . . \Blindlist . . . . . . . 82 \blindlist . . . . . . . 52 \blindlistlist . . . . 69 \blindlistlistoptional . . . . . . . . . . . . 76 \Blindlistoptional . 92 \blindlistoptional . 88 \blindmarkup . . . . . . 130 \blindmathfalse . . . 150 \blindmathpaper . . . 245 \blindmathtrue . . . . 134 \Blindtext . . . . . . . 28 \blindtext . . . . . . . 17 \blindtext@american 699 \blindtext@catalan . 806 \blindtext@endsentence . . . . . . . . . . . 131 \blindtext@english . 325 \blindtext@formula . 157 \blindtext@french 1055 \blindtext@german . 432 \blindtext@latin . . 901 \blindtext@ngerman . 566 G \glqq . . . . . . . . . . . . . 5 \grqq . . . . . . . . . . . . . 5 P \parend . . . . . . . . . . \parstart . . . . . . . .
42 42
Change History
1.7 \Blinddescription: Replace counter listcount . . . . . . . . . . 10 V1.3
10
38
V1.6 \blind@checklanguage: Check for dened language . . . . . . . . . . . 7 \blind@listtype: Check for dened language . . . . . . . . . . . . 8 \Blindtext: Check for dened language . . . . . . . . . . . . . . . . . . . 8 \blindtext: Check for dened language . . . . . . . . . . . . . . . . . . . 7 V1.7 General: Delete trailing spaces in language denitions. . . . . . . . 16 V1.8 General: Adding a lot percent to avoid spaces. . . . . . . . . . . . . . . 7 V1.9 General: Adding math . . . . . . . . 11 Option math . . . . . . . . . . . . . 15 Option toc . . . . . . . . . . . . . . . 15 \blind@addtext: Support (n)german . . . . . . . . . . . . . . 16 Support polyglossia . . . . . . . . 16 \blindmathpaper: Adding math . 14 V1.9b General: Correction French . . . . 34 Support French - interim version 34 V1.9d General: Adding markup feature 11
V1.9e General: Add American . . . . . . . 26 Add Catalan . . . . . . . . . . . . . 28 Add Lorem Lipsum to French . 34 Asterix citations . . . . . . . . . . 31 Correction English . . . . . . . . . 17 Correction German . . . . . . . . 20 Correction NGerman . . . . . . . 23 Default paragraph start for American . . . . . . . . . . . . . . . 26 Default paragraph start for Catalan . . . . . . . . . . . . . . . . . . . . 29 Default paragraph start for English . . . . . . . . . . . . . . . . . . . 18 Default paragraph start for German . . . . . . . . . . . . . . . . . . . 20 Default paragraph start for Ngerman . . . . . . . . . . . . . . . . . . . 23 V2.0 General: Add option bible . . . . . . 4 Add option pangram . . . . . . . . 3 Add option random . . . . . . . . . 3 Default paragraph start . . . . . . 4 Option bible . . . . . . . . . . . . . 14 Option pangram . . . . . . . . . . 15 Option random . . . . . . . . . . . 15 \blind@checklanguage: Text default lorem lipsum . . . . . . . . . . 7
39