summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/multiexpand
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-09 00:40:33 +0000
committerKarl Berry <karl@freefriends.org>2013-01-09 00:40:33 +0000
commit213cf08b49d08cde4318dc8fe31f37d3a2153787 (patch)
tree5ae0440a8c8a657cce3707a42167c3dc22167a4f /Master/texmf-dist/tex/latex/multiexpand
parent3fc740c854c4e76d5598f6e6f398334d8de7be1a (diff)
multiexpand (8jan13)
git-svn-id: svn://tug.org/texlive/trunk@28768 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/multiexpand')
-rw-r--r--Master/texmf-dist/tex/latex/multiexpand/multiexpand.sty56
1 files changed, 56 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/multiexpand/multiexpand.sty b/Master/texmf-dist/tex/latex/multiexpand/multiexpand.sty
new file mode 100644
index 00000000000..e69945c3c9f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/multiexpand/multiexpand.sty
@@ -0,0 +1,56 @@
+%%
+%% This is file `multiexpand.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% multiexpand.dtx (with options: `package')
+%% ----------------------------------------------------------------
+%% multiexpand --- trigger multiple expansions in one expansion step.
+%% E-mail: blflatex@gmail.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% See http://www.latex-project.org/lppl.txt
+%% ----------------------------------------------------------------
+%%
+\begingroup
+\catcode`\@=11\relax%
+\gdef\ME@use#1{#1}%
+\gdef\MultiExpand{\romannumeral\multiexpand}%
+\gdef\MultiExpandAfter{\romannumeral\multiexpandafter}%
+\xdef\ME@endroman#1{0\noexpand\expandafter\space}%
+\xdef\ME@endroman@after#1{0\noexpand\expandafter\space\noexpand\expandafter}%
+\long\gdef\multiexpand#1{%
+ \ifnum#1<2 \expandafter \ME@endroman%
+ \else \expandafter \ME@use%
+ \fi%
+ {\expandafter \multiexpand \expandafter {%
+ \number\numexpr#1-1\expandafter}}%
+}%
+\long\gdef\multiexpandafter#1{%
+ \ifnum#1<2 \expandafter\ME@endroman@after%
+ \else \expandafter \ME@use%
+ \fi%
+ {\expandafter \multiexpandafter \expandafter {%
+ \number\numexpr#1-1\expandafter}\expandafter}%
+}%
+\endgroup
+%%
+%% Copyright (C) 2011-2013 by Bruno Le Floch <blflatex@gmail.com>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License (LPPL), either
+%% version 1.3c of this license or (at your option) any later
+%% version. The latest version of this license is in the file:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status) by
+%% Bruno Le Floch.
+%%
+%% This work consists of the file multiexpand.dtx
+%% and the derived files multiexpand.ins,
+%% multiexpand.pdf and
+%% multiexpand.sty.
+%%
+%%
+%% End of file `multiexpand.sty'.