]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
Add `backslash' value to be able to say @q{@value{backslash}}.
[lilypond.git] / Documentation / user / macros.itexi
1 @c -*- coding: latin-1; mode: texinfo; -*-
2
3 @c FIXME: rearranged this file; macros that don't depend on the output
4 @c format should go at the beginning.  -gp
5
6
7 @c in retrospect this is _not_ one of the output-insensitive macros.
8 @c I'll fix it soon.
9 @c usage: @lsr{ancient,custodes.ly}
10 @macro lsr{DIR,NAME}
11 @uref{source/input/lsr/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
12 @end macro
13
14 @macro lsrdir{DIR}
15 @uref{source/input/lsr/\DIR\/collated-files.html,@file{\DIR\}}
16 @end macro
17
18
19
20 @ifnottex
21   @macro texisharp {word}
22   #
23   @end macro
24   @macro texiflat {word}
25   b
26   @end macro
27 @end ifnottex
28
29 @c FIXME, use \fetaaccidentalsXMC?
30 @c \\kern0.15em\\fetachar\\fetaflat
31 @iftex
32  @macro texiflat {word}
33  @tex
34  FIXME: fetaflat
35  @end tex
36  @end macro
37 @c FIXME, use \fetaaccidentalsXC?
38 @c  \\raise0.5ex\\fetachar\\fetasharp
39  @macro texisharp {word}
40   @tex
41   FIXME: fetasharp
42   @end tex
43   @end macro
44 @end iftex
45
46
47 @macro arrow{}
48 @iftex
49 @tex $\\Rightarrow$ @end tex@c
50 @end iftex
51 @ifhtml
52 @html
53 →
54 @end html
55 @end ifhtml
56 @ifinfo
57 -->
58 @end ifinfo
59 @end macro
60
61
62 @c we need this since @q{\} doesn't work with makeinfo 4.8 --
63 @c say @q{@value{backslash}} instead
64 @set backslash \
65
66
67 @ifhtml
68 @c ***** HTML *****
69
70 @c makeinfo-4.7 encodes html names, which means that nodes that
71 @c contain nonalphanum characters will be broken links on the website.
72 @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
73 @c @inforef{} adds ``See'' to the sentence, which is annoying, but
74 @c better than a broken link.
75 @c @inforef{\NAME\,,lilypond-internals}@c
76 @c using @ref without punctuation is OK without for formats other than info
77
78 @ifset bigpage
79
80 @macro internalsref{NAME}
81 @vindex \NAME\
82 @ref{\NAME\,,,lilypond-internals-big-page}
83 @end macro
84
85 @macro rglos{NAME}
86 @vindex \NAME\
87 @ref{\NAME\,,,music-glossary-big-page}
88 @end macro
89
90 @end ifset
91
92
93 @ifclear bigpage
94
95 @c annoying parentheses stripped by add-html-footer.py
96 @macro internalsref{NAME}
97 @vindex \NAME\
98 @ref{\NAME\,,,lilypond-internals}
99 @end macro
100
101 @c annoying parentheses stripped by add-html-footer.py
102 @macro rglos{NAME}
103 @vindex \NAME\
104 @ref{\NAME\,,,music-glossary}
105 @end macro
106
107 @end ifclear
108
109
110 @c usage: @inputfileref{input@/regression,FILE@/-NAME.ly}
111 @macro inputfileref{DIR,NAME}
112 @uref{source/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
113 @end macro
114
115 @c to get decent quotes in `foo'
116 @macro q{TEXT}
117 @html
118 ‘\TEXT\’
119 @end html
120 @end macro
121
122 @c to get decent quotes in ``foo''
123 @macro qq{TEXT}
124 @html
125 “\TEXT\”
126 @end html
127 @end macro
128
129 @end ifhtml
130
131
132 @ifdocbook
133 @c ***** DOCBOOK-XML *****
134
135 @macro internalsref{NAME}
136 @vindex \NAME\
137 @ref{\NAME\,,,lilypond-internals}
138 @end macro
139
140 @macro inputfileref{DIR,NAME}
141 @uref{source/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
142 @end macro
143
144 @macro rglos{NAME}
145 @vindex \NAME\
146 @ref{\NAME\,,,music-glossary}
147 @end macro
148
149 @c to get decent quotes in `foo'
150 @macro q{TEXT}
151 @xml
152 ‘\TEXT\’
153 @end xml
154 @end macro
155
156 @c to get decent quotes in ``foo''
157 @macro qq{TEXT}
158 @xml
159 “\TEXT\”
160 @end xml
161 @end macro
162
163 @end ifdocbook
164
165
166 @ifinfo
167 @c **** INFO ****
168
169 @macro internalsref{NAME}
170 @vindex \NAME\
171 @inforef{\NAME\,,lilypond-internals}
172 @end macro
173
174 @macro inputfileref{DIR,NAME}
175 @file{\DIR\/\NAME\}
176 @end macro
177
178 @macro rglos{NAME}@c
179 @vindex \NAME\
180 @inforef{\NAME\,,,music-glossary}
181 @end macro
182
183 @macro usermanref{NAME}
184 @inforef{\NAME\}
185 @end macro
186
187 @c to get decent quotes in `foo'
188 @macro q{TEXT}
189 `\TEXT\'
190 @end macro
191
192 @c to get decent quotes in ``foo''
193 @macro qq{TEXT}
194 ``\TEXT\''
195 @end macro
196
197 @end ifinfo
198
199
200 @c **** TEX ****
201 @iftex
202
203 @macro internalsref{NAME}
204 @vindex \NAME\
205 @code{\NAME\}
206 @end macro
207
208 @macro inputfileref{DIR,NAME}
209 @file{\DIR\/@/\NAME\}
210 @end macro
211
212 @macro rglos {NAME}
213 @vindex \NAME\
214 @code{\NAME\}
215 @end macro
216
217 @macro seeinternals{NAME}
218 internals document, @internalsref{\NAME\}
219 @end macro
220
221 @macro usermanref{NAME}
222 user manual, @internalsref{\NAME\}
223 @end macro
224
225 @c to get decent quotes in `foo'
226 @macro q{TEXT}
227 `\TEXT\'
228 @end macro
229
230 @c to get decent quotes in ``foo''
231 @macro qq{TEXT}
232 ``\TEXT\''
233 @end macro
234
235 @end iftex
236
237
238 @ifnottex
239 @c **** not TEX ****
240
241 @macro seeinternals{NAME}
242 @internalsref{\NAME\}
243 @end macro
244
245 @ifnotinfo
246 @macro usermanref{NAME}
247 @ref{\NAME\}
248 @end macro
249 @end ifnotinfo
250
251 @end ifnottex
252
253
254 @c **** ALL ****
255
256 @macro refbugs
257 @noindent
258 @subsubheading Bugs
259
260 @end macro
261
262 @macro moreinfo
263 @subheading More information
264
265 @end macro
266
267 @macro seealso
268 @noindent
269 @subsubheading See also
270
271 @end macro
272
273 @macro refcommands
274 @noindent
275 @subsubheading Predefined commands
276
277 @end macro
278
279 @macro context{NAME}
280 @vindex \NAME\
281 @code{\NAME\}@c should use internalsref
282 @end macro
283
284 @macro refcommand{WHAT}
285 @vindex \WHAT\
286 @code{\WHAT\}
287 @end macro
288
289 @macro commonprop
290 @noindent
291 @subsubheading Commonly tweaked properties
292
293 @end macro
294
295 @macro funindex {WORD}
296 @findex \WORD\
297 @kindex \WORD\
298 @end macro
299
300 @c EOF