summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-04 00:12:30 +0000
committerKarl Berry <karl@freefriends.org>2015-03-04 00:12:30 +0000
commit54e0055672245bb7a9d7875052b7c2b47038ba76 (patch)
treea16d0031f6073e6a485013223b01862ce9b0e702 /Master/texmf-dist/doc
parentd34e62f6c5fec68a9b3cb118a1d0bfcee6302726 (diff)
multiexpand (3mar15)
git-svn-id: svn://tug.org/texlive/trunk@36427 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/multiexpand/README28
-rw-r--r--Master/texmf-dist/doc/latex/multiexpand/multiexpand.pdfbin284328 -> 375421 bytes
2 files changed, 10 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/multiexpand/README b/Master/texmf-dist/doc/latex/multiexpand/README
index 062ceda37ba..160664a37ee 100644
--- a/Master/texmf-dist/doc/latex/multiexpand/README
+++ b/Master/texmf-dist/doc/latex/multiexpand/README
@@ -5,35 +5,27 @@ Variations on the `\expandafter` TeX primitive
See http://www.latex-project.org/lppl.txt
Every TeX programmer knows `\expandafter`, and how messy it can become
-when trying to expand several times a very deeply hidden token. For
+when trying to expand several times a very deeply hidden token. For
example, say we want to expand `\C` four times before `\A` and `\B` in
`\A\B\C`. The traditional approach would be to insert 15 `\expandafter`
-before `\A` and the same number before `\B`. This package allows the two
-simpler codes
+before `\A` and the same number before `\B`. With this package one can
+do either of the following
\expandafter\A\expandafter\B\romannumeral\multiexpand{4}\C
-
-or
-
\expandafter\A\romannumeral\multiexpandafter{4}\B\C
-In one step of expansion (triggered by the `\expandafter`'s), the
-sequence `\romannumeral\multiexpand{4}` expands the following token 4
-times, whereas `\romannumeral\multiexpandafter{4}` expands the token
-after that 4 times.
-
-The code behaves with braces as `\expandafter` would. Another example is
+In one step of expansion (triggered by the `\expandafter`'s),
+`\romannumeral\multiexpand{4}` expands the following token 4 times,
+whereas `\romannumeral\multiexpandafter{4}` expands the token after
+that 4 times. For more complicated cases, use `\MultiExpandAfter`:
\MultiExpandAfter{2}\a\MultiExpandAfter{3}{%
- \MultiExpandAfter{10}\b\MultiExpandAfter{10}\c\d},
+ \MultiExpandAfter{10}\b\MultiExpandAfter{10}\c\d}
-which expands `\d` 10 times, then `\c` 8 times, then `\b` once.
-The whole process will only take two steps of expansion.
+expands `\d` 10 times, then `\c` 8 times, then `\b` once.
+The whole process only takes two steps of expansion.
The package can be built from the file `multiexpand.dtx' by running
pdflatex multiexpand.dtx
pdflatex multiexpand.dtx
- pdflatex multiexpand-example.tex
-
-The last step is optional: it runs a series of tests.
diff --git a/Master/texmf-dist/doc/latex/multiexpand/multiexpand.pdf b/Master/texmf-dist/doc/latex/multiexpand/multiexpand.pdf
index b6b2599f27a..9a87dcd6da0 100644
--- a/Master/texmf-dist/doc/latex/multiexpand/multiexpand.pdf
+++ b/Master/texmf-dist/doc/latex/multiexpand/multiexpand.pdf
Binary files differ