Re: Customizing @var?

Patrice Dumas <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <Yy7TNWL/[email protected]>
On Tue, Sep 20, 2022 at 04:31:08PM -0700, Raymond Toy wrote:
> Is it possible to customize what @var does (for info files) without
> redefining @var?
> Maxima redefines @var to
> 
> @macro var {expr}
> <\expr\>
> @end macro
> 
> This breaks things like
> 
> @table @var

One possibility could be to use a macro for @item (I have not checked
with TeX):

@macro itemmyvar {expr}
@item <\expr\>
@end macro

@vtable @var
@itemmyvar my item
body
@item another item without < >
body2
@end vtable

@printindex vr

But it is not the same as having an @-command in argument of @vtable
in the resulting index, as the formatted index entry in @printindex
will have < >, which would not have been the case with a @-command as
@vtable argument.

-- 
Pat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.