]> mj.ucw.cz Git - ucwmac.git/commitdiff
Added \sdef and \slet (inspired by OPmac)
authorMartin Mares <mj@ucw.cz>
Fri, 22 Jun 2018 09:23:20 +0000 (11:23 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 22 Jun 2018 09:23:20 +0000 (11:23 +0200)
ucwmac.tex

index d4b4e3d60c93c448f34053da0dea477ed63a1b0e..ea292d730e5534abcf988e2fa8cd6171d571a56b 100644 (file)
 \long\def\prependef#1#2{\expandafter\def\expandafter#1\expandafter{#2#1}}
 \long\def\appendef#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}}
 
+% Variants of \def and \let, where the control sequence name is given as a string
+\def\sdef#1{\expandafter\def\csname#1\endcsname}
+\def\slet#1#2{\expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname}
+
 \def\ucwwarn#1{\immediate\write16{*** Warning: #1 ***}}
 
 %%% Page size and margins %%%