bug-texinfo
[Top][All Lists]
Advanced

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

Re: backslashes, macros, indexes, texinfo


From: Werner LEMBERG
Subject: Re: backslashes, macros, indexes, texinfo
Date: Tue, 02 Jun 2015 06:03:50 +0200 (CEST)

> @macro funindex {TEXT}
> @findex \TEXT\
> @kindex \TEXT\
> @c
> @end macro
> @funindex \relative
> @funindex relative
>
> [...]

Thanks for your analysis.

> 1) In the (unlikely but happy) event that the \foo index entries are
>    paired with foo entries, I think you could move the \ into the
>    macro definition.  In what I've tried, this works reliably across
>    all the above implementations.  As in:
>
> @macro funindexbs {TEXT}
> @findex \\\TEXT\
> @kindex \\\TEXT\
> @findex \TEXT\
> @kindex \TEXT\
> @c
> @end macro
> @funindexbs relative

At least for lilypond, this looks like a good solution.


    Werner



reply via email to

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