summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/forarray/forarray-test.tex
blob: be5823d386738507d9bb80ba632fd5b2ce7a6fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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'.