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