]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/macros.itexi
Remove unused (and semi-broken) documentation macro.
[lilypond.git] / Documentation / user / macros.itexi
index eef33e29cc0553dd31bce7c934230c624411b37c..32536c3cd5d5c1b1dea9dc6b9a0df809ed4614ab 100644 (file)
-@c -*-texinfo-*-
+@c -*- coding: latin-1; mode: texinfo; -*-
 
-@c Only reference in HTML.
-@macro htmlref {NAME}
+@c **** all formats ****
+
+@macro refbugs
+@noindent
+@subsubheading Bugs
+
+@end macro
+
+@macro moreinfo
+@subheading More information
+
+@end macro
+
+@macro seealso
+@noindent
+@subsubheading See also
+
+@end macro
+
+@macro refcommands
+@noindent
+@subsubheading Predefined commands
+
+@end macro
+
+@macro context{NAME}
+@vindex \NAME\
+@code{\NAME\}@c should use internalsref
+@end macro
+
+@macro refcommand{WHAT}
+@vindex \WHAT\
+@code{\WHAT\}
+@end macro
+
+@macro commonprop
+@noindent
+@subsubheading Commonly tweaked properties
+
+@end macro
+
+@macro funindex {WORD}
+@findex \WORD\
+@kindex \WORD\
+@end macro
+
+
+
+@c  *** Macros with variable output ***
+
+@c usage: @lsr{ancient,custodes.ly}
+@macro lsr{DIR,NAME}
 @ifhtml
