]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
4e7f0bac026061ebe5e0e89eff278b354decaf72
[lilypond.git] / Documentation / user / macros.itexi
1 @c -*-texinfo-*-
2
3 @tex
4 \input feta20.tex
5 \font\fetasixteen=feta16
6 \def\fetafont{\fetasixteen}
7 \def\fetachar#1{\hbox{\fetasixteen#1}}
8 @end tex
9
10 @c Reference GLOSsary
11 @macro rglos {NAME}
12 @ifhtml
13 @c ugh: @ref assumes that external refs are split documents too
14 @html
15 <a style="text-decoration: none; color: inherit;" href="../music-glossary.html#\NAME\">\NAME\</a>@c
16 @end html
17 @end ifhtml
18 @ifnothtml
19 \NAME\@c
20 @end ifnothtml
21 @end macro
22
23
24 @ifnottex
25 @macro texisharp {word}
26 #
27 @end macro
28 @end ifnottex
29
30 @iftex
31 @macro texisharp {word}
32 @tex
33 \\raise0.5ex\\fetachar\\fetasharp
34 @end tex
35 @end macro
36 @end iftex
37
38 @ifnottex
39 @macro texiflat {word}
40 b
41 @end macro
42 @end ifnottex
43
44 @iftex
45 @macro texiflat {word}
46 @tex
47 \\kern0.15em\\fetachar\\fetaflat
48 @end tex
49 @end macro
50 @end iftex
51
52 @macro arrow{}
53 @iftex
54 @tex $\\Rightarrow$ @end tex@c
55 @end iftex
56 @ifhtml
57 @html
58 &rarr;
59 @end html
60 @end ifhtml
61 @ifinfo
62 -->
63 @end ifinfo
64 @end macro
65
66
67
68 @c dup?
69 @ifhtml
70 @macro internalsref{NAME}
71 @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
72 @cindex \NAME\@c
73 @end macro
74
75
76
77 @macro inputfileref{DIR,NAME}
78 @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
79 @end macro
80
81 @end ifhtml
82
83 @ifinfo
84 @macro internalsref{NAME}
85 @inforef{\NAME\,,lilypond/lilypond-internals}@c
86 @cindex \NAME\@c
87 @end macro
88
89 @macro inputfileref{DIR,NAME}
90 @file{\DIR\/\NAME\}
91 @end macro
92
93 @end ifinfo
94
95 @iftex
96 @macro internalsref{NAME}@c
97 @cindex \NAME\@c
98 @code{\NAME\}@c
99 @end macro
100 @macro inputfileref{DIR,NAME}@c
101 @file{\DIR\/\NAME\}@c
102 @end macro
103 @end iftex
104
105
106 @iftex
107 @macro seeinternals{NAME}
108 internals document,  @internalsref{\NAME\}
109 @end macro
110 @end iftex
111
112 @ifnottex
113 @macro seeinternals{NAME}
114 @internalsref{\NAME\}
115 @end macro
116 @end ifnottex
117
118 @ifinfo
119 @macro usermanref{NAME}
120 @ref{\NAME\,,,lilypond/lilypond}@c
121 @end macro
122 @end ifinfo
123
124 @ifnotinfo
125 @macro usermanref{NAME}
126 @ref{\NAME\}@c
127 @end macro
128 @end ifnotinfo
129
130 @macro refbugs
131 @noindent
132 @subsubheading Bugs
133
134 @end macro
135
136 @macro seealso
137 @noindent
138 @subsubheading See also
139
140 @end macro
141
142 @macro refcommands
143 @noindent
144 @subsubheading Predefined commands
145
146 @end macro
147
148 @macro context{NAME}@c
149 @code{\NAME\}@c should use internalsref
150 @cindex \NAME\@c
151 @end macro
152
153
154
155
156 @c
157 @c ARGGGHHHHH! I want
158 @c @cindex @code{@backslash\WHAT\}
159 @c how do I do that?
160 @c   --hwn
161
162 @macro refcommand{WHAT}
163 @cindex @code{\WHAT\}
164 @code{\WHAT\}, 
165 @end macro