help-texinfo
[Top][All Lists]
Advanced

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

Re: Customizing @var?


From: Patrice Dumas
Subject: Re: Customizing @var?
Date: Sat, 24 Sep 2022 11:51:49 +0200

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



reply via email to

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