-@ref{\NAME\}@c
+  @uref{source/input/lsr/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
 @end ifhtml
 @ifnothtml
-\NAME\@c
+  @file{\DIR\/\NAME\}
 @end ifnothtml
 @end macro
 
-
-
-
-@c Reference GLOSsary
-@macro rglos {NAME}
+@macro lsrdir{DIR}
 @ifhtml
-@c ugh: @ref assumes that external refs are split documents too
-@uref{../music-glossary.html#\NAME\,\NAME\}@c
+  @uref{source/input/lsr/\DIR\/collated-files.html,@file{\DIR\}}
 @end ifhtml
 @ifnothtml
-\NAME\@c
+  @file{\DIR\}
 @end ifnothtml
 @end macro
 
 
-@ifnottex
-@macro texisharp {word}
-#
-@end macro
-@end ifnottex
 
+
+@macro arrow{}
 @iftex
-@macro texisharp {word}
-@tex
-$\\sharp$%
-@end tex
-@end macro
+@tex $\\Rightarrow$ @end tex@c
 @end iftex
+@ifhtml
+@html
+→
+@end html
+@end ifhtml
+@ifinfo
+-->
+@end ifinfo
+@end macro
 
-@ifnottex
-@macro texiflat {word}
-b
+
+@c we need this since @q{\} doesn't work with makeinfo 4.8 --
+@c say @q{@value{backslash}} instead
+@set backslash \
+
+
+@ifhtml
+@c ***** HTML *****
+
+@c makeinfo-4.7 encodes html names, which means that nodes that
+@c contain nonalphanum characters will be broken links on the website.
+@c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
+@c @inforef{} adds ``See'' to the sentence, which is annoying, but
+@c better than a broken link.
+@c @inforef{\NAME\,,lilypond-internals}@c
+@c using @ref without punctuation is OK without for formats other than info
+
+@ifset bigpage
+
+@macro internalsref{NAME}
+@vindex \NAME\
+@ref{\NAME\,,,lilypond-internals-big-page}
 @end macro
-@end ifnottex
 
-@iftex
-@macro texiflat {word}
-@tex
-$\\flat$%
-@end tex
+@macro rglos{NAME}
+@vindex \NAME\
+@ref{\NAME\,,,music-glossary-big-page}
 @end macro
-@end iftex
 
+@end ifset
 
 
-@iftex
-@macro separate 
-@c I want some space over here,  not silly characters.
-@tex
-@end tex
+@ifclear bigpage
+
+@c annoying parentheses stripped by add-html-footer.py
+@macro internalsref{NAME}
+@vindex \NAME\
+@ref{\NAME\,,,lilypond-internals}
 @end macro
-@end iftex
 
-@c \heartsf was supposed to be filled?
+@c annoying parentheses stripped by add-html-footer.py
+@macro rglos{NAME}
+@vindex \NAME\
+@ref{\NAME\,,,music-glossary}
+@end macro
 
-@c center*** is broken?
+@end ifclear
 
-@ifinfo
-@macro separate
 
-@quotation
-@end quotation
+@c usage: @inputfileref{input@/regression,FILE@/-NAME.ly}
+@macro inputfileref{DIR,NAME}
+@uref{source/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
 @end macro
-@end ifinfo
 
-@ifhtml
-@macro separate
+@c to get decent quotes in `foo'
+@macro q{TEXT}
 @html
-<p></p><br><br>
+&lsquo;\TEXT\&rsquo;
 @end html
 @end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+@html
+&ldquo;\TEXT\&rdquo;
+@end html
+@end macro
+
 @end ifhtml
 
 
-@c dup?
-@ifhtml
+@ifdocbook
+@c ***** DOCBOOK-XML *****
+
 @macro internalsref{NAME}
-@uref{../lilypond-internals/\NAME\.html,\NAME\}
-@cindex \NAME\
+@vindex \NAME\
+@ref{\NAME\,,,lilypond-internals}
 @end macro
 
 @macro inputfileref{DIR,NAME}
-@uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
+@uref{source/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
 @end macro
 
-@end ifhtml
+@macro rglos{NAME}
+@vindex \NAME\
+@ref{\NAME\,,,music-glossary}
+@end macro
+
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+@xml
+&lsquo;\TEXT\&rsquo;
+@end xml
+@end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+@xml
+&ldquo;\TEXT\&rdquo;
+@end xml
+@end macro
+
+@end ifdocbook
+
 
 @ifinfo
+@c **** INFO ****
+
 @macro internalsref{NAME}
+@vindex \NAME\
 @inforef{\NAME\,,lilypond-internals}
-@cindex \NAME\
 @end macro
 
-@macro inputfileref{DIR,NAME}i
+@macro inputfileref{DIR,NAME}
 @file{\DIR\/\NAME\}
 @end macro
 
+@macro rglos{NAME}@c
+@vindex \NAME\
+@inforef{\NAME\,,,music-glossary}
+@end macro
+
+@macro usermanref{NAME}
+@inforef{\NAME\}
+@end macro
+
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+`\TEXT\'
+@end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+``\TEXT\''
+@end macro
+
 @end ifinfo
 
+
+@c **** TEX ****
 @iftex
+
 @macro internalsref{NAME}
-@cindex \NAME\
+@vindex \NAME\
 @code{\NAME\}
 @end macro
+
 @macro inputfileref{DIR,NAME}
-@file{\DIR\/\NAME\}
+@file{\DIR\/@/\NAME\}
 @end macro
-@end iftex
 
+@macro rglos {NAME}
+@vindex \NAME\
+@code{\NAME\}
+@end macro
 
-@iftex
 @macro seeinternals{NAME}
-internals document,  @internalsref{\NAME\}
+internals document, @internalsref{\NAME\}
 @end macro
-@end iftex
 
-@ifnottex
-@macro seeinternals{NAME}
-@internalsref{\NAME\}
+@macro usermanref{NAME}
+user manual, @internalsref{\NAME\}
 @end macro
-@end ifnottex
 
-@macro refbugs
-@strong{BUGS}
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+`\TEXT\'
 @end macro
 
-@macro seealso
-@strong{SEE ALSO}
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+``\TEXT\''
+@end macro
 
+@end iftex
 
-@end macro
 
-@macro syntax
-@strong{SYNTAX}
+@ifnottex
+@c **** not TEX ****
 
+@macro seeinternals{NAME}
+@internalsref{\NAME\}
+@end macro
 
+@ifnotinfo
+@macro usermanref{NAME}
+@ref{\NAME\}
 @end macro
+@end ifnotinfo
+
+@end ifnottex
+
+
+@c EOF