On Wed, Mar 26, 2025 at 10:13:39PM +0100, Patrice Dumas wrote:
> Hello,
> 
> Currently in texi2any there is no expansion of alias, value, macro on
> @clickstyle line.  I think that it would be better if there was, such
> that it is possible to use consistently those commands substitution in a
> document.  It would also be more similar to Texinfo TeX.  Not exactly
> the same, as unless I missed something, Texinfo TeX can also substitute
> when expanding @click, which is not what I propose.  It would also be
> more similar to @table and @itemize, though I do not think that it is
> important.
> 
> Any opposition?

It is not completely clear from your message what the current behaviour
is and how texinfo.tex and texi2any differ.  It would be more clear with
examples of input and how the proposed change affects what is done with
these examples.

One major problem with expansion on the @clickstyle line would be the
treatment of newlines in the expansion.  In texi2any, I expect that
newlines would terminate the @clickstyle line:

@macro mac {}
@result
next line
@end macro

Then "@clickstyle @mac" would expand to

@clickstyle @result
next line

This is unlikely to be what happens with texinfo.tex and I would not
be surprised if it led to an error.

If, as you say, texinfo.tex expands the argument to @clickstyle at
a later stage, when @click{} appears rather than on the @clickstyle
line itself, that would seem like a pretty major difference from texi2any.
We should check that any supported use of macros with @clickstyle works
correctly with both processors.

Reply via email to