X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Fmacros.itexi;h=678ff5effcdcc32dea718e6dc565c30e38582521;hb=f0996bcf2f14bd4d55de4ef83b5266fc77bbab52;hp=b3dc51087d372cb2e16c5e7dba433f8e1467f245;hpb=d145acbbd1250d861b3e8559d40c342273b2bb63;p=lilypond.git diff --git a/Documentation/user/macros.itexi b/Documentation/user/macros.itexi index b3dc51087d..678ff5effc 100644 --- a/Documentation/user/macros.itexi +++ b/Documentation/user/macros.itexi @@ -1,23 +1,19 @@ -@c -*-texinfo-*- - -@c Only reference in HTML. -@macro htmlref {NAME} -@ifhtml -@ref{\NAME\}@c -@end ifhtml -@ifnothtml -\NAME\@c -@end ifnothtml -@end macro - - +@c -*- coding: latin-1; mode: texinfo; -*- +@tex +\input feta20.tex +\global\font\fetasixteen=feta16 +\gdef\fetafont{\fetasixteen} +\gdef\fetachar#1{\hbox{\fetasixteen#1}} +@end tex @c Reference GLOSsary @macro rglos {NAME} @ifhtml @c ugh: @ref assumes that external refs are split documents too -@uref{../music-glossary.html#\NAME\,\NAME\}@c +@html +\NAME\@c +@end html @end ifhtml @ifnothtml \NAME\@c @@ -26,108 +22,186 @@ @ifnottex -@macro texisharp {word} -# -@end macro + @macro texisharp {word} + # + @end macro + @macro texiflat {word} + b + @end macro @end ifnottex +@c FIXME, use \fetaaccidentalsXMC? +@c \\kern0.15em\\fetachar\\fetaflat @iftex -@macro texisharp {word} -@tex -$\\sharp$% -@end tex -@end macro + @macro texiflat {word} + @tex + FIXME: fetaflat + @end tex + @end macro +@c FIXME, use \fetaaccidentalsXC? +@c \\raise0.5ex\\fetachar\\fetasharp + @macro texisharp {word} + @tex + FIXME: fetasharp + @end tex + @end macro @end iftex -@ifnottex -@macro texiflat {word} -b -@end macro -@end ifnottex +@macro arrow{} @iftex -@macro texiflat {word} -@tex -$\\flat$% -@end tex -@end macro +@tex $\\Rightarrow$ @end tex@c @end iftex +@ifhtml +@html +→ +@end html +@end ifhtml +@ifinfo +--> +@end ifinfo +@end macro -@iftex -@macro separate -@c I want some space over here, not silly characters. -@tex -@end tex -@end macro -@end iftex +@c dup? +@ifhtml -@c \heartsf was supposed to be filled? + @c ***** HTML ***** -@c center*** is broken? +@macro internalsref{NAME}@c +@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 +@ref{\NAME\,,,lilypond-internals}@c +@c should we do this? +@findex \NAME\ +@end macro -@ifinfo -@macro separate -@quotation -@end quotation -@end macro -@end ifinfo + @macro inputfileref{DIR,NAME} + @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c + @end macro -@ifhtml -@macro separate -@html -



-@end html -@end macro @end ifhtml - @c dup? -@ifhtml -@macro internalsref{NAME} -@uref{../lilypond-internals/\NAME\.html,\NAME\} -@cindex \NAME\ -@end macro +@ifdocbook -@macro inputfileref{DIR,NAME} -@uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}} -@end macro + @c ***** DOCBOOK-XML ***** -@end ifhtml + @macro internalsref{NAME} + @c makeinfo-4.7 encodes html names + @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c + @inforef{\NAME\,,lilypond-internals}@c + @c should we do this? + @findex @code{\NAME\} + @end macro + + + @macro inputfileref{DIR,NAME} + @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c + @end macro + +@end ifdocbook @ifinfo + +@c **** INFO **** @macro internalsref{NAME} -@inforef{\NAME\,,lilypond-internals} -@cindex \NAME\ +@inforef{\NAME\,,lilypond/lilypond-internals}@c +@findex \NAME\@c @end macro -@macro inputfileref{DIR,NAME}i + +@macro inputfileref{DIR,NAME} @file{\DIR\/\NAME\} @end macro + +@macro usermanref{NAME} +@ref{\NAME\,,,lilypond/lilypond}@c +@end macro + @end ifinfo @iftex -@macro internalsref{NAME} -@cindex \NAME\ -@code{\NAME\} +@c **** TEX **** + +@macro internalsref{NAME}@c +@findex \NAME\ @c +@code{\NAME\}@c @end macro -@macro inputfileref{DIR,NAME} -@file{\DIR\/\NAME\} + +@macro inputfileref{DIR,NAME}@c +@file{\DIR\/@/\NAME\}@c @end macro -@end iftex -@iftex @macro seeinternals{NAME} -internals document, @internalsref{\NAME\} +internals document, @internalsref{\NAME\} @end macro @end iftex +@c **** not TEX **** + @ifnottex -@macro seeinternals{NAME} -@internalsref{\NAME\} -@end macro + @macro seeinternals{NAME} + @internalsref{\NAME\} + @end macro @end ifnottex + +@ifnotinfo + @macro usermanref{NAME} + @ref{\NAME\}@c + @end macro +@end ifnotinfo + +@macro refbugs +@noindent +@subsubheading Bugs + +@end macro + +@macro seealso +@noindent +@subsubheading See also + +@end macro + +@macro refcommands +@noindent +@subsubheading Predefined commands + +@end macro + +@macro context{NAME}@c +@code{\NAME\}@c should use internalsref +@findex \NAME\@c +@end macro + +@c I want +@c @cindex @code{@backslash\WHAT\} +@c how do I do that? --hwn + +@ignore + +Is this question still relevant? With texinfo 4.7, +escape the backslash, like so --jcn + +@macro refcommand{WHAT} +@cindex @code{\\\WHAT\} +@code{\WHAT\}, +@end macro + +@end ignore + +@macro refcommand{WHAT} +@findex \WHAT\ +@code{\WHAT\} +@end macro +