X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Fmacros.itexi;h=68b52bb51368db7ea2bab262a7113c35c66a1276;hb=49beaf3269c52e412285e30de038d8e8078565ab;hp=65ab012cd18556e1ab5b0a6f465cf572c413ed99;hpb=3db08de4502e30616808fc348b054d32822e5cc4;p=lilypond.git diff --git a/Documentation/user/macros.itexi b/Documentation/user/macros.itexi index 65ab012cd1..68b52bb513 100644 --- a/Documentation/user/macros.itexi +++ b/Documentation/user/macros.itexi @@ -1,173 +1,204 @@ -@c -*-texinfo-*- - -@c Only reference in HTML. -@macro htmlref {NAME} -@ifhtml -@ref{\NAME\}@c -@end ifhtml -@ifnothtml -\NAME\@c -@end ifnothtml -@end macro - - - - -@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 -@end ifhtml -@ifnothtml -\NAME\@c -@end ifnothtml -@end macro - +@c -*- coding: latin-1; mode: texinfo; -*- @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 - - - -@iftex -@macro separate -@c I want some space over here, not silly characters. -@tex -@end tex +@ifhtml +@html +→ +@end html +@end ifhtml +@ifinfo +--> +@end ifinfo @end macro -@end iftex -@c \heartsf was supposed to be filled? -@c center*** is broken? +@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 -@ifinfo -@macro separate +@c annoying parentheses stripped by add-html-footer.py +@macro internalsref{NAME} +@vindex \NAME\ +@ref{\NAME\,,,lilypond-internals} +@end macro -@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 -@html -