summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/forarray/forarray-test.tex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-04 10:14:39 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-04 10:14:39 +0000
commitcdbc5d3bd4d89338a033d47d1368e8e30d273544 (patch)
tree962744c665dea081ac22477de024ae9373870569 /Master/texmf-dist/doc/latex/forarray/forarray-test.tex
parent963d78b0d54fe82f96c590fe5302c1faf6289cce (diff)
new forarray package
git-svn-id: svn://tug.org/texlive/trunk@9221 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/forarray/forarray-test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/forarray/forarray-test.tex140
1 files changed, 140 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/forarray/forarray-test.tex b/Master/texmf-dist/doc/latex/forarray/forarray-test.tex
new file mode 100644
index 00000000000..be5823d3867
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/forarray/forarray-test.tex
@@ -0,0 +1,140 @@
+%%
+%% This is file `./forarray-test.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ./forarray.dtx (with options: `test')
+%%
+%% The file 'forarray.dtx' was generated with the shell script
+%% 'forarray' from the master file 'forarray.dtm'.
+%%
+%% COPYRIGHT NOTICE:
+%%
+%% This file is part of the package 'forarray'.
+%%
+%% The package 'forarray' is (c) 2008 by Christian Schröppel. It may be
+%% distributed and/or modified under the conditions of the LaTeX
+%% Project Public License (LPPL), version 1.3c. This licence allows you
+%% to distribute unmodified copies of the package, as long as you
+%% include all components of the package in your distribution. It also
+%% allows modification of the package under certain conditions. Please
+%% read the licence if you intend to modify any of the contents of this
+%% package.
+%%
+%% If any later version of the LPPL replaces this version, the package
+%% may be distributed and/or modified under the conditions of the
+%% current version of the LPPL at that time. The latest version of the
+%% LPPL is available at http://www.latex-project.org/lppl.txt.
+%%
+%% The Author of the package is Christian Schröppel. You can contact
+%% the author at 'christian@schroeppel.com'.
+%%
+%% This package has the LPPL maintenance status "maintained". The
+%% Current Maintainer is Christian Schröppel.
+%%
+%% The package 'forarray' consists of the master file 'forarray.dtm',
+%% the file 'README.txt', and the derived files 'forarray.dtx',
+%% 'forarray.sty', 'forarray.pdf', 'forarray-test.tex', and
+%% 'forarray-test.pdf'.
+%%
+%% The installation script 'forarray' and the documentation style file
+%% 'forarray.dts' are not part of the package 'forarray'. Please note,
+%% however, that the provisions in the section "No warranty" of the
+%% LaTeX Project Public License (LPPL), version 1.3c, exempting the
+%% author and other parties from liability with regard to the work,
+%% apply to the contents of the package as well as to these files.
+%%
+\documentclass[10pt,a4paper]{article}
+\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[margin=2cm]{geometry}
+\usepackage[dvips, pdfborder={0 0 0}, pdfstartview={FitH},
+ pdfpagelayout={OneColumn}, bookmarks=false, pdfnewwindow,
+ unicode=true]{hyperref}
+\urlstyle{same}
+\usepackage{examplep}
+\usepackage{forarray}
+\author
+ {
+ Christian Schr\"{o}ppel%
+ \footnote%
+ {
+ Please send any comments or suggestions to %
+ \protect\href{mailto:christian@schroeppel.com}%
+{\mbox{\fontfamily{cmss}\selectfont christian@schroeppel.com}}.%
+ }
+ }
+\title
+ {
+ Test page for the %
+ {\fontfamily{cmss}\selectfont forarray} %
+ package\\ [.5ex]\Large Version 1.01 (2008/06/20)
+ }
+\def\ShowExample{
+ \PexaShowBoth{
+ yalign=b,
+ allowbreak=yes,
+ srcstyle=leftnumcol,
+ }
+ }
+\arrayrulewidth=0pt
+\begin{document}
+\errorcontextlines=20\relax
+\maketitle
+\thispagestyle{empty}
+\small
+\section{Test of \texttt{ForEach} (Simple List)}
+\begin{WBoth}
+\begin{itemize}
+\ForEach{,}
+ {\item Item No.\ %
+ \the\thislevelcount\ is:
+ ``\thislevelitem''\\{\footnotesize
+ \meaning\thislevelitem}}
+ {
+ {Hello, World!}, Sec{ond},
+ {Thi}rd,{\bf Last} item%
+ }
+\end{itemize}
+\end{WBoth}
+\ShowExample
+\section{Test of \texttt{ForEach} (Nested)}
+\begin{WBoth}
+\begin{itemize}
+\ForEach{;}
+ {\item[\the\thislevelcount)]
+ \raggedright\thislevelitem
+ \begin{itemize}
+ \ForEachX{,}
+ {\item Item No.\ %
+ \the\thislevelcount\ %
+ is: \thislevelitem}
+ {\thislevelitem}
+ \end{itemize}}
+ {$\alpha$,$\beta$,$\gamma$;
+ {\Large A Large Item},
+ Transparency \it test,
+ Ends \rm here.}
+\end{itemize}
+\end{WBoth}
+\ShowExample
+\section{Test of \texttt{ForArray}}
+\makeatletter
+\begin{WBoth}
+\parindent=0pt
+\def\MyArray{\ForArray(3){;,}{*}{|}}
+\MyArray
+ {*\par\vskip 3ex|\parbox{8em}{*}}
+ {
+ A,B,C;
+ \textit{A nested array:}\par
+ \MyArray{[*]\par|(*)}{1,2;3,4},b,c;
+ $\alpha$,$\beta$,$\gamma$
+ }
+\end{WBoth}
+\ShowExample
+\end{document}
+%%
+%%
+%% End of file `./forarray-test.tex'.