%% %% 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'.