X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Fmacros.itexi;h=9dbf8a8ff3fb2406a08b446ec1ade52799f17a87;hb=b97565a9af1c13369ac7e7e9ea80c2638dbc0e51;hp=af53b682cffc283783acd3ad0af27c1bd8f0ef35;hpb=7b266127a82295c12b76a979da839dc71e741dcd;p=lilypond.git diff --git a/Documentation/user/macros.itexi b/Documentation/user/macros.itexi index af53b682cf..9dbf8a8ff3 100644 --- a/Documentation/user/macros.itexi +++ b/Documentation/user/macros.itexi @@ -329,55 +329,73 @@ @iftex +@c All commands below should work in the middle of the line; +@c we thus must not use @vindex directly since it works only if placed +@c on a line of its own. To overcome this problem, we define a +@c replacement macro using the internal definition of @vindex which +@c delimits arguments in the standard way (i.e., with braces). + +@tex +\gdef\lilyvindex#1{\doind{vr}{\code #1}\ignorespaces} +@end tex + @macro rglos{TEXT} -@vindex \TEXT\ +@lilyvindex{\TEXT\} @ref{\TEXT\,,,music-glossary,Music Glossary} @end macro @macro rglosnamed{TEXT,DISPLAY} -@vindex \TEXT\ +@lilyvindex{\TEXT\} @ref{\TEXT\,,\DISPLAY\,music-glossary,Music Glossary} @end macro @macro rlearning{TEXT} +@lilyvindex{\TEXT\} @ref{\TEXT\,,,lilypond-learning,Learning Manual} @end macro @macro rlearningnamed{TEXT,DISPLAY} +@lilyvindex{\TEXT\} @ref{\TEXT\,,\DISPLAY\,lilypond-learning,Learning Manual} @end macro @macro ruser{TEXT} +@lilyvindex{\TEXT\} @ref{\TEXT\,,,lilypond,Notation Reference} @end macro @macro rusernamed{TEXT,DISPLAY} +@lilyvindex{\TEXT\} @ref{\TEXT\,,\DISPLAY\,lilypond,Notation Reference} @end macro @macro rprogram{TEXT} +@lilyvindex{\TEXT\} @ref{\TEXT\,,,lilypond-program,Application Usage} @end macro @macro rprogramnamed{TEXT,DISPLAY} +@lilyvindex{\TEXT\} @ref{\TEXT\,,\DISPLAY\,lilypond-program,Application Usage} @end macro @macro rlsr{TEXT} +@lilyvindex{\TEXT\} @ref{\TEXT\,,,lilypond-snippets,Snippets} @end macro @macro rlsrnamed{TEXT,DISPLAY} +@lilyvindex{\TEXT\} @ref{\TEXT\,,\DISPLAY\,lilypond-snippets,Snippets} @end macro @macro rinternals{TEXT} -@vindex \TEXT\ +@lilyvindex{\TEXT\} @ref{\TEXT\,,,lilypond-internals,Internals Reference} @end macro @macro rinternalsnamed{TEXT,DISPLAY} -@vindex \TEXT\ +@lilyvindex{\TEXT\} @ref{\TEXT\,,\DISPLAY\,lilypond-internals,Internals Reference} @end macro