From c20c927ab1e34cdf707ffb2c79b83d7015395f8e Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 3 Jan 2007 01:22:49 +0000
Subject: blindtext update (3jan07)

git-svn-id: svn://tug.org/texlive/trunk@3109 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/blindtext/blindtext.sty   | 244 ++++++++++++---------
 1 file changed, 146 insertions(+), 98 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/blindtext/blindtext.sty')

diff --git a/Master/texmf-dist/tex/latex/blindtext/blindtext.sty b/Master/texmf-dist/tex/latex/blindtext/blindtext.sty
index 08a615911dd..06f37e91888 100644
--- a/Master/texmf-dist/tex/latex/blindtext/blindtext.sty
+++ b/Master/texmf-dist/tex/latex/blindtext/blindtext.sty
@@ -27,8 +27,8 @@
 %% For more information visit
 %%     http://tex.lickert.net/packages/blindtext/index.html
 %% ----------------------------------------------------------------------
-\def\fileversion{V1.5}
-\def\filedate{2005/10/20}
+\def\fileversion{V1.7}
+\def\filedate{2006/11/21}
 %%
 %% \CharacterTable
 %%  {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
@@ -52,27 +52,39 @@
 \RequirePackage{xspace}
 \providecommand{\frqq}{}
 \providecommand{\flqq}{}
+\newcommand{\blind@checklanguage}{%
+  \@ifundefined{blindtext@\languagename}{%
+    \PackageWarning{blindtext}{\languagename\space not
+      defined, using english instead.\MessageBreak
+    }%
+    \selectlanguage{english}%
+  }{}%
+}
+
 \newcounter{blindtext}\setcounter{blindtext}{1}
 \newcounter{Blindtext}\setcounter{Blindtext}{5}
 \newcount\blind@countxx
-\newcommand{\blindtext}[1][\value{blindtext}]{
-\blind@countxx=1
-\loop
-\blindtext@text
-\ifnum\blind@countxx<#1\advance\blind@countxx by 1
-\repeat
+\newcommand{\blindtext}[1][\value{blindtext}]{%
+  \blind@checklanguage
+  \blind@countxx=1 %
+  \loop
+    \blindtext@text
+  \ifnum\blind@countxx<#1\advance\blind@countxx by 1 %
+  \repeat
 }
-\newcount\blindtext@numBlindtext
-\newcommand{\Blindtext}[1][\value{Blindtext}]{
-\blindtext@numBlindtext=#1
-\blind@Blindtext}
-\newcount\blind@countyy
-\newcommand{\blind@Blindtext}[1][\value{blindtext}]{
-\blind@countyy=1
-\loop
-{\blindtext@parstart\blindtext[#1]\blindtext@parend\par}
-\ifnum\blind@countyy<\blindtext@numBlindtext\advance\blind@countyy by 1
-\repeat
+\newcount\blindtext@numBlindtext%
+\newcommand{\Blindtext}[1][\value{Blindtext}]{%
+\blind@checklanguage%
+\blindtext@numBlindtext=#1%
+\blind@Blindtext%
+}
+\newcount\blind@countyy%
+\newcommand{\blind@Blindtext}[1][\value{blindtext}]{%
+  \blind@countyy=1 %
+\loop%
+{\blindtext@parstart\blindtext[#1]\blindtext@parend\par}%
+  \ifnum\blind@countyy<\blindtext@numBlindtext\advance\blind@countyy by 1 %
+\repeat%
 }
 \newcommand{\blindtext@parstart}{}   %Text at start of paragraph
 \newcommand{\blindtext@parend}{}     %Text at end   of paragraph
@@ -86,54 +98,55 @@
 \newcount\blind@listitem
 %% ^^A-----------------------------------------------------------
 \newcommand{\blindlist}[1]{
+\blind@checklanguage
 \def\blind@listtype{#1}
 \setcounter{blind@levelcount}{1}
 \blind@list
 }
-\newcommand{\blind@list}[1][5]{
-\setcounter{blindlist}{#1}
+\newcommand{\blind@list}[1][5]{%
+\setcounter{blindlist}{#1}%
 \addtocounter{blindlist@level}{1}%depth of list
-\blind@listitem=1
-\begin{\blind@listtype}
-\blind@items
-\end{\blind@listtype}
-\blind@longfalse
-\blind@optionalfalse
+  \blind@listitem=1 %
+\begin{\blind@listtype}%
+\blind@items%
+\end{\blind@listtype}%
+\blind@longfalse%
+\blind@optionalfalse%
 }
-\newcommand{\blindlistlist}[2][4]{
-\setcounter{blindlistlevel}{#1}
+\newcommand{\blindlistlist}[2][4]{%
+\setcounter{blindlistlevel}{#1}%
 \setcounter{blindlist@level}{0}%deepest reached level
 \setcounter{blind@levelcount}{1}%actual level for printout
-\def\blind@listtype{#2}
-\blind@list
+\def\blind@listtype{#2}%
+\blind@list%
 }
-\newcommand{\blindlistlistoptional}{
-\blind@optionaltrue
-\blindlistlist
+\newcommand{\blindlistlistoptional}{%
+\blind@optionaltrue%
+\blindlistlist%
 }
 \newcommand{\blinditemize}{\blindlist{itemize}}
 \newcommand{\blindenumerate}{\blindlist{enumerate}}
-\newcommand{\Blindlist}[1]{
-\blind@longtrue
-\blindlist{#1}
+\newcommand{\Blindlist}[1]{%
+\blind@longtrue%
+\blindlist{#1}%
 }
 \newcommand{\Blinditemize}{\Blindlist{itemize}}
 \newcommand{\Blindenumerate}{\Blindlist{enumerate}}
-\newcommand{\blindlistoptional}[1]{
-\blind@optionaltrue
-\blindlist{#1}
+\newcommand{\blindlistoptional}[1]{%
+\blind@optionaltrue%
+\blindlist{#1}%
 }
-\newcommand{\Blindlistoptional}[1]{
-\blind@optionaltrue
-\blind@longtrue
-\blindlist{#1}
+\newcommand{\Blindlistoptional}[1]{%
+\blind@optionaltrue%
+\blind@longtrue%
+\blindlist{#1}%
 }
 \newcommand{\blinddescription}{\blindlistoptional{description}}
 \newcommand{\Blinddescription}{\Blindlistoptional{description}}
-\newcounter{listcount}
+\newcounter{blind@listcount}
 \newcounter{blind@levelcount}
 \newcommand{\blind@items}{
-\setcounter{listcount}{1}
+\setcounter{blind@listcount}{1}
 \loop
 \ifblind@optional
     \ifblind@long
@@ -141,21 +154,24 @@
     \else
         \item[\blindtext@count] \blindtext@item
     \fi
-\else%\blind@optionalfalse
+    \else % \blind@optionalfalse
     \ifblind@long
         \item \blindtext@text
     \else
         \item \blindtext@countitem
     \fi
-\fi%\ifblind@optional
-{\loop
-    \ifnum\value{blindlistlevel}>\value{blindlist@level}
-    \addtocounter{blind@levelcount}{1}
-    \blind@list[\value{blindlist}]\relax
-    \addtocounter{blind@levelcount}{-1}
-    \setcounter{listcount}{1}
-\repeat}
-\ifnum\value{listcount}<\value{blindlist}\addtocounter{listcount}{1}
+    \fi % \ifblind@optional
+    {%
+    \loop
+      \ifnum\value{blindlistlevel}>\value{blindlist@level}
+      \addtocounter{blind@levelcount}{1}
+      \blind@list[\value{blindlist}]\relax
+      \addtocounter{blind@levelcount}{-1}
+      \setcounter{blind@listcount}{1}
+    \repeat
+    }%
+\ifnum\value{blind@listcount}<\value{blindlist}
+\addtocounter{blind@listcount}{1}
 \repeat
 }
 %% ^^A-----------------------------------------------------------
@@ -168,7 +184,7 @@
   \blindtext
   \subsection{\blindtext@heading 2 (subsection)}
   \blindtext
-  \subsubsection{ \blindtext@heading 3 (subsubsection)}
+  \subsubsection{\blindtext@heading 3 (subsubsection)}%
   \blindtext
   \paragraph{\blindtext@heading 4 (paragraph)}
   \blindtext
@@ -225,17 +241,22 @@ Kein babel.sty verwendet -> Zufallssprache}}
 \newcommand{\addto}[2]{#2}
 }{}
 \def\blindtext@text{Text}
-\def\blindtext@count{\ifcase\blind@listitem\or
-  First\or Second%...
-    \else Last\blind@listitem=0\fi
-    \global\advance\blind@listitem by 1
+\def\blindtext@count{%
+  \ifcase\blind@listitem\or
+    First\or Second%...
+  \else
+    Last%
+    \blind@listitem=0 %
+  \fi
+  \global\advance\blind@listitem by 1 %
 }%\blindtext@count}
 \def\blindtext@item{itemtext}
 \def\blindtext@countitem{\blindtext@count\ \blindtext@item}
 \def\blindtext@heading{Heading on level\xspace}
 \def\blindtext@list{Lists}
 \def\blindtext@listEx{Example for list\xspace}
-\addto\extrasenglish{
+\def\blindtext@english{}
+\addto\extrasenglish{%
 \def\blindtext@text{
 Hello, here is some text without a meaning. This text should show,
 how a printed text will look like at this place. If you read this
@@ -249,20 +270,24 @@ be written in of the original language. There is no need for a
 special contents, but the length of words should match to the
 language.}%\blindtext@text
 }
-\addto\extrasenglish{
-\def\blindtext@count{\ifcase\value{listcount}\or
-    First\or Second \or Third \or Fourth\or Fivth\or
-    Sixth\or Seventh\or Eighth \or Ninth\or Tenth\or
-    Eleventh\or Twelfth\else Another\fi
-}%\blindtext@count
-\def\blindtext@item{item in a list} %, level~\arabic{blindlist@level}}
-} %\addto\extrasenglish
-\addto\extrasenglish{
-    \def\blindtext@heading{Heading on level\xspace}
-    \def\blindtext@list{Lists}
-    \def\blindtext@listEx{Example for list\xspace}
-} %\addto\extrasenglish
-\addto\extrasgerman{
+\addto\extrasenglish{%
+  \def\blindtext@count{%
+    \ifcase\value{blind@listcount}\or
+      First\or Second \or Third \or Fourth\or Fivth\or
+      Sixth\or Seventh\or Eighth \or Ninth\or Tenth\or
+      Eleventh\or Twelfth%
+    \else Another%
+    \fi
+  }% \blindtext@count
+  \def\blindtext@item{item in a list}%, level~\arabic{blindlist@level}}
+}% \addto\extrasenglish
+\addto\extrasenglish{%
+    \def\blindtext@heading{Heading on level\xspace}%
+    \def\blindtext@list{Lists}%
+    \def\blindtext@listEx{Example for list\xspace}%
+}%\addto\extrasenglish
+\def\blindtext@german{}
+\addto\extrasgerman{%
 \def\blindtext@text{
 Dies hier ist ein Blindtext zum Testen von Textausgaben. Wer
 diesen Text liest, ist selbst schuld. Der Text gibt lediglich den
@@ -279,22 +304,26 @@ sein. Fremdsprachige Texte wie \frqq Lorem ipsum\flqq\ dienen
 nicht dem eigentlichen Zweck, da sie eine
 falsche Anmutung vermitteln.}%\blindtext@text
 }
-\addto\extrasgerman{
-\def\blindtext@count{\ifcase\value{listcount}\or
+\addto\extrasgerman{%
+\def\blindtext@count{
+  \ifcase\value{blind@listcount}\or
     Erster\or Zweiter \or Dritter \or Vierter \or F{\"u}nfter \or
     Sechster \or Siebter\or Achter \or Neunter \or Zehnter\or
-    Elfter \or Zw{\"o}lfter \or Dreizehnter \or Vierzehnter\else
-    Noch ein\fi
+    Elfter \or Zw{\"o}lfter \or Dreizehnter \or Vierzehnter
+    \else
+    Noch ein
+    \fi
 }%\blindtext@count
-\def\blindtext@item{Listenpunkt, Stufe~\arabic{blind@levelcount}}
-}% %\addto\extrasgerman
-\addto\extrasgerman{
-    \def\blindtext@heading{{\"U}berschrift auf Ebene\xspace}
-    \def\blindtext@list{Listen}
-    \def\blindtext@listEx{Beispiel einer Liste\xspace}
-} %\addto\extrasgerman
+\def\blindtext@item{Listenpunkt, Stufe~\arabic{blind@levelcount}}%
+}%\addto\extrasgerman
+\addto\extrasgerman{%
+    \def\blindtext@heading{{\"U}berschrift auf Ebene\xspace}%
+    \def\blindtext@list{Listen}%
+    \def\blindtext@listEx{Beispiel einer Liste\xspace}%
+}%\addto\extrasgerman
 \@ifpackageloaded{german}{\selectlanguage{german}}{}
-\addto\extrasngerman{
+\def\blindtext@ngerman{}
+\addto\extrasngerman{%
 \def\blindtext@text{
 Dies hier ist ein Blindtext zum Testen von Textausgaben. Wer
 diesen Text liest, ist selbst schuld. Der Text gibt lediglich den
@@ -311,22 +340,24 @@ sein. Fremdsprachige Texte wie \frqq Lorem ipsum\flqq\ dienen
 nicht dem eigentlichen Zweck, da sie eine
 falsche Anmutung vermitteln.}%\blindtext@text
 }
-\addto\extrasngerman{
-\def\blindtext@count{\ifcase\value{listcount}\or
+\addto\extrasngerman{%
+\def\blindtext@count{
+    \ifcase\value{blind@listcount}\or
     Erster\or Zweiter \or Dritter \or Vierter \or F{\"u}nfter \or
     Sechster \or Siebter\or Achter \or Neunter \or Zehnter\or
     Elfter \or Zw{\"o}lfter \or Dreizehnter \or Vierzehnter\else
     Noch ein\fi
 }%\blindtext@count
-\def\blindtext@item{Listenpunkt, Stufe~\arabic{blind@levelcount}}
-}% %\addto\extrasgerman
-\addto\extrasngerman{
-    \def\blindtext@heading{{\"U}berschrift auf Ebene\xspace}
-    \def\blindtext@list{Listen}
-    \def\blindtext@listEx{Beispiel einer Liste\xspace}
-} %\addto\extrasngerman
+\def\blindtext@item{Listenpunkt, Stufe~\arabic{blind@levelcount}}%
+}%\addto\extrasgerman
+\addto\extrasngerman{%
+    \def\blindtext@heading{{\"U}berschrift auf Ebene\xspace}%
+    \def\blindtext@list{Listen}%
+    \def\blindtext@listEx{Beispiel einer Liste\xspace}%
+}%\addto\extrasngerman
 \@ifpackageloaded{ngerman}{\selectlanguage{ngerman}}{}
-\addto\extraslatin{
+\def\blindtext@latin{}
+\addto\extraslatin{%
 \def\blindtext@text{
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam
 lobortis facilisis sem. Nullam nec mi et neque pharetra
@@ -342,6 +373,23 @@ Praesent lectus tellus, aliquet aliquam, luctus a, egestas a,
 turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum
 turpis accumsan semper.}%\blindtext@text
 }
+\addto\extraslatin{%
+\def\blindtext@count{
+  \ifcase\value{blind@listcount}\or
+    Primus\or Duo\or Tres\or Quattuor\or Quinque\or
+    Sex\or Septem\or Octo\or Novem\or Decem\or
+    Undecim\or Duodecim
+  \else
+    Nova
+  \fi
+}%\blindtext@count
+\def\blindtext@item{, altum~\arabic{blind@levelcount}}%
+}%\addto\extrasgerman
+\addto\extraslatin{%
+    \def\blindtext@heading{Sectio\xspace}%
+    \def\blindtext@list{Caudex}%
+    \def\blindtext@listEx{Exemplum caudex\xspace}%
+}%\addto\extraslatin
 \let\alotoftext=\blindtext
 \endinput
 %%
-- 
cgit v1.2.3

