Path: utzoo!attcan!uunet!mcsun!unido!pbinfo!expbinfo!elmar From: elmar@expbinfo.uni-paderborn.de (Elmar Schalueck) Newsgroups: comp.text.tex Subject: Strange result in macros Message-ID: <1991Jan24.095405.8868@uni-paderborn.de> Date: 24 Jan 91 09:54:05 GMT Sender: news@uni-paderborn.de (News Uni-Paderborn) Reply-To: elmar@pbinfo.UUCP (Elmar Schalueck) Organization: Uni-GH Paderborn, Germany Lines: 19 Nntp-Posting-Host: expbinfo % I discovered a beautiful difference in macros depending % on the position of the left braces after the macroname. % Is this a desired effect and how can I make use of it to apply % macros to whole words that are not surrounded by braces? % % Greetings and have some fun with the example below % % Elmar Schal\"{u}ck elmar@uni-paderborn.de % % \documentstyle{article} \begin{document} \long\def\foo#1 {Hurrah #1 Hurrah} \long\def\gnat#1{Yippee #1 Yippee} Now I test \foo{Why} and \gnat{Why not?} and everything's ok. But watch out for the difference to \foo{Me}-too and \gnat{You}-never. \end{document}