help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] command index and unified index


From: Eli Zaretskii
Subject: Re: [help-texinfo] command index and unified index
Date: Fri, 19 May 2006 14:36:25 +0300

> From: Graham Percival <address@hidden>
> Date: Thu, 18 May 2006 21:20:10 -0700
> Cc: address@hidden
> 
> > I hate to say it, but you might even be able to do that with a macro, so
> > you only have the one command in the source ...
> 
> Hmm, there are two problems with this:
> 1.  (minor)  Macros use {}, whereas the normal @index entries don't.
> 2.  (major)  We need to write @macroname{\\command} to get \command in 
> the index.

As a special case, macros with a single argument lift these
limitations.  From the Texinfo manual:

      If the macro is defined to take a single argument, and is invoked
    without any braces, the entire rest of the line after the macro name is
    supplied as the argument.  For example:

         @macro bar {p}
         Twice: \p\ & \p\.
         @end macro
         @bar aah

    produces:

         Twice: aah & aah.

This is precisely your case, right?




reply via email to

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