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