> From: Graham Percival <[EMAIL PROTECTED]>
> Date: Thu, 18 May 2006 21:20:10 -0700
> Cc: [email protected]
> 
> > 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?


_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo
[email protected]
http://lists.gnu.org/mailman/listinfo/help-texinfo

Reply via email to