On Mon, Jul 23, 2012 at 06:00:23PM +0000, Karl Berry wrote:
> 
> Anyway, I gather the practical problem is solved.  Glad for that.

Yet the subject is not completly closed, as the end of line expansions
are different:

> \input texinfo
> @setfilename mac-argnl.info
> 
> @macro mymac {a, b}
> \a\ + \b\
> @end macro
> 
> @example
> Hello @mymac{uu,
> vv}.
> Hello @mymac{x
> x,
> yy}.
> @end example
> 
> @bye

Leads to, in dvi:

Hello uu +
vv
.
Hello x
x +
yy
.

And with makeinfo in C (or texi2any):

     Hello uu + vv.
     Hello x
     x + yy.

Oddly, if not in @example, the results are the same

  Hello uu + vv. Hello x x + yy.

This means that TeX does something odd with the newline after yy, as 
a plain

Hello x
x +
yy
.

leads to 

  Hello x x + yy .

So the newline after the yy appearing when expanding in @example is
eaten when expanding outside of @example.


That being said, this is a different subject, and is also covered in the
manual by:

  * In general, the interaction of newlines in the macro definitions and
    invocations depends on the precise commands and context, despite the 
    previous statements.

-- 
Pat

Reply via email to