+@c -*-texinfo-*-
+
+
+@c Reference GLOSsary
+@macro rglos {NAME}
+@ifhtml
+@c ugh: @ref assumes that external refs are split documents too
+@html
+<a style="text-decoration: none; color: inherit;" href="../music-glossary.html#\NAME\">\NAME\</a>@c
+@end html
+@end ifhtml
+@ifnothtml
+\NAME\@c
+@end ifnothtml
+@end macro
+
+
+@ifnottex
+@macro texisharp {word}
+#
+@end macro
+@end ifnottex
+
+@iftex
+@macro texisharp {word}
+@tex
+$\\sharp$%
+@end tex
+@end macro
+@end iftex
+
+@ifnottex
+@macro texiflat {word}
+b
+@end macro
+@end ifnottex
+
+@iftex
+@macro texiflat {word}
+@tex
+$\\flat$%
+@end tex
+@end macro
+@end iftex
+
+
+
+@iftex
+@macro separate
+@c I want some space over here, not silly characters.
+@tex
+@end tex
+@end macro
+@end iftex
+
+@c \heartsf was supposed to be filled?
+
+@c center*** is broken?
+
@ifinfo
-@macro rgrob {word}
-@ref{ (lilypond-internals)\word\, \word\ },
+@macro separate
+@quotation
+@end quotation
@end macro
-@macro reng {word}
-@ref{ (lilypond-internals)Engraver \word\, \word\ },
+@end ifinfo
+@ifhtml
+@macro separate
+@html
+<p></p><br><br>
+@end html
@end macro
+@end ifhtml
+
+
+@c dup?
+@ifhtml
+@macro internalsref{NAME}
+@uref{../lilypond-internals/\NAME\.html,\NAME\}@c
+@cindex \NAME\@c
+@end macro
+
+@macro inputfileref{DIR,NAME}
+@uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
+@end macro
+
+@end ifhtml
+
+@ifinfo
+@macro internalsref{NAME}
+@inforef{\NAME\,,lilypond-internals}@c
+@cindex \NAME\@c
+@end macro
+
+@macro inputfileref{DIR,NAME}
+@file{\DIR\/\NAME\}
+@end macro
+
@end ifinfo
-@ifnotinfo
-@macro rgrob {word}
-@ref{ (lilypond-internals)\word\, \word\ }
+@iftex
+@macro internalsref{NAME}@c
+@cindex \NAME\@c
+@code{\NAME\}@c
+@end macro
+@macro inputfileref{DIR,NAME}@c
+@file{\DIR\/\NAME\}@c
+@end macro
+@end iftex
+
+@iftex
+@macro seeinternals{NAME}
+internals document, @internalsref{\NAME\}
@end macro
-@macro reng {word}
-@ref{ (lilypond-internals)Engraver \word\, \word\ }
+@end iftex
+@ifnottex
+@macro seeinternals{NAME}
+@internalsref{\NAME\}
@end macro
-@end ifnotinfo
+@end ifnottex
+@macro refbugs
+@noindent
+@heading Bugs
-@ignore
+@end macro
-@c Huh, do outline mode and texinfo really fight eachother?
-@c Outline can only use spaces to indent topic headers
-@c (or bullets, but then topics can't start with `@c').
-@c Texinfo can't have spaces in macro names.
+@macro seealso
+@noindent
+@heading See also
-@macro c_ {word}
-\word\
-@node \word\
-@section \word\
@end macro
-@macro c__ {word}
-\word\
-@node \word\
-@subsection \word\
+@macro refcommands
+@noindent
+@heading Predefined commands
+
@end macro
-@macro c___ {word}
-\word\
-@node \word\
-@unnumberedsubsubsection \word\
+
+@c
+@c ARGGGHHHHH! I want
+@c @cindex @code{@backslash\WHAT\}
+@c how do I do that?
+@c --hwn
+
+@macro refcommand{WHAT}
+@cindex @code{\WHAT\}
+@code{\WHAT\},
@end macro
-@end ignore
+@macro syntax
+@noindent
+@heading Syntax
-@macro c_ {word}
@end macro