rake4latex 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ Statistic for testdocument:
3
3
  Document : 9 pages, 4 warnings (testdocument.log)
4
4
  Bibliography: Used testdocument.bib, 3 warnings (testdocument.blg)
5
5
  Index : 1 entry (testdocument-ani.ilg)
6
- Index : 1 entry (testdocument-fru.ilg)
7
- Index : 1 entry (testdocument-idx.ilg)
8
6
  Index : 1 entry (testdocument-veg.ilg)
9
7
  Index : 1 entry (testdocument-xxx.ilg)
8
+ Index : 2 entries (testdocument-fru.ilg)
9
+ Index : 3 entries (testdocument-idx.ilg)
@@ -0,0 +1,923 @@
1
+ % ^^A CTAN:macros/latex/contrib/supported/minutes
2
+ %\iffalse
3
+ %<*package>
4
+ %\fi
5
+ \def\blindfileversion{V1.9d}
6
+ \def\blindfiledate{2010/01/14}
7
+ % ^^A For index and changes, run:
8
+ % ^^A makeindex -s gglo.ist -o blindtext.gls blindtext.glo
9
+ % ^^A makeindex -s gind.ist -o blindtext.ind blindtext.idx
10
+ %
11
+ % \CheckSum{547}
12
+ %%
13
+ %% \CharacterTable
14
+ %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
15
+ %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
16
+ %% Digits \0\1\2\3\4\5\6\7\8\9
17
+ %% Exclamation \! Double quote \" Hash (number) \#
18
+ %% Dollar \$ Percent \% Ampersand \&
19
+ %% Acute accent \' Left paren \( Right paren \)
20
+ %% Asterisk \* Plus \+ Comma \,
21
+ %% Minus \- Point \. Solidus \/
22
+ %% Colon \: Semicolon \; Less than \<
23
+ %% Equals \= Greater than \> Question mark \?
24
+ %% Commercial at \@ Left bracket \[ Backslash \\
25
+ %% Right bracket \] Circumflex \^ Underscore \_
26
+ %% Grave accent \` Left brace \{ Vertical bar \|
27
+ %% Right brace \} Tilde \~}
28
+ %%
29
+ % \DoNotIndex{\" , \-, \flqq,\frqq, \ ,\def, \begin, \end}
30
+ % \DoNotIndex{\csname,\endcsname, \expandafter, \global, \newcommand}
31
+ % \DoNotIndex{\advance, \blindfiledate, \blindfileversion, \MessageBreak}
32
+ % \DoNotIndex{\newcount, \newcounter, \newif, \or}
33
+ % \DoNotIndex{\if, \else, \fi, \ifcase, \ifdefined, \ifnum, \ifx, \loop, \repeat}
34
+ % \DoNotIndex{\heartsuit}
35
+ % \DoNotIndex{\NeedsTeXFormat, \providecommand, \ProvidesPackage, \relax, \RequirePackage}
36
+ % \DoNotIndex{\par, \chapter, \section, \subsection, \subsubsection, \paragraph, }
37
+ % \DoNotIndex{\selectlanguage, \stepcounter, \ss, \space, \setcounter}
38
+ % \DoNotIndex{\value, \typeout, \long, \renewcommand}
39
+ %
40
+ % \iffalse
41
+ %</package>
42
+ %<*driver>
43
+ \documentclass{ltxdoc}
44
+ \usepackage[ngerman,english]{babel}
45
+ \usepackage{blindtext}
46
+ \usepackage{makeidx}
47
+ \IfFileExists{hyperref.sty}{\usepackage{hyperref}}{}
48
+ \CodelineIndex
49
+ \makeindex
50
+ %\OnlyDescription
51
+ \begin{document}
52
+ \RecordChanges
53
+ \DocInput{blindtext.dtx}
54
+ \end{document}
55
+ %</driver>
56
+ %
57
+ %<*package>
58
+ % \fi
59
+ %
60
+ % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
61
+ % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset a package
62
+ %
63
+ % \title{Blindtext.sty:\\
64
+ % Creating dummy text\\
65
+ % \em Blindtext erzeugen}
66
+ %
67
+ % \date{\today, \blindfileversion}
68
+ % \author{Knut Lickert\thanks{
69
+ % \url{http://tex.lickert.net/packages/blindtext/}}
70
+ % }
71
+ % \maketitle
72
+ %
73
+ %\begin{abstract}
74
+ %\selectlanguage{english}
75
+ %With this package you can create dummy text.
76
+ %Use \cmd{\blindtext} to get some text and
77
+ %\cmd{\Blindtext} to get a long text.
78
+ %With \cmd{\blinddocument} (or \cmd{\Blinddocument})
79
+ %you get complete dummy documents.
80
+ %
81
+ %Details can be found at \url{http://tex.lickert.net/packages/blindtext/index_en.html}.
82
+ %This File describes version \blindfileversion.
83
+ %
84
+ %\selectlanguage{ngerman}
85
+ %\em
86
+ %Mit diesem Paket kann man lange Texte erzeugen, ohne lange
87
+ %Texte einzugeben.
88
+ %Sinn ist die Erzeugung langer Beispieltexte, ohne den
89
+ %Quelltext lang zu machen.
90
+ %
91
+ %Details unter \url{http://tex.lickert.net/packages/blindtext/}.
92
+ %Dieses Dokument beschreibt Version \blindfileversion.
93
+ %\end{abstract}
94
+ %
95
+ % \tableofcontents
96
+ %
97
+ %\selectlanguage{english}
98
+ %\section{Overview/{\"U}bersicht}
99
+ %
100
+ %\begin{figure}
101
+ %\renewcommand{\arraystretch}{1.1}
102
+ %\begin{tabular}{p{0.3\textwidth}*{2}{p{0.3\textwidth}}}\hline
103
+ %Command/Makro & englisch & German \\\hline
104
+ %\cmd{\blinddocument} & creates a document & erzeugt ein Dokument\\
105
+ %\cmd{\Blinddocument} & creates a big document & erzeugt ein gro{\ss}es Dokument\\
106
+ %\cmd{\blindtext} & creates text & erzeugt Text\\
107
+ %\cmd{\Blindtext} & creates more text & erzeugt mehr Text\\
108
+ %\verb|\blindlist{env}| & creates a list & erzeugt eine Liste\\
109
+ %\verb|\blindlistoptional|\newline\hspace*{2em}\verb|{env}| & creates a list with \verb|\item[]| & erzeugt eine Liste mit \verb|\item[]|\\
110
+ %\verb|\blindlistlist|\newline\hspace*{2em}\verb|[level]{env}| & creates cascaded lists & erzeugt geschachtelte Listen\\
111
+ %\verb|\Blindlist{env}| & creates a big list & erzeugt eine gro{\ss}e Liste\\
112
+ %\verb|\Blindlistoptional|\newline\hspace*{2em}\verb|{env}| & creates a big list with \verb|\item[]| & erzeugt eine gro{\ss}e Liste mit \verb|\item[]|\\
113
+ %\verb|\blinditemize| & creates an itemize list & erzeugt eine itemize-Liste\\
114
+ %\verb|\blindenumerate| & creates an enumerate list & erzeugt eine enume\-ra\-te-Liste\\
115
+ %\verb|\blinddescription| & creates a description list & erzeugt eine des\-crip\-tion-Liste\\\hline
116
+ %$\sim$[x] & repetition & Wiederholungsfaktor\\
117
+ % ^^A%\verb|\lovetext| & I love you in different languages & mehrsprachig: Ich liebe dich\\
118
+ %\end{tabular}
119
+ %\caption{Command Overview/Kommando\"ubersicht}
120
+ %\end{figure}
121
+ %
122
+ % \subsection{Create Documents}
123
+ % \DescribeMacro{\blinddocument}
124
+ % \cmd{\blinddocument} create a document with sections,
125
+ % subsections\ldots and lists (\Lenv{itemize},
126
+ % \Lenv{enumerate} and \Lenv{description}).
127
+ %
128
+ % \DescribeMacro{\Blinddocument}
129
+ % \cmd{\Blinddocument} create a
130
+ % document with bigger sections, subsections\ldots and longer
131
+ % lists.\par
132
+ %
133
+ % The smallest document to check the look of a class would be:
134
+ % \begin{quote}
135
+ % \begin{verbatim}
136
+ % \documentclass{<class>}
137
+ % \usepackage{blindtext}
138
+ % \begin{document}
139
+ % \blinddocument
140
+ % \end{document}
141
+ % \end{verbatim}
142
+ % \end{quote}
143
+ %
144
+ % If you want to have a table of contents you have two ways:
145
+ % \begin{enumerate}
146
+ % \item use the package option 'toc'
147
+ % \item Just add the |\tableofcontents|-command in your testdocument.
148
+ % \end{enumerate}
149
+ %
150
+ % \subsection{Get some text}
151
+ % \DescribeMacro{\blindtext}
152
+ % \cmd{\blindtext}\oarg{x} create a text. The optional parameter defines a
153
+ % repetition. Default for the repetition is one and can be modified
154
+ % with \cmd{\setcounter}\marg{blindtext}\marg{1}.
155
+ %
156
+ % \DescribeMacro{\Blindtext}
157
+ % \cmd{\Blindtext}\oarg{x}\oarg{y} create $x$ paragraphs with the text of
158
+ % \cmd{\blindtext}. The first optional parameter defines a
159
+ % repetition of the paragraphs. Default for the repetition is five
160
+ % and can be modified with \cmd{\setcounter}\marg{Blindtext}\marg{5}. The
161
+ % second optional parameter is given to \cmd{\blindtext}.
162
+ %
163
+ % It is possible to add a start and end sequence for each paragraph.
164
+ %
165
+ % \DescribeMacro{\parstart}
166
+ % \DescribeMacro{\parend}
167
+ % The two macros \cmd{\parstart} and \cmd{\parend} define a
168
+ % starting and ending sequence for each paragraph in
169
+ % \cmd{\Blindtext}.
170
+ %
171
+ % \subsection{Get some lists}
172
+ % \DescribeMacro{\blindlist}
173
+ % \cmd{\blindlist}\marg{env}\oarg{x} create a list, the type is defined by the
174
+ % obligatory parameter. The optional parameter defines a repetition.
175
+ % Default for the repetition is five and can be modified with
176
+ % \cmd{\setcounter}\marg{blindlist}\marg{x}.
177
+ %
178
+ % \DescribeMacro{\blindlistlist}
179
+ % \cmd{\blindlistlist}\oarg{level}\marg{env}\oarg{x} creates cascaded lists up to
180
+ % level \verb|level|, the type is defined by the second obligatory
181
+ % parameter. The optional parameter defines a repetition. Default is the
182
+ % same like in \cmd{\blindlist}.
183
+ %
184
+ % \DescribeMacro{\Blindlist}
185
+ % \cmd{\Blindlist}\marg{env}\oarg{x} create a list with long texts.
186
+ % The optional parameter defines a
187
+ % repetition. Default for the repetition is five and can be modified
188
+ % with \cmd{\setcounter}\marg{blindlist}\marg{x}.
189
+ %
190
+ % \DescribeMacro{\blindlistoptional}
191
+ % \cmd{\blindlistoptional}\marg{env}\oarg{x} create a list with \cmd{\item}\oarg{}. The
192
+ % list is defined by the obligatory parameter. The optional
193
+ % parameter defines a repetition. Default for the repetition is five
194
+ % and can be modified with \cmd{\setcounter}\marg{blindlist}\marg{x}.
195
+ %
196
+ % \DescribeMacro{\Blindlistoptional}
197
+ % \cmd{\Blindlistoptional} create a list like
198
+ % \cmd{\blindlistoptional} with long texts.
199
+ %
200
+ % \DescribeMacro{\blinditemize}
201
+ % \DescribeMacro{\blindenumerate}
202
+ % \DescribeMacro{\blinddescription}
203
+ % The commands \cmd{\blinditemize}, \cmd{\blindenumerate} and \cmd{\blinddescription}
204
+ % are abbreviations for \cmd{\blindlist}\marg{itemize}, \cmd{\blindlist}\marg{enumerate}
205
+ % and \cmd{\blindlist}\marg{description}.
206
+ %
207
+ % \DescribeMacro{\Blinditemize}
208
+ % \DescribeMacro{\Blindenumerate}
209
+ % \DescribeMacro{\Blinddescription}
210
+ % The commands \cmd{\Blinditemize}, \cmd{\Blindenumerate} and \cmd{\Blinddescription}
211
+ % are abbreviations for \cmd{\Blindlist}\marg{itemize}, \cmd{\Blindlist}\marg{enumerate}
212
+ % and \cmd{\Blindlist}\marg{description}.
213
+ %
214
+ % \subsection{Get some math in the text}
215
+ % \marginpar{\hfill math}
216
+ % If you need a dummy text with math formula, you can add
217
+ % some math with the package option 'math'.
218
+ %
219
+ %\DescribeMacro{\blindmathpaper}
220
+ % |\blindmathpaper| build some text with formulas in between.
221
+ % This macro is used in |\blinddocument| if |\blindmathtrue| is set.
222
+ %
223
+ % If you need dummy text with and without math, you can (de)activate
224
+ % the math option with the following commands:
225
+ %
226
+ %\DescribeMacro{\blindmathtrue}
227
+ % With |\blindmathtrue| you set a flag, so the following blind text contains
228
+ % inline math.
229
+ %
230
+ %\DescribeMacro{\blindmathfalse}
231
+ % With |\blindmathfalse| you reset the flag for inline math
232
+ % inside the blind text.
233
+ %
234
+ % \subsection{Get additional markup in the text}
235
+ % \DescribeMacro{\blindmarkup}
236
+ % If you want to test some markup in your dummy text you can redefine
237
+ % |\blindmarkup|.
238
+ %
239
+ % |\blindmarkup| is a macro with one parameter and it set some
240
+ % parts in your markup.
241
+ %
242
+ % Example:
243
+ % \begin{verbatim}
244
+ % \renewcommand{\blindmarkup}[1]{\emph{#1}}
245
+ % \end{verbatim}
246
+ %
247
+ %
248
+ % \StopEventually
249
+ %
250
+ % \selectlanguage{english}
251
+ % \section{Implementation/Implementierung}
252
+ % \changes{V1.8}{2009-01-27}{Adding a lot percent to avoid spaces.}
253
+ %
254
+ %
255
+ % \begin{macrocode}
256
+ \NeedsTeXFormat{LaTeX2e}
257
+ \ProvidesPackage{blindtext}[\blindfiledate\space\blindfileversion\space%
258
+ blindtext-Package]
259
+ \RequirePackage{xspace}
260
+ % \end{macrocode}
261
+ % \begin{macro}{frqq}
262
+ % \begin{macro}{flqq}
263
+ % Just in case the French quote are not defined
264
+ % \begin{macrocode}
265
+ \providecommand{\frqq}{}
266
+ \providecommand{\flqq}{}
267
+ % \end{macrocode}
268
+ % \end{macro}
269
+ % \end{macro}
270
+ %
271
+ % \begin{macro}{\blind@checklanguage}
272
+ % \changes{V1.6}{2006-08-02}{Check for defined language}
273
+ % It is possible, that you use blindtext.sty with
274
+ % undefined languages.
275
+ % This macro checks, if blindtext supports the language.
276
+ % If it is not available, an error is reported and
277
+ % English is used.
278
+ % \begin{macrocode}
279
+ \newcommand{\blind@checklanguage}{%
280
+ \@ifundefined{blindtext@\languagename}{%
281
+ \PackageWarning{blindtext}{\languagename\space not
282
+ defined, using English instead.\MessageBreak
283
+ }%
284
+ \selectlanguage{english}%
285
+ }{}%
286
+ }
287
+ % \end{macrocode}
288
+ % \end{macro}
289
+ %
290
+ %
291
+ % \subsection{Counter and supporting macros}
292
+ % First we need some counters for the number of repetitions of the
293
+ % text and the paragraphs.
294
+ % \begin{macrocode}
295
+ \newcounter{blindtext}\setcounter{blindtext}{1}
296
+ \newcounter{Blindtext}\setcounter{Blindtext}{5}
297
+ % \end{macrocode}
298
+ %
299
+ % \begin{macro}{\blindtext}
300
+ %
301
+ % \verb|\blindtext[x]| write x times a sentence.
302
+ % The default is stored in the counter \verb|blindtext|. This value
303
+ % can be changed with \verb|\setcounter{blindtext}{1}|.
304
+ %
305
+ % \changes{V1.6}{2006-08-02}{Check for defined language}
306
+ % \begin{macrocode}
307
+ \newcount\blind@countxx
308
+ \newcommand{\blindtext}[1][\value{blindtext}]{%
309
+ \blind@checklanguage
310
+ \blind@countxx=1 %
311
+ \loop
312
+ \blindtext@text\
313
+ \ifnum\blind@countxx<#1\advance\blind@countxx by 1 %
314
+ \repeat
315
+ }
316
+ % \end{macrocode}
317
+ % \end{macro}
318
+ %
319
+ % \subsection{Creating Text}
320
+ % \begin{macro}{\Blindtext}
321
+ % \verb|\Blindtext[x][y]| execute $x\times$\verb|\blindtext[y]|. Each
322
+ % \verb|\blindtext[y]| built a paragraph.
323
+ % The default is stored in the counter \verb|Blindtext|. This value
324
+ % can be changed with \verb|\setcounter{Blindtext}{5}|.
325
+ % The counter \verb|blindtext@numBlindtext| stores the first
326
+ % optional parameter to be used in \verb|\blindtext@Blindtext|.
327
+ % \changes{V1.6}{2006-08-02}{Check for defined language}
328
+ % \begin{macrocode}
329
+ \newcount\blindtext@numBlindtext
330
+ \newcommand{\Blindtext}[1][\value{Blindtext}]{%
331
+ \blind@checklanguage
332
+ \blindtext@numBlindtext=#1\relax
333
+ \blind@Blindtext
334
+ }
335
+ % \end{macrocode}
336
+ % \end{macro} %^^A Blindtext
337
+ %
338
+ % \begin{macro}{\blind@Blindtext}
339
+ % This macro continue \cmd{\Blindtext} with a second optional parameter.
340
+ %
341
+ % Each paragraph starts and end with a text, which can be defined with
342
+ % \verb|\starttext| or \verb|\endtext|.
343
+ % \begin{macrocode}
344
+ \newcount\blind@countyy
345
+ \newcommand{\blind@Blindtext}[1][\value{blindtext}]{%
346
+ \blind@countyy=1 %
347
+ \loop
348
+ {\blindtext@parstart\blindtext[{#1}]\blindtext@parend\par}%
349
+ \ifnum\blind@countyy<\blindtext@numBlindtext\advance\blind@countyy by 1 %
350
+ \repeat
351
+ }
352
+ % \end{macrocode}
353
+ % \end{macro}%^^A {\blind@Blindtext}
354
+ %
355
+ % \begin{macro}{\parstart}
356
+ % \begin{macro}{\parend}
357
+ % \begin{macrocode}
358
+ \newcommand{\blindtext@parstart}{} % Text at start of paragraph
359
+ \newcommand{\blindtext@parend}{} % Text at end of paragraph
360
+ \newcommand{\parstart}[1]{\renewcommand{\blindtext@parstart}{#1}}
361
+ \newcommand{\parend}[1]{\renewcommand{\blindtext@parend}{#1}}
362
+ % \end{macrocode}
363
+ % \end{macro}%^^A{\parstart}
364
+ % \end{macro}%^^A{\parend}
365
+ %
366
+ % \subsection{Lists}
367
+ % Here I define some flags to decide in the lists, if we have to
368
+ % create big items and if we need the optional parameter at
369
+ % \verb|\item|. This flags are reset in \verb|\blind@list|.\par
370
+ % The counter \verb|blindlist| define the default number of items in a list.
371
+ % The counter \verb|blindlistitem| is needed by \verb|\blindtext@count|
372
+ % to write a text like 'first', 'second'\ldots.
373
+ % \begin{macrocode}
374
+ \newif\ifblind@long\blind@longfalse
375
+ \newif\ifblind@optional\blind@optionalfalse
376
+ \newcounter{blindlist}
377
+ \newcounter{blindlistlevel}% Up tu X level
378
+ \newcounter{blindlist@level}% internal counter
379
+ \newcount\blind@listitem
380
+ % \end{macrocode}
381
+ %
382
+ % \begin{macro}{\blindlist}
383
+ % \begin{macro}{\blind@listtype}
384
+ % \verb|\blindlist{env}[x]| write a env-list with $x$ items.
385
+ % The default is stored in the counter \verb|blindlist|. This value
386
+ % can be changed with \verb|\setcounter{blindlist}{1}|.
387
+ % The type of list is stored in \verb|\blind@listtype|.
388
+ % \changes{V1.6}{2006-08-02}{Check for defined language}
389
+ % \begin{macrocode}
390
+ %% ^^A-----------------------------------------------------------
391
+ \newcommand{\blindlist}[1]{%
392
+ \blind@checklanguage
393
+ \def\blind@listtype{#1}%
394
+ \setcounter{blind@levelcount}{1}%
395
+ \blind@list
396
+ }
397
+ % \end{macrocode}
398
+ % \end{macro}%^^A{\blindlist}
399
+ % \end{macro}%^^A{\blind@listtype}
400
+ %
401
+ % \begin{macro}{\blind@list}
402
+ % This macro continue the macro \verb|\blindlist| and with the
403
+ % optional parameter. After the printout, we reset the flags and the
404
+ % counter for the list text.
405
+ % \begin{macrocode}
406
+ \newcommand{\blind@list}[1][5]{%
407
+ \setcounter{blindlist}{#1}%
408
+ \stepcounter{blindlist@level}% depth of list
409
+ \blind@listitem=1 %
410
+ \begin{\blind@listtype}%
411
+ \blind@items
412
+ \end{\blind@listtype}%
413
+ \blind@longfalse
414
+ \blind@optionalfalse
415
+ }
416
+ % \end{macrocode}
417
+ % \end{macro}%^^A {\blind@list}
418
+ %
419
+ % \begin{macro}{\blindlistlist}
420
+ % \verb|\blindlistlist[num]{env}[x]| writes cascaded lists up to level num.
421
+ % \begin{macrocode}
422
+ \newcommand{\blindlistlist}[2][4]{%
423
+ \setcounter{blindlistlevel}{#1}%
424
+ \setcounter{blindlist@level}{0}% deepest reached level
425
+ \setcounter{blind@levelcount}{1}% actual level for printout
426
+ \def\blind@listtype{#2}%
427
+ \blind@list
428
+ }
429
+ % \end{macrocode}
430
+ % \end{macro}%^^A {\blindlistlist}
431
+ % \begin{macro}{\blindlistlistoptional}
432
+ % Like \verb|\blindlistlist[num]{env}[x]| but for environment with optional parameters.
433
+ % \begin{macrocode}
434
+ \newcommand{\blindlistlistoptional}{%
435
+ \blind@optionaltrue
436
+ \blindlistlist
437
+ }
438
+ % \end{macrocode}
439
+ % \end{macro}%^^A{\blindlistlistoptional}
440
+ %
441
+ % \begin{macro}{\blinditemize}
442
+ % \begin{macro}{\blindenumerate}
443
+ % Some default macros for the standard environments.
444
+ % \begin{macrocode}
445
+ \newcommand{\blinditemize}{\blindlist{itemize}}
446
+ \newcommand{\blindenumerate}{\blindlist{enumerate}}
447
+ % \end{macrocode}
448
+ % \end{macro}%^^A{\blinditemize}
449
+ % \end{macro}%^^A{\blindenumerate}
450
+ %
451
+ % \verb|\Blindlist[x]| write a list with $x$ items.
452
+ % The default is stored in the counter \verb|blindlist|. This value
453
+ % can be changed with \verb|\setcounter{blindlist}{1}|.
454
+ %
455
+ %
456
+ % \begin{macro}{\Blindlist}
457
+ % \begin{macrocode}
458
+ \newcommand{\Blindlist}[1]{%
459
+ \blind@longtrue
460
+ \blindlist{#1}%
461
+ }
462
+ % \end{macrocode}
463
+ % \end{macro}%^^A{\Blindlist}
464
+ %
465
+ % \begin{macro}{\Blinditemize}
466
+ % \begin{macro}{\Blindenumerate}
467
+ % Some default macros for the standard environments.
468
+ % \begin{macrocode}
469
+ \newcommand{\Blinditemize}{\Blindlist{itemize}}
470
+ \newcommand{\Blindenumerate}{\Blindlist{enumerate}}
471
+ % \end{macrocode}
472
+ % \end{macro}%^^A{\Blinditemize}
473
+ % \end{macro}%^^A{\Blindenumerate}
474
+ %
475
+ % \begin{macro}{\blindlistoptional}
476
+ % Here we start a list with \verb|\item[]|. So we set the flag for optional
477
+ % parameter and start the normal list.
478
+ % \begin{macrocode}
479
+ \newcommand{\blindlistoptional}[1]{%
480
+ \blind@optionaltrue
481
+ \blindlist{#1}%
482
+ }
483
+ % \end{macrocode}
484
+ % \end{macro}%^^A{\blindlistoptional}
485
+ %
486
+ % \begin{macro}{\Blindlistoptional}
487
+ % Now a big list with optional parameter at \verb|\item|.
488
+ % \begin{macrocode}
489
+ \newcommand{\Blindlistoptional}[1]{%
490
+ \blind@optionaltrue
491
+ \blind@longtrue
492
+ \blindlist{#1}%
493
+ }
494
+ % \end{macrocode}
495
+ % \end{macro}%^^A{\blindlistoptional}
496
+ %
497
+ % \begin{macro}{\blinddescription}
498
+ % \begin{macro}{\Blinddescription}
499
+ % Some default macros for the standard environment description.
500
+ %\changes{1.7}{2006-12-01}{Replace counter listcount}
501
+ % \begin{macrocode}
502
+ \newcommand{\blinddescription}{\blindlistoptional{description}}
503
+ \newcommand{\Blinddescription}{\Blindlistoptional{description}}
504
+ \newcounter{blind@listcount}
505
+ \newcounter{blind@levelcount}
506
+ % \end{macrocode}
507
+ % \end{macro}%^^A{\blinddescription}
508
+ % \end{macro}%^^A{\Blinddescription}
509
+ %
510
+ % \begin{macro}{\blind@items}
511
+ % Here the \verb|\item| are written.
512
+ % A local counter is defined and the \verb|\item| is written. The
513
+ % type of \verb|\item| is influenced by the flags.
514
+ % \begin{macrocode}
515
+ \newcommand{\blind@items}{%
516
+ \setcounter{blind@listcount}{1}%
517
+ \loop
518
+ \ifblind@optional
519
+ \ifblind@long
520
+ \item[\blindtext@countitem] \blindtext@text
521
+ \else
522
+ \item[\blindtext@count] \blindtext@item
523
+ \fi
524
+ \else % \blind@optionalfalse
525
+ \ifblind@long
526
+ \item \blindtext@text
527
+ \else
528
+ \item \blindtext@countitem
529
+ \fi
530
+ \fi % \ifblind@optional
531
+ % \end{macrocode}
532
+ % Loop for cascaded lists.
533
+ % \changes{V1.3}{2003-05-18}{Cascaded lists}
534
+ % \begin{macrocode}
535
+ {%
536
+ \loop
537
+ \ifnum\value{blindlistlevel}>\value{blindlist@level}%
538
+ \stepcounter{blind@levelcount}%
539
+ \blind@list[\value{blindlist}]\relax
540
+ \addtocounter{blind@levelcount}{-1}%
541
+ \setcounter{blind@listcount}{1}%
542
+ \repeat
543
+ }%
544
+ \ifnum\value{blind@listcount}<\value{blindlist}%
545
+ \stepcounter{blind@listcount}%
546
+ % \end{macrocode}
547
+ % Correction for nested values.
548
+ % \begin{macrocode}
549
+ % \end{macrocode}
550
+ % Close the loop
551
+ % \begin{macrocode}
552
+ \repeat
553
+ }
554
+ % \end{macrocode}
555
+ % \end{macro}%^^A{\blind@item}
556
+ %% ^^A-----------------------------------------------------------
557
+ % \subsection{Blind Text with Markup}
558
+ % \changes{V1.9d}{2010-01-14}{Adding markup feature}
559
+ % \begin{macro}{\blindmarkup}
560
+ % \begin{macrocode}
561
+ \newcommand{\blindmarkup}[1]{#1}
562
+ % \end{macrocode}
563
+ % \end{macro}% ^^A \blindmarkup
564
+ %
565
+ %% ^^A-----------------------------------------------------------
566
+ % \subsection{Blind Text with Math}
567
+ % \changes{V1.9}{2009-05-06}{Adding math}
568
+ % \subsubsection{Inline Math}
569
+ % \begin{macro}{\blindtext@endsentence}
570
+ % Finish a sentence with a dot.
571
+ % This macro is redefined for blind text with inline math/formulas.
572
+ % \begin{macrocode}
573
+ \def\blindtext@endsentence{.\xspace}%
574
+ % \end{macrocode}
575
+ %
576
+ % Counter to make some alternation of inline formulas.
577
+ % \begin{macrocode}
578
+ \newcount{\blind@mathformula}\blind@mathformula=0%
579
+ % \end{macrocode}
580
+ %
581
+ % A flag to sign, if math formulas should be used in blind text.
582
+ % \begin{macrocode}
583
+ \newif\ifblindmath
584
+ % \end{macrocode}
585
+ %
586
+ % \begin{macro}{\blindmathtrue}
587
+ % Make the following blind text with inline math.
588
+ % This redefine the logical variable |\ifblindmath|,
589
+ % to keep the flag we have to store and call the old definition.
590
+ % \begin{macrocode}
591
+ \let\oldblindmathtrue\blindmathtrue
592
+ \renewcommand{\blindmathtrue}{
593
+ \oldblindmathtrue
594
+ % \end{macrocode}
595
+ % Make a formula each x sentence.
596
+ % \begin{macrocode}
597
+ \def\blindtext@endsentence{%
598
+ \advance\blind@mathformula by 1%
599
+ \ifcase\blind@mathformula%
600
+ \or. \(\sin^2(\alpha) + \cos^2(\beta) = 1\)%
601
+ \or\xspace\(E = mc^2\)%
602
+ \or. \(\sqrt[n]{a} \cdot \sqrt[n]{b} = \sqrt[n]{ab}\)%
603
+ \or. \(\frac{\sqrt[n]{a}}{\sqrt[n]{b}} = \sqrt[n]{\frac{a}{b}}\)%
604
+ \or. \(a\sqrt[n]{b} = \sqrt[n]{a^n b}\)%
605
+ \or. \(\mathrm{d}\Omega = \sin \vartheta \mathrm{d} \vartheta \mathrm{d}\varphi\)%
606
+ \else\global\blind@mathformula=0%
607
+ \fi%
608
+ .\xspace}%
609
+ % \end{macrocode}
610
+ % \begin{macrocode}
611
+ }%\blindmathtrue
612
+ % \end{macrocode}
613
+ % \end{macro} %^^A \blindmathtrue
614
+ %
615
+ % \begin{macro}{\blindmathfalse}
616
+ % Make the following blind text without inline math.
617
+ % \begin{macrocode}
618
+ \let\oldblindmathfalse\blindmathfalse
619
+ \renewcommand{\blindmathfalse}{
620
+ \oldblindmathfalse
621
+ % \end{macrocode}
622
+ % Rebuild the normal sentence end.
623
+ % \begin{macrocode}
624
+ \def\blindtext@endsentence{.\xspace}%
625
+ % \end{macrocode}
626
+ % \begin{macrocode}
627
+ }%\includemath
628
+ % \end{macrocode}
629
+ % \end{macro} %^^A \blindmathfalse
630
+ % \end{macro} %^^A\blindtext@endsentence
631
+ %
632
+ %
633
+ % \subsubsection{'Big' Formulas}
634
+ % Counter to make some alternation of 'big' formulas.
635
+ % \begin{macrocode}
636
+ \newcount{\blind@Mathformula}
637
+ \blind@Mathformula=0%
638
+ % \end{macrocode}
639
+ % \begin{macro}{\blindtext@formula}
640
+ % Make a formula each x sentence.
641
+ % \begin{macrocode}
642
+ \def\blindtext@formula{%
643
+ \advance\blind@Mathformula by 1%
644
+ \ifcase\blind@Mathformula%
645
+ \[\bar x = \frac{1}{n}\sum_{i=1}^{i=n} x_i = \frac{x_1 + x_2 + \dots{} + x_n}{n}\]
646
+ \or \[ \int_0^\infty e^{-\alpha x^2} \mathrm{d}x =
647
+ \frac12\sqrt{\int_{-\infty}^\infty e^{-\alpha x^2}}
648
+ \mathrm{d}x\int_{-\infty}^\infty e^{-\alpha y^2}\mathrm{d}y =
649
+ \frac12\sqrt{\frac{\pi}{\alpha}} \]
650
+ \or \[ \sum_{k=0}^\infty a_0q^k = \lim_{n\to\infty}\sum_{k=0}^n a_0q^k =
651
+ \lim_{n\to\infty} a_0\frac{1-q^{n+1}}{1-q} = \frac{a_0}{1-q}
652
+ \]
653
+ \or \[x_{1,2}=\frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{-p \pm \sqrt{p^2-4q}}{2}\]
654
+ \or \[ \frac{\partial^2 \Phi}{\partial x^2} + \frac{\partial^2 \Phi}{\partial y^2} +
655
+ \frac{\partial^2 \Phi}{\partial z^2} =
656
+ \frac{1}{c^2}\frac{\partial^2\Phi}{\partial t^2}
657
+ \]
658
+ \or \[\sqrt[n]{a} \cdot \sqrt[n]{b} = \sqrt[n]{ab}\]
659
+ \or \[\frac{\sqrt[n]{a}}{\sqrt[n]{b}} = \sqrt[n]{\frac{a}{b}}\]
660
+ \or \[a\sqrt[n]{b} = \sqrt[n]{a^n b}\]
661
+ \global\blind@Mathformula=0%
662
+ \fi%
663
+ }%
664
+ % \end{macrocode} %^^A \blindtext@formula
665
+ % \end{macro} %^^A \blindtext@formula
666
+ %
667
+ %% ^^A-----------------------------------------------------------
668
+ % \subsection{Create complete documents}
669
+ % A flag to sign, if the dummy documents should include a
670
+ % table of contents.
671
+ % \begin{macrocode}
672
+ \newif\ifblindtoc
673
+ \blindtocfalse
674
+ % \end{macrocode}
675
+ %
676
+ % \begin{macro}{\blinddocument}
677
+ % \cmd{\blinddocument} adds a document with \verb|\chapter|,
678
+ % \verb|\section|\ldots, texts and lists (itemize, enumerate,
679
+ % description).
680
+ % \begin{macrocode}
681
+ \newcommand{\blinddocument}{%
682
+ \ifblindtoc\tableofcontents\fi
683
+ \@ifundefined{chapter}{}{%
684
+ \chapter{\blindtext@heading 0 (chapter)}%
685
+ \blindtext
686
+ }%
687
+ \section{\blindtext@heading 1 (section)}%
688
+ \blindtext
689
+ \subsection{\blindtext@heading 2 (subsection)}%
690
+ \blindtext
691
+ \subsubsection{\blindtext@heading 3 (subsubsection)}%
692
+ \blindtext
693
+ \paragraph{\blindtext@heading 4 (paragraph)}%
694
+ \blindtext
695
+ \section{\blindtext@list}%
696
+ \subsection{\blindtext@listEx (itemize)}%
697
+ \blinditemize
698
+ \subsubsection{\blindtext@listEx (4*itemize)}%
699
+ \blindlistlist{itemize}[2]%
700
+ \subsection{\blindtext@listEx (enumerate)}%
701
+ \blindenumerate
702
+ \subsubsection{\blindtext@listEx (4*enumerate)}%
703
+ \blindlistlist{enumerate}[2]%
704
+ \subsection{\blindtext@listEx (description)}%
705
+ \blinddescription
706
+ \subsubsection{\blindtext@listEx (4*description)}%
707
+ \blindlistlistoptional{description}[2]%
708
+ }
709
+ % \end{macrocode}
710
+ % \end{macro}%^^A{\blinddocument}
711
+ %
712
+ % \begin{macro}{\Blinddocument}
713
+ % \cmd{\blinddocument} adds a document with \verb|\chapter|,
714
+ % \verb|\section|\ldots, texts and lists (itemize, enumerate,
715
+ % description).
716
+ % \begin{macrocode}
717
+ \newcommand{\Blinddocument}{%
718
+ \ifblindtoc\tableofcontents\fi
719
+ \@ifundefined{chapter}{}{%
720
+ \chapter{\blindtext@heading 0 (chapter)}%
721
+ \blindtext
722
+ }%
723
+ \section{\blindtext@heading 1 (section)}%
724
+ \Blindtext
725
+ \subsection{\blindtext@heading 2 (subsection)}%
726
+ \Blindtext
727
+ \subsubsection{\blindtext@heading 3 (subsection)}%
728
+ \Blindtext
729
+ \paragraph{\blindtext@heading 4 (paragraph)}%
730
+ \Blindtext
731
+ \section{\blindtext@list}%
732
+ \subsection{\blindtext@listEx (itemize)}%
733
+ \Blinditemize
734
+ \subsubsection{\blindtext@listEx (4*itemize)}%
735
+ \blind@longtrue
736
+ \blindlistlist{itemize}[2]%
737
+ \subsection{\blindtext@listEx (enumerate)}%
738
+ \Blindenumerate
739
+ \subsubsection{\blindtext@listEx (4*enumerate)}%
740
+ \blind@longtrue
741
+ \blindlistlist{enumerate}[2]%
742
+ \subsection{\blindtext@listEx (description)}%
743
+ \Blinddescription
744
+ \subsubsection{\blindtext@listEx (4*description)}%
745
+ \blind@longtrue
746
+ \blindlistlistoptional{description}[2]%
747
+ %
748
+ \ifblindmath
749
+ \section{\blindtext@blindmath}%
750
+ \blindmathpaper%
751
+ \fi%
752
+ }
753
+ % \end{macrocode}
754
+ % \end{macro}%^^A{\Blinddocument}
755
+ %
756
+ % \begin{macro}{\blindmathpaper}
757
+ % \changes{V1.9}{2009-05-06}{Adding math}
758
+ % Build some text with formulas in between.
759
+ % \begin{macrocode}
760
+ \newcommand{\blindmathpaper}{
761
+ \blindtext
762
+ \blindtext@formula
763
+ \blindtext
764
+ \blindtext@formula
765
+ \blindtext
766
+ \blindtext@formula
767
+ \blindtext
768
+ \blindtext@formula
769
+ \blindtext
770
+ \blindtext@formula
771
+ \blindtext
772
+ }%\blindmathpaper
773
+ % \end{macrocode}
774
+ % \end{macro} %^^A \blindmathpaper
775
+ %
776
+ %
777
+ %% ^^A-----------------------------------------------------------
778
+ % \section{The texts}
779
+ %
780
+ % \changes{V1.7}{2006-11-21}{Delete trailing spaces in language definitions.}
781
+ %
782
+ % \begin{macro}{\blind@addtext}
783
+ % This macro adds the texts to the language definitions.
784
+ % Actual four language packages are supported:
785
+ %\begin{itemize}
786
+ % \item babel
787
+ % \item polyglossia (see \url{http://tug.ctan.org/tex-archive/macros/xetex/latex/polyglossia/})
788
+ % \item (n)german
789
+ %\end{itemize}
790
+ %Parameters:
791
+ %\begin{enumerate}
792
+ % \item Language
793
+ % \item The text definitions
794
+ %\end{enumerate}
795
+ % \begin{macrocode}
796
+ \newcommand{\blind@addtext}[2]{%
797
+ % \end{macrocode}
798
+ % First we take care for the babel-package.
799
+ % \begin{macrocode}
800
+ \@ifpackageloaded{babel}{
801
+ \expandafter\addto\csname extras#1\endcsname{#2}
802
+ }{}%
803
+ % \end{macrocode}
804
+ % \changes{V1.9}{2009-06-03}{Support polyglossia}
805
+ % Polyglossia provides a complete Babel replacement for users of Xe\LaTeX.
806
+ % \begin{macrocode}
807
+ \@ifpackageloaded{polyglossia}{
808
+ \expandafter\gappto\csname captions#1\endcsname {#2}
809
+ }{}%
810
+ % \end{macrocode}
811
+ % \changes{V1.9}{2009-06-04}{Support (n)german}
812
+ % Now some special support for the (n)german-package.
813
+ % \begin{macrocode}
814
+ \@ifpackageloaded{ngerman}{
815
+ \expandafter\g@addto@macro\csname captions#1\endcsname {#2}
816
+ }{}%
817
+ \@ifpackageloaded{german}{
818
+ \expandafter\g@addto@macro\csname captions#1\endcsname {#2}
819
+ }{}%
820
+ % \end{macrocode}
821
+ %
822
+ % \begin{macrocode}
823
+ }%\blind@addtext
824
+ % \end{macrocode}
825
+ % \end{macro}%^^A\blind@addtext
826
+ %
827
+ %
828
+ % \subsection{Default without language}
829
+ % First all texts without any language.
830
+ %
831
+ % \begin{macrocode}
832
+ \def\blindtext@text{%
833
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam
834
+ lobortis facilisis sem. Nullam nec mi et neque pharetra
835
+ sollicitudin. Praesent imperdiet mi nec ante. Donec ullamcorper,
836
+ felis non sodales commodo, lectus velit ultrices augue, a
837
+ dignissim nibh lectus placerat pede. Vivamus nunc nunc, molestie
838
+ ut, ultricies vel, semper in, velit. Ut porttitor. Praesent in
839
+ sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
840
+ Duis fringilla tristique neque. Sed interdum libero ut metus.
841
+ Pellentesque placerat. Nam rutrum augue a leo. Morbi sed elit sit
842
+ amet ante lobortis sollicitudin. Praesent blandit blandit mauris.
843
+ Praesent lectus tellus, aliquet aliquam, luctus a, egestas a,
844
+ turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum
845
+ turpis accumsan semper.%
846
+ }
847
+ \def\blindtext@count{%
848
+ \ifcase\blind@listitem\or
849
+ First\or Second%...
850
+ \else
851
+ Last%
852
+ \blind@listitem=0 %
853
+ \fi
854
+ \global\advance\blind@listitem by 1 %
855
+ }% \blindtext@count
856
+ \def\blindtext@item{itemtext}
857
+ \def\blindtext@countitem{\blindtext@count\ \blindtext@item}
858
+ \def\blindtext@heading{Heading on level\xspace}
859
+ \def\blindtext@list{Lists}
860
+ \def\blindtext@listEx{Example for list\xspace}
861
+ \def\blindtext@blindmath{Some blind text with math formulas}
862
+ % \end{macrocode}
863
+ %
864
+ %</package>
865
+ %<*packageend>
866
+ % %^^A Load the texts for documentation
867
+ %
868
+ % \subsection{More Languages}
869
+ %If you want to have blindtext in another language, please provide me some texts.
870
+ %
871
+ %I need:
872
+ %\begin{itemize}
873
+ % \item The language name (used in babel)
874
+ % \item Some text for the paragraphs
875
+ % \item The numbers as used in "first, second\ldots"
876
+ % \item The following texts:
877
+ % \begin{itemize}
878
+ % \item item: "item in a list"
879
+ % \item heading: "Heading on level"
880
+ % \item lists: "Lists"
881
+ % \item listsEx: "Example for list"
882
+ % \item blindmath: "Some blind text with math formulas"
883
+ % \end{itemize}
884
+ %\end{itemize}
885
+ %
886
+ %
887
+ % \section{Option Processing}
888
+ % \subsection{Option Math}
889
+ % \changes{V1.9}{2009-06-06}{Option math}
890
+ % Activate the math formulas in the text.
891
+ % \begin{macrocode}
892
+ \DeclareOption{math}{
893
+ \blindmathtrue
894
+ }
895
+ % \end{macrocode}
896
+ %
897
+ % \subsection{Option toc}
898
+ % \changes{V1.9}{2009-06-14}{Option toc}
899
+ % Activate the table of contents for |\blinddoccument|.
900
+ % \begin{macrocode}
901
+ \DeclareOption{toc}{
902
+ \blindtoctrue
903
+ }
904
+ % \end{macrocode}
905
+ % \section{Closing actions}
906
+ % Activate the options
907
+ % \begin{macrocode}
908
+ \ProcessOptions\relax
909
+ % \end{macrocode}
910
+ %
911
+ %
912
+ % \section{Thanks}
913
+ % Thanks to Heiko Oberdiek and Arno Trautmann for corrections (Version 1.8)
914
+ %
915
+ % Thanks to Andrea Bergschneider for her idea with math formulas inside the text
916
+ % (and Arno Trautmann for his cooperation in realizing it).
917
+ % Thanks to Dennis Heidsieck for his hint with polygloss.
918
+ % (Version 1.9)
919
+ % \Finale
920
+ % \PrintIndex
921
+ % \PrintChanges
922
+ % \end{document}
923
+ %</packageend>