From 107aecaf98b1c4e3cea02295ffaf7d2479fe991b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 22 Jun 2018 11:23:20 +0200 Subject: [PATCH] Added \sdef and \slet (inspired by OPmac) --- ucwmac.tex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ucwmac.tex b/ucwmac.tex index d4b4e3d..ea292d7 100644 --- a/ucwmac.tex +++ b/ucwmac.tex @@ -35,6 +35,10 @@ \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 %%% -- 2.39.2