]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
Begin simplifying macros.itexi.
[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
10 @c **** format-independant ****
11
12 @c   regions of a doc subsection
13 @macro refcommands
14 @noindent
15 @subsubheading Predefined commands
16
17 @end macro
18
19 @macro commonprop
20 @noindent
21 @subsubheading Commonly tweaked properties
22
23 @end macro
24
25 @macro seealso
26 @noindent
27 @subsubheading See also
28
29 @end macro
30
31 @macro refbugs
32 @noindent
33 @subsubheading Bugs
34
35 @end macro
36
37
38 @c  use inside the text
39 @macro context{NAME}
40 @vindex \NAME\
41 @code{\NAME\}@c should use internalsref
42 @end macro
43
44 @macro refcommand{WHAT}
45 @vindex \WHAT\
46 @code{\WHAT\}
47 @end macro
48
49 @macro funindex {WORD}
50 @findex \WORD\
51 @kindex \WORD\
52 @end macro
53
54
55
56 @c  *** Macros with variable output ***
57
58 @c   Use inside the text
59
60 @c usage: @lsr{ancient,custodes.ly}
61 @macro lsr{DIR,NAME}
62 @ifhtml
63   @uref{source/input/lsr/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
64 @end ifhtml
65 @ifnothtml
66   @file{\DIR\/\NAME\}
67 @end ifnothtml
68 @end macro
69
70 @macro lsrdir{DIR}
71 @ifhtml
72   @uref{source/input/lsr/\DIR\/collated-files.html,@file{\DIR\}/}
73 @end ifhtml
74 @ifnothtml
75   @file{\DIR\}
76 @end ifnothtml
77 @end macro
78
79
80
81
82 @c we need this since @q{\} doesn't work with makeinfo 4.8 --
83 @c say @q{@value{backslash}} instead
84 @set backslash \
85
86
87 @ifhtml
88 @c ***** HTML *****
89
90 @c makeinfo-4.7 encodes html names, which means that nodes that
91 @c contain nonalphanum characters will be broken links on the website.
92 @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
93 @c @inforef{} adds ``See'' to the sentence, which is annoying, but
94 @c better than a broken link.
95 @c @inforef{\NAME\,,lilypond-internals}@c
96 @c using @ref without punctuation is OK without for formats other than info
97
98 @ifset bigpage
99
100 @macro internalsref{NAME}
101 @vindex \NAME\
102 @ref{\NAME\,,,lilypond-internals-big-page}
103 @end macro
104
105 @macro rglos{NAME}
106 @vindex \NAME\
107 @ref{\NAME\,,,music-glossary-big-page}
108 @end macro
109
110 @macro rprogram{NAME}
111 @vindex \NAME\
112 @ref{\NAME\,,,lilypond-program-big-page}
113 @end macro
114
115 @macro ruser{NAME}
116 @vindex \NAME\
117 @ref{\NAME\,,,lilypond-big-page}
118 @end macro
119
120 @macro rlearning{NAME}
121 @vindex \NAME\
122 @ref{\NAME\,,,lilypond-learning-big-page}
123 @end macro
124
125 @end ifset
126
127
128 @ifclear bigpage
129
130 @macro internalsref{NAME}
131 @vindex \NAME\
132 @ref{\NAME\,,,lilypond-internals}
133 @end macro
134
135 @macro rglos{NAME}
136 @vindex \NAME\
137 @ref{\NAME\,,,music-glossary}
138 @end macro
139
140 @macro rprogram{NAME}
141 @vindex \NAME\
142 @ref{\NAME\,,,lilypond-program}
143 @end macro
144
145 @macro ruser{NAME}
146 @vindex \NAME\
147 @ref{\NAME\,,,lilypond}
148 @end macro
149
150 @macro rlearning{NAME}
151 @vindex \NAME\
152 @ref{\NAME\,,,lilypond-learning}
153 @end macro
154
155 @end ifclear
156
157
158 @c to get decent quotes in `foo'
159 @macro q{TEXT}
160 @html
161 ‘\TEXT\’
162 @end html
163 @end macro
164
165 @c to get decent quotes in ``foo''
166 @macro qq{TEXT}
167 @html
168 “\TEXT\”
169 @end html
170 @end macro
171
172 @end ifhtml
173
174
175 @ifdocbook
176 @c ***** DOCBOOK-XML *****
177
178 @macro internalsref{NAME}
179 @vindex \NAME\
180 @ref{\NAME\,,,lilypond-internals}
181 @end macro
182
183 @macro rglos{NAME}
184 @vindex \NAME\
185 @ref{\NAME\,,,music-glossary}
186 @end macro
187
188 @macro rprogram{NAME}
189 @vindex \NAME\
190 @ref{\NAME\,,,lilypond-program}
191 @end macro
192
193 @macro ruser{NAME}
194 @vindex \NAME\
195 @ref{\NAME\,,,lilypond}
196 @end macro
197
198 @macro rlearning{NAME}
199 @vindex \NAME\
200 @ref{\NAME\,,,lilypond-learning}
201 @end macro
202
203 @c to get decent quotes in `foo'
204 @c to get decent quotes in `foo'
205 @macro q{TEXT}
206 @xml
207 ‘\TEXT\’
208 @end xml
209 @end macro
210
211 @c to get decent quotes in ``foo''
212 @macro qq{TEXT}
213 @xml
214 “\TEXT\”
215 @end xml
216 @end macro
217
218 @end ifdocbook
219
220
221 @ifinfo
222 @c **** INFO ****
223
224 @macro internalsref{NAME}
225 @vindex \NAME\
226 @inforef{\NAME\,,lilypond-internals}
227 @end macro
228
229 @macro rglos{NAME}
230 @vindex \NAME\
231 @inforef{\NAME\,,music-glossary}
232 @end macro
233
234 @macro usermanref{NAME}
235 @inforef{\NAME\}
236 @end macro
237
238 @macro learningref{NAME}
239 @inforef{\NAME\}
240 @end macro
241
242 @macro rprogram{NAME}
243 @vindex \NAME\
244 @ref{\NAME\,,,lilypond-program}
245 @end macro
246
247 @macro ruser{NAME}
248 @vindex \NAME\
249 @ref{\NAME\,,,lilypond}
250 @end macro
251
252 @macro rlearning{NAME}
253 @vindex \NAME\
254 @ref{\NAME\,,,lilypond-learning}
255 @end macro
256
257 @c to get decent quotes in `foo'
258 @c to get decent quotes in `foo'
259 @macro q{TEXT}
260 `\TEXT\'
261 @end macro
262
263 @c to get decent quotes in ``foo''
264 @macro qq{TEXT}
265 ``\TEXT\''
266 @end macro
267
268 @end ifinfo
269
270
271 @c **** TEX ****
272 @iftex
273
274 @macro internalsref{NAME}
275 @vindex \NAME\
276 @code{\NAME\}
277 @end macro
278
279 @macro rglos {NAME}
280 @vindex \NAME\
281 @code{\NAME\}
282 @end macro
283
284 @macro seeinternals{NAME}
285 internals document, @internalsref{\NAME\}
286 @end macro
287
288 @macro usermanref{NAME}
289 user manual, @internalsref{\NAME\}
290 @end macro
291
292 @macro learningref{NAME}
293 learning manual, @internalsref{\NAME\}
294 @end macro
295
296 @macro rprogram{NAME}
297 program usage manual, @internalsref{\NAME\}
298 @end macro
299
300 @alias ruser=usermanref
301 @alias rlearning=learningref
302
303 @c to get decent quotes in `foo'
304 @macro q{TEXT}
305 `\TEXT\'
306 @end macro
307
308 @c to get decent quotes in ``foo''
309 @macro qq{TEXT}
310 ``\TEXT\''
311 @end macro
312
313 @end iftex
314
315
316 @ifnottex
317 @c **** not TEX ****
318
319 @macro seeinternals{NAME}
320 @internalsref{\NAME\}
321 @end macro
322
323 @ifnotinfo
324 @macro usermanref{NAME}
325 @ref{\NAME\}
326 @end macro
327
328 @macro learningref{NAME}
329 @ref{\NAME\}
330 @end macro
331 @end ifnotinfo
332
333 @end ifnottex
334
335
336 @c EOF