]> mj.ucw.cz Git - ucwmac.git/commitdiff
\addto generalized and became \prependef and \appendef
authorMartin Mares <mj@ucw.cz>
Tue, 5 Jun 2018 16:48:46 +0000 (18:48 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 5 Jun 2018 16:48:46 +0000 (18:48 +0200)
ucwmac.tex

index db9495463d0bd7cb0996110821d42ae94d5adaa3..6983e6ec9bbb093ffffa0c51582a01e607603413 100644 (file)
@@ -24,8 +24,9 @@
 
 %%% Auxiliary macros %%%
 
-% Append #2 to the definition of #1
-\long\def\addto#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}}
+% Prepend/append #2 to the definition of #1
+\long\def\prependef#1#2{\expandafter\def\expandafter#1\expandafter{#2#1}}
+\long\def\appendef#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}}
 
 %%% Page size and margins %%%