]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
Change Snippets compilation
[lilypond.git] / Documentation / user / macros.itexi
1 @c -*- coding: us-ascii; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  See TRANSLATION for details.
7 @end ignore
8
9 @macro version
10 @value{version}
11 @end macro
12
13 @c   ***** Displaying text *****
14
15 @c we need this since @q{\} doesn't work with makeinfo 4.8 --
16 @c say @q{@value{backslash}} instead
17 @set backslash \
18
19 @c to get decent quotes in `foo' and ``foo''
20 @macro q{TEXT}
21 @quoteleft{}\TEXT\@quoteright{}
22 @end macro
23
24 @macro qq{TEXT}
25 @quotedblleft{}\TEXT\@quotedblright{}
26 @end macro
27
28 @macro warning{TEXT}
29 @quotation
30 @quotation
31 @cartouche
32 @b{Note:} \TEXT\
33 @end cartouche
34 @end quotation
35 @end quotation
36 @end macro
37
38 @ifnotinfo
39 @macro notation{TEXT}
40 @var{\TEXT\}
41 @end macro
42 @end ifnotinfo
43
44 @ifinfo
45 @macro notation{TEXT}
46 \TEXT\
47 @end macro
48 @end ifinfo
49
50 @macro smallspace
51 @sp 1
52 @end macro
53
54
55 @c   **** Displaying images not generated by lilypond-book
56
57 @c current installation setup of Info docs requires that all images are
58 @c expected to be found in lilypond/ subdirectory.  lilypond-book already
59 @c generates proper @image commands for images of music; these macros
60 @c definitions do the same for other images.
61
62 @ifnotinfo
63 @macro sourceimage{FILENAME,WIDTH,HEIGHT,ALTTEXT}
64 @image{\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\}
65 @end macro
66 @end ifnotinfo
67
68 @ifinfo
69 @macro sourceimage{FILENAME,WIDTH,HEIGHT,ALTTEXT}
70 @image{lilypond/\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\}
71 @end macro
72 @end ifinfo
73
74
75 @c   **** Headings in a doc subsection ****
76
77 @macro predefined
78 @noindent
79 @subsubheading Predefined commands
80
81 @end macro
82
83 @macro snippets
84 @noindent
85 @subsubheading Selected Snippets
86
87 @end macro
88
89 @macro seealso
90 @noindent
91 @subsubheading See also
92
93 @indent
94 @end macro
95
96 @macro knownissues
97 @noindent
98 @subsubheading Known issues and warnings
99
100 @end macro
101
102 @macro funindex {TEXT}
103 @findex \TEXT\
104 @kindex \TEXT\
105 @end macro
106
107
108
109 @c   **** Links and references ****
110
111 @c  Possibly deprecated; under discussion.
112 @c usage: @lsr{ancient,Ancient-notation,custodes.ly}
113 @macro lsr{SECTION,DIR,TEXT}
114 @ifhtml
115 @uref{source/input/lsr/snippets/\DIR\.html#\TEXT\,@file{\SECTION\/\TEXT\}}
116 @end ifhtml
117 @ifnothtml
118 @file{\SECTION\/\TEXT\}
119 @end ifnothtml
120 @end macro
121
122 @c usage: @lsrdir{ancient,Ancient-notation}
123 @macro lsrdir{SECTION,DIR}
124 @ifhtml
125 @uref{source/input/lsr/snippets/\DIR\.html,\SECTION\}
126 @end ifhtml
127 @ifnothtml
128 \DIR\
129 @end ifnothtml
130 @end macro
131
132
133 @c  Definitions for references:
134 @c     @internalsref
135 @c     @rglos
136 @c     @rprogram
137 @c     @ruser
138 @c     @rlearning
139
140 @ifhtml
141 @c ***** HTML *****
142
143 @ifset bigpage
144
145 @macro internalsref{TEXT}
146 @vindex \TEXT\
147 @ref{\TEXT\,,,lilypond-internals-big-page}
148 @end macro
149
150 @macro rglos{TEXT}
151 @vindex \TEXT\
152 @ref{\TEXT\,,,music-glossary-big-page}
153 @end macro
154
155 @macro rprogram{TEXT}
156 @vindex \TEXT\
157 @ref{\TEXT\,,,lilypond-program-big-page}
158 @end macro
159
160 @macro ruser{TEXT}
161 @vindex \TEXT\
162 @ref{\TEXT\,,,lilypond-big-page}
163 @end macro
164
165 @macro rlearning{TEXT}
166 @vindex \TEXT\
167 @ref{\TEXT\,,,lilypond-learning-big-page}
168 @end macro
169
170 @macro rlsr{TEXT}
171 @ref{\TEXT\,,,lilypond-snippets-big-page}
172 @end macro
173
174 @end ifset
175
176
177 @ifclear bigpage
178
179 @macro internalsref{TEXT}
180 @vindex \TEXT\
181 @ref{\TEXT\,,,lilypond-internals}
182 @end macro
183
184 @macro rglos{TEXT}
185 @vindex \TEXT\
186 @ref{\TEXT\,,,music-glossary}
187 @end macro
188
189 @macro rprogram{TEXT}
190 @vindex \TEXT\
191 @ref{\TEXT\,,,lilypond-program}
192 @end macro
193
194 @macro ruser{TEXT}
195 @vindex \TEXT\
196 @ref{\TEXT\,,,lilypond}
197 @end macro
198
199 @macro rlearning{TEXT}
200 @vindex \TEXT\
201 @ref{\TEXT\,,,lilypond-learning}
202 @end macro
203
204 @macro rlsr{TEXT}
205 @ref{\TEXT\,,,lilypond-snippets}
206 @end macro
207
208 @end ifclear
209
210 @end ifhtml
211
212
213 @ifdocbook
214 @c ***** DOCBOOK-XML *****
215
216 @macro internalsref{TEXT}
217 @vindex \TEXT\
218 @ref{\TEXT\,,,lilypond-internals}
219 @end macro
220
221 @macro rglos{TEXT}
222 @vindex \TEXT\
223 @ref{\TEXT\,,,music-glossary}
224 @end macro
225
226 @macro rprogram{TEXT}
227 @vindex \TEXT\
228 @ref{\TEXT\,,,lilypond-program}
229 @end macro
230
231 @macro ruser{TEXT}
232 @vindex \TEXT\
233 @ref{\TEXT\,,,lilypond}
234 @end macro
235
236 @macro rlearning{TEXT}
237 @vindex \TEXT\
238 @ref{\TEXT\,,,lilypond-learning}
239 @end macro
240
241 @macro rlsr{TEXT}
242 @ref{\TEXT\,,,lilypond-snippets}
243 @end macro
244
245 @end ifdocbook
246
247
248 @ifinfo
249 @c **** INFO ****
250
251 @macro internalsref{TEXT}
252 @vindex \TEXT\
253 @inforef{\TEXT\,,lilypond-internals}
254 @end macro
255
256 @macro rglos{TEXT}
257 @vindex \TEXT\
258 @inforef{\TEXT\,,music-glossary}
259 @end macro
260
261 @macro rprogram{TEXT}
262 @vindex \TEXT\
263 @ref{\TEXT\,,,lilypond-program}
264 @end macro
265
266 @macro ruser{TEXT}
267 @vindex \TEXT\
268 @ref{\TEXT\,,,lilypond}
269 @end macro
270
271 @macro rlearning{TEXT}
272 @vindex \TEXT\
273 @ref{\TEXT\,,,lilypond-learning}
274 @end macro
275
276 @macro rlsr{TEXT}
277 @ref{\TEXT\,,,lilypond-snippets}
278 @end macro
279
280 @end ifinfo
281
282
283 @c **** TEX ****
284 @iftex
285
286 @macro internalsref{TEXT}
287 @vindex \TEXT\
288 @code{\TEXT\}
289 @end macro
290
291 @macro rglos {TEXT}
292 @vindex \TEXT\
293 @ref{\TEXT\,,,music-glossary}
294 @end macro
295
296 @macro rprogram{TEXT}
297 program usage manual, @ref{\TEXT\,,,lilypond-program}
298 @end macro
299
300 @macro ruser{TEXT}
301 notation reference, @ref{\TEXT\,,,lilypond}
302 @end macro
303
304 @macro rlearning{TEXT}
305 learning manual, @ref{\TEXT\,,,lilypond-learning}
306 @end macro
307
308 @macro rlsr{TEXT}
309 @ref{\TEXT\,,,lilypond-snippets}
310 @end macro
311
312 @end iftex
313
314
315 @c EOF