X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Fmacros.itexi;h=a00f9c07ffb9f0760351871c17a90b4c36852798;hb=7f9ae4e126b6b0a1ac64b1441712bf59442918d7;hp=2f236b251a954054aa20c23e6478e30230fd9d58;hpb=41e45dd730c075e78065dfa78e5e54be664d905e;p=lilypond.git diff --git a/Documentation/user/macros.itexi b/Documentation/user/macros.itexi index 2f236b251a..a00f9c07ff 100644 --- a/Documentation/user/macros.itexi +++ b/Documentation/user/macros.itexi @@ -6,14 +6,11 @@ version that you are working on. See TRANSLATION for details. @end ignore -@c @value{version} -@macro version -2.11.43 -@end macro +@include version.itexi @c ***** Displaying text ***** -@c we need this since @q{\} doesn't work with makeinfo 4.8 -- +@c we need this since @q{\} doesn't work with makeinfo 4.11 -- @c say @q{@bs{}} instead @macro bs \\ @@ -28,13 +25,16 @@ @quotedblleft{}\TEXT\@quotedblright{} @end macro -@macro warning{TEXT} @ifhtml +@macro warning{TEXT} @cartouche @b{Note:} \TEXT\ @end cartouche +@end macro @end ifhtml + @ifnothtml +@macro warning{TEXT} @quotation @quotation @cartouche @@ -42,8 +42,8 @@ @end cartouche @end quotation @end quotation -@end ifnothtml @end macro +@end ifnothtml @ifnotinfo @macro notation{TEXT} @@ -109,6 +109,11 @@ @end macro +@macro lydoctitle {TEXT} +@emph{\TEXT\} + +@end macro + @macro funindex {TEXT} @findex \TEXT\ @kindex \TEXT\ @@ -118,58 +123,31 @@ @c **** Links and references **** -@c Possibly deprecated; under discussion. -@c usage: @lsr{ancient,Ancient-notation,custodes.ly} -@macro lsr{SECTION,DIR,TEXT} -@ifhtml -@uref{source/input/lsr/lilypond-snippets/\DIR\.html#\TEXT\,@file{\SECTION\/\TEXT\}} -@end ifhtml -@ifnothtml -@file{\SECTION\/\TEXT\} -@end ifnothtml -@end macro - -@c usage: @lsrdir{ancient,Ancient-notation} -@macro lsrdir{SECTION,DIR} -@ifhtml -@uref{source/input/lsr/lilypond-snippets/\DIR\.html,\SECTION\} -@end ifhtml -@ifnothtml -\DIR\ -@end ifnothtml -@end macro - - @c Definitions for references: -@c @internalsref @c @rglos -@c @rprogram -@c @ruser @c @rlearning +@c @ruser +@c @rprogram +@c @rlsr +@c @rinternals +@c all these also have a @...named version, which allows to specify the +@c displayed text for the reference as second argument -@ifhtml -@c ***** HTML ***** +@c ***** HTML + bigpage is a special case (other manual names), all other +@c formats are treated similarly -@ifset bigpage +@ifnottex -@macro internalsref{TEXT} -@vindex \TEXT\ -@ref{\TEXT\,,,lilypond-internals-big-page,Internals Reference} -@end macro +@ifset bigpage @macro rglos{TEXT} @vindex \TEXT\ @ref{\TEXT\,,,music-glossary-big-page,Music Glossary} @end macro -@macro rprogram{TEXT} +@macro rglosnamed{TEXT,DISPLAY} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond-program-big-page,Application Usage} -@end macro - -@macro ruser{TEXT} -@vindex \TEXT\ -@ref{\TEXT\,,,lilypond-big-page,Notation Reference} +@ref{\TEXT\,,\DISPLAY\,music-glossary-big-page,Music Glossary} @end macro @macro rlearning{TEXT} @@ -177,70 +155,62 @@ @ref{\TEXT\,,,lilypond-learning-big-page,Learning Manual} @end macro -@macro rlsr{TEXT} -@ref{\TEXT\,,,lilypond-snippets-big-page,Snippets} +@macro rlearningnamed{TEXT,DISPLAY} +@vindex \TEXT\ +@ref{\TEXT\,,\DISPLAY\,lilypond-learning-big-page,Learning Manual} @end macro -@end ifset - - -@ifclear bigpage - -@macro internalsref{TEXT} +@macro ruser{TEXT} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond-internals,Internals Reference} +@ref{\TEXT\,,,lilypond-big-page,Notation Reference} @end macro -@macro rglos{TEXT} +@macro rusernamed{TEXT,DISPLAY} @vindex \TEXT\ -@ref{\TEXT\,,,music-glossary,Music Glossary} +@ref{\TEXT\,,\DISPLAY\,lilypond-big-page,Notation Reference} @end macro @macro rprogram{TEXT} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond-program,Application Usage} +@ref{\TEXT\,,,lilypond-program-big-page,Application Usage} @end macro -@macro ruser{TEXT} +@macro rprogramnamed{TEXT,DISPLAY} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond,Notation Reference} +@ref{\TEXT\,,\DISPLAY\,lilypond-program-big-page,Application Usage} @end macro -@macro rlearning{TEXT} -@vindex \TEXT\ -@ref{\TEXT\,,,lilypond-learning,Learning Manual} +@macro rlsr{TEXT} +@ref{\TEXT\,,,lilypond-snippets-big-page,Snippets} @end macro -@macro rlsr{TEXT} -@ref{\TEXT\,,,lilypond-snippets,Snippets} +@macro rlsrnamed{TEXT,DISPLAY} +@ref{\TEXT\,,\DISPLAY\,lilypond-snippets-big-page,Snippets} @end macro -@end ifclear +@macro rinternals{TEXT} +@vindex \TEXT\ +@ref{\TEXT\,,,lilypond-internals-big-page,Internals Reference} +@end macro -@end ifhtml +@macro rinternalsnamed{TEXT,DISPLAY} +@vindex \TEXT\ +@ref{\TEXT\,,\DISPLAY\,lilypond-internals-big-page,Internals Reference} +@end macro +@end ifset -@ifdocbook -@c ***** DOCBOOK-XML ***** -@macro internalsref{TEXT} -@vindex \TEXT\ -@ref{\TEXT\,,,lilypond-internals,Internals Reference} -@end macro +@ifclear bigpage @macro rglos{TEXT} @vindex \TEXT\ @ref{\TEXT\,,,music-glossary,Music Glossary} @end macro -@macro rprogram{TEXT} -@vindex \TEXT\ -@ref{\TEXT\,,,lilypond-program,Application Usage} -@end macro - -@macro ruser{TEXT} +@macro rglosnamed{TEXT,DISPLAY} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond,Notation Reference} +@ref{\TEXT\,,\DISPLAY\,music-glossary,Music Glossary} @end macro @macro rlearning{TEXT} @@ -248,24 +218,19 @@ @ref{\TEXT\,,,lilypond-learning,Learning Manual} @end macro -@macro rlsr{TEXT} -@ref{\TEXT\,,,lilypond-snippets,Snippets} +@macro rlearningnamed{TEXT,DISPLAY} +@vindex \TEXT\ +@ref{\TEXT\,,,lilypond-learning,Learning Manual} @end macro -@end ifdocbook - - -@ifinfo -@c **** INFO **** - -@macro internalsref{TEXT} +@macro ruser{TEXT} @vindex \TEXT\ -@inforef{\TEXT\,,lilypond-internals,Internals Reference} +@ref{\TEXT\,,,lilypond,Notation Reference} @end macro -@macro rglos{TEXT} +@macro rusernamed{TEXT,DISPLAY} @vindex \TEXT\ -@inforef{\TEXT\,,music-glossary,Music Glossary} +@ref{\TEXT\,,\DISPLAY\,lilypond,Notation Reference} @end macro @macro rprogram{TEXT} @@ -273,53 +238,88 @@ @ref{\TEXT\,,,lilypond-program,Application Usage} @end macro -@macro ruser{TEXT} +@macro rprogramnamed{TEXT,DISPLAY} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond,Notation Reference} +@ref{\TEXT\,,\DISPLAY\,lilypond-program,Application Usage} @end macro -@macro rlearning{TEXT} +@macro rlsr{TEXT} +@ref{\TEXT\,,,lilypond-snippets,Snippets} +@end macro + +@macro rlsrnamed{TEXT,DISPLAY} +@ref{\TEXT\,,\DISPLAY\,lilypond-snippets,Snippets} +@end macro + +@macro rinternals{TEXT} @vindex \TEXT\ -@ref{\TEXT\,,,lilypond-learning,Learning Manual} +@ref{\TEXT\,,,lilypond-internals,Internals Reference} @end macro -@macro rlsr{TEXT} -@ref{\TEXT\,,,lilypond-snippets,Snippets} +@macro rinternalsnamed{TEXT,DISPLAY} +@vindex \TEXT\ +@ref{\TEXT\,,\DISPLAY\,lilypond-internals,Internals Reference} @end macro -@end ifinfo +@end ifclear + +@end ifnottex + @c **** TEX **** @iftex -@macro internalsref{TEXT} +@macro rglos{TEXT} @vindex \TEXT\ -@code{\TEXT\} +@ref{\TEXT\,,,music-glossary,Music Glossary} @end macro -@macro rglos {TEXT} +@macro rglosnamed{TEXT,DISPLAY} @vindex \TEXT\ -@ref{\TEXT\,,,music-glossary,Music Glossary} +@ref{\TEXT\,,\DISPLAY\,music-glossary,Music Glossary} @end macro -@macro rprogram{TEXT} -program usage manual, @ref{\TEXT\,,,lilypond-program,Application Usage} +@macro rlearning{TEXT} +@ref{\TEXT\,,,lilypond-learning,Learning Manual} +@end macro + +@macro rlearningnamed{TEXT,DISPLAY} +@ref{\TEXT\,,\DISPLAY\,lilypond-learning,Learning Manual} @end macro @macro ruser{TEXT} -notation reference, @ref{\TEXT\,,,lilypond,Notation Reference} +@ref{\TEXT\,,,lilypond,Notation Reference} @end macro -@macro rlearning{TEXT} -learning manual, @ref{\TEXT\,,,lilypond-learning,Learning Manual} +@macro rusernamed{TEXT,DISPLAY} +@ref{\TEXT\,,\DISPLAY\,lilypond,Notation Reference} +@end macro + +@macro rprogram{TEXT} +@ref{\TEXT\,,,lilypond-program,Application Usage} +@end macro + +@macro rprogramnamed{TEXT,DISPLAY} +@ref{\TEXT\,,\DISPLAY\,lilypond-program,Application Usage} @end macro @macro rlsr{TEXT} @ref{\TEXT\,,,lilypond-snippets,Snippets} @end macro -@end iftex +@macro rlsrnamed{TEXT,DISPLAY} +@ref{\TEXT\,,\DISPLAY\,lilypond-snippets,Snippets} +@end macro + +@macro rinternals{TEXT} +@vindex \TEXT\ +@ref{\TEXT\,,,lilypond-internals,Internals Reference} +@end macro +@macro rinternalsnamed{TEXT,DISPLAY} +@vindex \TEXT\ +@ref{\TEXT\,,\DISPLAY\,lilypond-internals,Internals Reference} +@end macro -@c EOF +@end iftex