bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @verb in linecommand call does not work in Texinfo TeX


From: Patrice Dumas
Subject: Re: @verb in linecommand call does not work in Texinfo TeX
Date: Thu, 20 Jul 2023 11:56:50 +0200

On Sun, Jul 16, 2023 at 11:37:54PM +0100, Gavin Smith wrote:
> 
> No, it will not work:
> 
>    It is not reliable to use ‘@verb’ inside other Texinfo constructs.

Ok.  I finally did not do anything special for @verb in linemacro calls,
it is handled as any other command, so for instance a closing brace
within @verb is taken into account.  That way it is more similar to
macro defined commands calls.

I also did not do anything special for linemacro or macro defined
commands calls in macro and linemacro calls, but, in general, the braces
should match, so it should work as intended.

macro and linemacro call parsing is therefore quite similar, except for
two differences, first the obvious difference that macro use comma
inside of main brace to delimit arguments and linemacro uses spaces
outside of matching braces to delimit arguments and end of line to
terminate the call. And second, in macro call @ is not considered
special, while there is minimal @-commands parsing in linemacro calls,
the name of the command is protected by @, and, for Texinfo base
language brace commands (not for user defined macros), spaces before
the opening brace do not separate arguments.

So, for example the } following @ is protected in

@mylinemacro { @} }

But not in

@mymacro { @} }

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]