diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-18 22:27:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-18 22:27:52 +0000 |
commit | 9034d579ec475d9282ef5566f4175debd5cfa818 (patch) | |
tree | 62a63a3f1539da20963b27fa0f0dca2d8fd431c4 /Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex | |
parent | 86a5f1787b71ce0d2d78ec9cc32fe01f4b97d3ee (diff) |
new latex package storecmd (18oct11)
git-svn-id: svn://tug.org/texlive/trunk@24317 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.tex | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex b/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex new file mode 100644 index 00000000000..c1325c8d9f6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/storecmd/storecmd-example.tex @@ -0,0 +1,29 @@ +\documentclass{article} +% Container commands are also accepted as package options, +% but in this case 'catoptions' must be loaded before +% \usepackage{storecmd}. +% Eg, +% \usepackage{catoptions} +% \usepackage[storecmd=\mycommands]{storecmd} +% +% Uncomment the next line to test what happens when +% an existing command is being refilled: +% \def\mycommands{} + +\usepackage[ + 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\cmdd[2][yy]{xxx#1#2} +\protectedcmd\globalcmd\renewsavecmd*\cmda[2][zz]{\def\y##1{##1xxx}} + +% Try \show\mycommands or see file 'mycommands.tex'. + +\begin{document} + +Blackberry lily. + +\end{document} |