summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-19 22:27:52 +0000
committerKarl Berry <karl@freefriends.org>2011-10-19 22:27:52 +0000
commit19492a456e1fc5b19603e0d9b96cf10fb5195b52 (patch)
tree831b4f16fc9b665151505e846658e47d536d68cc /Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex
parent35f1ce3dcdb68333a18ffee104162b49936c4c26 (diff)
storecmd (19oct11)
git-svn-id: svn://tug.org/texlive/trunk@24331 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex b/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex
index c1325c8d9f6..d7f0afc9688 100644
--- a/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex
+++ b/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex
@@ -11,14 +11,16 @@
% \def\mycommands{}
\usepackage[
- storerenew=false,storecmd=mycommands,storefile=mycommands
+ storerenew=false,storecmd=mycommands,storefile=mycommands,
]{storecmd}
\defsavecmd\cmda#1#2{xxx#1#2}
\globalcmd\defsavecmd\cmdb#1#2{xxx#1#2}
-\globalcmd\newsavecmd\cmdc[2]{xxx#1#2}
+\globalcmd\newsavecmd*\cmdc[2]{xxx#1#2}
\globalcmd\newsavecmd\cmdd[2][yy]{xxx#1#2}
\protectedcmd\globalcmd\renewsavecmd*\cmda[2][zz]{\def\y##1{##1xxx}}
+\protectedcmd\newsavecmd\cmde[2](1\@nil 2\@mil){xxx#1#2}
+\newsavecmd\cmdf[9][yy](3\@nil 9\@mil){xxx#1#2#3...#9}
% Try \show\mycommands or see file 'mycommands.tex'.