On Thu, Oct 20, 2022 at 10:44:09PM +0200, Patrice Dumas wrote:
> On Thu, Oct 20, 2022 at 05:34:06PM +0100, Gavin Smith wrote:
> >
> > I don't see any reason why @w shouldn't contain anything that
> > can be output inside a paragraph, except maybe for @footnote.
>
> What about @verb? I have no idea what @verb inside @w does, but I think
> that it would be better not to worry about this type of construct and
> instead warn. It would also be in line with the manual
>
> It is not reliable to use '@verb' inside other Texinfo constructs.
> In particular, it does not work to use '@verb' in anything related to
> cross-referencing, such as section titles or figure captions.
>
> It is likely that \verb in \hbox breaks in LaTeX and I wouldn't be
> surprised if it did not work in TeX either.
Yes you are right, it doesn't work in TeX. The definition relies on
changing the catcodes of { and } and this won't work if they are inside
the argument to @w.