help-texinfo
[Top][All Lists]
Advanced

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

Re: @defun and @defvr in the "same" block?


From: Gavin Smith
Subject: Re: @defun and @defvr in the "same" block?
Date: Thu, 15 Dec 2022 21:17:41 +0000

On Tue, Nov 22, 2022 at 09:56:42PM +0000, Gavin Smith wrote:
> Interesting to see the Scribe document - I don't think I've seen one
> before.
> 
> I think that @deffn and @defvrx etc. could be mixed, although
> the @def* commands have long been an area where changes could be
> made to be more general.  See the TODO file in the git repository.
> If we had some way of explicitly specifying the index that a @def*
> command would use, then this would solve this problem.

I've commited a change for an experimental feature to allow this.  This
is in texinfo.tex version 2022-12-15.20 (in git).

Example code:

    \input texinfo
    
    @defcodeindex xy
    
    
    @defun Foo (bar)@useindex{xy}
    foobar
    @end defun
    
    @printindex xy
    
    @bye

This puts the index entry in the 'xy' index rather than the
'fn' index.

This has not been implemented in texi2any at all and the syntax, name
of the @useindex command, etc. could all change, or the feature might
not be implemented at all if there is no use for it.  Please experiment
and report what would be useful.




reply via email to

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