diff options
author | Karl Berry <karl@freefriends.org> | 2007-08-24 18:36:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-08-24 18:36:00 +0000 |
commit | 7ee037f358f4abd769821e0d322ad1687ecec0f9 (patch) | |
tree | e929c00d3643c3b0fb9f1b7e9b00019a8e73cd9f /Master/texmf-dist/source/latex/xfor | |
parent | addded1ab23789fbb7f5868ed6b8881f933d44d5 (diff) |
xfor update (21aug07)
git-svn-id: svn://tug.org/texlive/trunk@4798 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/xfor')
-rw-r--r-- | Master/texmf-dist/source/latex/xfor/xfor.dtx | 100 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/xfor/xfor.ins | 26 |
2 files changed, 69 insertions, 57 deletions
diff --git a/Master/texmf-dist/source/latex/xfor/xfor.dtx b/Master/texmf-dist/source/latex/xfor/xfor.dtx index eda8dbe5802..c49c8f2de61 100644 --- a/Master/texmf-dist/source/latex/xfor/xfor.dtx +++ b/Master/texmf-dist/source/latex/xfor/xfor.dtx @@ -1,12 +1,12 @@ %\iffalse -% xfor.dtx generated using makedtx version 0.93b (c) Nicola Talbot +% xfor.dtx generated using makedtx version 0.94b (c) Nicola Talbot % Command line args: % -src "xfor.sty=>xfor.sty" % -doc "manual.tex" % -author "Nicola Talbot" % -dir "source" % xfor -% Created on 2007/8/16 15:55 +% Created on 2007/8/21 17:28 %\fi %\iffalse %<*package> @@ -56,7 +56,7 @@ %\fi %\MakeShortVerb{"} % -% \title{xfor v1.02: Reimplementation of \cs{@for} to allow +% \title{xfor v1.03: Reimplementation of \cs{@for} to allow %premature termination of the loop} % \author{Nicola L.C. Talbot\\[10pt] %School of Computing Sciences\\ @@ -65,7 +65,7 @@ %NR4 7TJ. United Kingdom.\\ %\url{http://theoval.cmp.uea.ac.uk/~nlct/}} % -%\date{16th August 2007} +%\date{21st August 2007} %\maketitle %\tableofcontents % @@ -97,11 +97,11 @@ %On the last iteration, this value %will be \cs{@nil}, and so can be checked using %\begin{verbatim} -%\ifx\@xfor@nextelement\@nnil -%% last iteration -%\else -%% not last iteration -%\fi +% \ifx\@xfor@nextelement\@nnil +% % last iteration +% \else +% % not last iteration +% \fi %\end{verbatim} % %\subsection{Example (ordered insertion)} @@ -124,50 +124,50 @@ %defines the command \cs{insertinto}\marg{new val}\marg{list} %which uses this method: %\begin{verbatim} -%\newcommand{\insertinto}[2]{% -%\def\nlst{}% -%\@for\n:=#2\do{% -%% store new list in \toks@ -%\expandafter\toks@\expandafter{\nlst}% -%% test current value against new value -%\ifnum\n>#1\relax -% \edef\newstuff{\number#1,\n}% -% % end for loop at the end of this iteration -% \@endfortrue -%\else -% \edef\newstuff{\n}% -%\fi -%% append new stuff to new list -%\ifx\nlst\@empty -% \edef\nlst{\newstuff}% -%\else -% \edef\nlst{\the\toks@,\newstuff}% -%\fi -%}% -%% check to see if for loop was prematurely terminated -%\if@endfor -% % loop may have been terminated during final iteration, in -% % which case \@forremainder is empty. -% \ifx\@forremainder\@empty -% % do nothing +% \newcommand{\insertinto}[2]{% +% \def\nlst{}% +% \@for\n:=#2\do{% +% % store new list in \toks@ +% \expandafter\toks@\expandafter{\nlst}% +% % test current value against new value +% \ifnum\n>#1\relax +% \edef\newstuff{\number#1,\n}% +% % end for loop at the end of this iteration +% \@endfortrue % \else -% % loop prematurely ended, append remainder of original list -% % to new list -% \expandafter\toks@\expandafter{\nlst}% -% \edef\nlst{\the\toks@,\@forremainder}% +% \edef\newstuff{\n}% +% \fi +% % append new stuff to new list +% \ifx\nlst\@empty +% \edef\nlst{\newstuff}% +% \else +% \edef\nlst{\the\toks@,\newstuff}% % \fi -%\else -% % wasn't prematurely terminated, so new value hasn't been added -% % add now. -% \expandafter\toks@\expandafter{\nlst}% -% \ifx\nlst\@empty -% \edef\nlst{\number#1}% +% }% +% % check to see if for loop was prematurely terminated +% \if@endfor +% % loop may have been terminated during final iteration, in +% % which case \@forremainder is empty. +% \ifx\@forremainder\@empty +% % do nothing % \else -% \edef\nlst{\the\toks@,\number#1}% +% % loop prematurely ended, append remainder of original list +% % to new list +% \expandafter\toks@\expandafter{\nlst}% +% \edef\nlst{\the\toks@,\@forremainder}% % \fi -%\fi -%\let#2=\nlst -%} +% \else +% % wasn't prematurely terminated, so new value hasn't been added +% % add now. +% \expandafter\toks@\expandafter{\nlst}% +% \ifx\nlst\@empty +% \edef\nlst{\number#1}% +% \else +% \edef\nlst{\the\toks@,\number#1}% +% \fi +% \fi +% \let#2=\nlst +% } %\end{verbatim} %The \cs{insertinto} macro can then be used as follows: %\begin{verbatim} @@ -249,7 +249,7 @@ % Declare package: % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{xfor}[2007/08/16 v1.02 (NLCT)] +\ProvidesPackage{xfor}[2007/08/21 v1.03 (NLCT)] % \end{macrocode} % Define a switch to determine if the for loop should be % terminated: diff --git a/Master/texmf-dist/source/latex/xfor/xfor.ins b/Master/texmf-dist/source/latex/xfor/xfor.ins index 45caba065e3..3269a9fd46d 100644 --- a/Master/texmf-dist/source/latex/xfor/xfor.ins +++ b/Master/texmf-dist/source/latex/xfor/xfor.ins @@ -1,13 +1,25 @@ -% xfor.ins generated using makedtx version 0.93b 2007/8/16 15:55 +% xfor.ins generated using makedtx version 0.94b 2007/8/21 17:28 \input docstrip \preamble -Copyright (C) 2007 Nicola Talbot, all rights reserved. -If you modify this file, you must change its name first. -You are NOT ALLOWED to distribute this file alone. You are NOT -ALLOWED to take money for the distribution or use of either this -file or a changed version, except for a nominal charge for copying -etc. + + xfor.dtx + Copyright 2007 Nicola Talbot + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license of (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `maintained'. + + The Current Maintainer of this work is Nicola Talbot. + + This work consists of the files xfor.dtx and xfor.ins and the derived file xfor.sty. + \endpreamble \askforoverwritefalse |