Hello Not a good example obviously - the macros are surrounded by braces in the definition only because they are in an \hbox there. But the braces are certainly needed in *usage*: \overstrike{b}{p} (to give a rough impression of a thorn). But if you wanted a simple macro, say one that reversed two arguments, you could have e.g.
\def\swap#1#2{#2#1} with no extra braces aside from those needed to open and close the definition. You would still need them in *usage*, of course. But we're rather far from the original question by now! I hope the fake italics are now working, however he is achieving them. Best John On Wed, 5 Dec 2018 at 15:58, Arthur Reutenauer < arthur.reutena...@normalesup.org> wrote: > On Wed, Dec 05, 2018 at 02:47:26PM +0000, John Was wrote: > > Ah, another quirk of LaTeX. > > Of TeX. As you can see in your own example: > > > \def\overstrike#1#2{\setbox0=\hbox{#1}\setbox1=\hbox{#2}\copy0 > > \kern -0.5\wd0 \kern -0.5\wd1 \copy1 \kern -0.5\wd1 \kern 0.5\wd0} > > the arguments are surrounded by curly braces in the macro definition. > With the definition you wrote: > > >>> \def\Textit#1{{\italictrue \textit #1}} > > \textit would use only the first token of #1 at the end of the > definition. This has nothing to do with LaTeX macros or syntax. > > Best, > > Arthur > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex >
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex