2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
11
Task/String-prepend/PlainTeX/string-prepend-1.tex
Normal file
11
Task/String-prepend/PlainTeX/string-prepend-1.tex
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
\def\prepend#1#2{% #1=string #2=macro containing a string
|
||||
\def\tempstring{#1}%
|
||||
\expandafter\expandafter\expandafter
|
||||
\def\expandafter\expandafter\expandafter
|
||||
#2\expandafter\expandafter\expandafter
|
||||
{\expandafter\tempstring#2}%
|
||||
}
|
||||
\def\mystring{world!}
|
||||
\prepend{Hello }\mystring
|
||||
Result : \mystring
|
||||
\bye
|
||||
Loading…
Add table
Add a link
Reference in a new issue