]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/macros.itexi
[doc] Fix \lilyvindex macro.
[lilypond.git] / Documentation / 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 @include version.itexi
11 @include common-macros.itexi
12
13
14 @c   ***** Displaying text *****
15
16 @c To get decent quotes in `foo' and ``foo''.
17
18 @macro q{TEXT}
19 @quoteleft{}\TEXT\@quoteright{}
20 @end macro
21
22 @macro qq{TEXT}
23 @quotedblleft{}\TEXT\@quotedblright{}
24 @end macro
25
26
27 @ifhtml
28
29 @macro warning{TEXT}
30 @html
31 <div class="warning">
32 @end html
33 @strong{Note:} \TEXT\
34 @html
35 </div>
36 @end html
37 @end macro
38
39 @end ifhtml
40
41 @ifnothtml
42
43 @macro warning{TEXT}
44 @quotation
45 @quotation
46 @cartouche
47 @b{Note:} \TEXT\
48 @end cartouche
49 @end quotation
50 @end quotation
51 @end macro
52
53 @end ifnothtml
54
55
56 @macro docMain
57 @cartouche
58 For more information about how this manual fits with the other
59 documentation, or to read this manual in other formats, see
60 @rgeneral{Manuals}.
61
62 If you are missing any manuals, the complete documentation can be
63 found at @w{@uref{http://@/www@/.lilypond@/.org/}}.
64 @end cartouche
65 @end macro
66
67
68 @macro lilyTitlePage{TITLE}
69 @c  This produces the unified index
70 @syncodeindex fn cp
71 @syncodeindex vr cp
72
73
74 @c   ***** Copyright stuff *****
75 @ifset FDL
76 @copying
77 @copyrightDeclare
78
79 @quotation
80 Permission is granted to copy, distribute and/or modify this document
81 under the terms of the GNU Free Documentation License, Version 1.1
82 or any later version published by the Free Software Foundation;
83 with no Invariant Sections.
84 A copy of the license is included in the section entitled ``GNU
85 Free Documentation License''.
86 @end quotation
87 @end copying
88 @end ifset
89
90 @ifclear FDL
91 @copying
92 This document has been placed in the public domain.
93 @end copying
94 @end ifclear
95
96
97
98 @c   ***** Title page *****
99 @ifnottex
100 @node Top
101 @top LilyPond --- \TITLE\
102
103 @cartouche
104 @manualIntro{}
105 @end cartouche
106 @end ifnottex
107
108 @finalout
109
110 @titlepage
111 @title LilyPond
112 @subtitle The music typesetter
113 @titlefont{\TITLE\}
114 @author The LilyPond development team
115
116 @vskip 60pt
117
118 @cartouche
119 @manualIntro{}
120 @end cartouche
121
122 @vskip 40pt
123
124 @docMain{}
125
126 @vskip 0pt plus 1filll
127
128 @insertcopying{}
129
130 For LilyPond version @version{}
131 @end titlepage
132
133 @end macro
134
135
136 @c   ***** Headings in a doc subsection *****
137
138 @c The next macro is a dummy currently since texinfo doesn't
139 @c provide a real ragged-right environment yet.
140 @c
141 @c Don't insert an empty line after @predefined!  Right now
142 @c it doesn't matter, but a future implementation will probably
143 @c add some code which needs this restriction.
144
145 @macro predefined
146 @noindent
147 @subsubheading Predefined commands
148 @end macro
149
150 @c Due to a bug in texi2html (texi2html.pl CVS versions <= 1.245)
151 @c the next macro must not be empty.
152
153 @macro endpredefined
154 @c
155 @end macro
156
157
158 @macro snippets
159 @noindent
160 @subsubheading Selected Snippets
161 @end macro
162
163
164 @c Don't insert an empty line after @seealso!  Otherwise we get
165 @c unwanted extra vertical space in the PDF output.
166
167 @macro seealso
168 @noindent
169 @subsubheading See also
170 @indent
171 @end macro
172
173
174 @macro knownissues
175 @noindent
176 @subsubheading Known issues and warnings
177 @end macro
178
179
180
181 @c   ***** Links and references *****
182
183 @c  Definitions for references:
184 @c
185 @c     @rgeneral
186 @c     @ressay
187 @c     @rglos
188 @c     @rinternals
189 @c     @rlearning
190 @c     @rlsr
191 @c     @rprogram
192 @c     @ruser
193 @c     @rchanges
194 @c     @rcontrib
195 @c
196 @c  All these also have a @...named version which allows to specify the
197 @c  displayed text for the reference as second argument.
198 @c
199 @c ***** HTML + bigpage is a special case (other manual names); all other
200 @c formats are treated similarly.
201
202
203 @c *** not TeX ***
204
205 @ifnottex
206
207 @c ** bigpage **
208
209 @ifset bigpage
210
211 @macro rglos{TEXT}
212 @vindex \TEXT\
213 @ref{\TEXT\,,,music-glossary-big-page,Music Glossary}
214 @end macro
215
216 @macro rglosnamed{TEXT,DISPLAY}
217 @vindex \TEXT\
218 @ref{\TEXT\,,\DISPLAY\,music-glossary-big-page,Music Glossary}
219 @end macro
220
221 @macro rlearning{TEXT}
222 @vindex \TEXT\
223 @ref{\TEXT\,,,learning-big-page,Learning Manual}
224 @end macro
225
226 @macro rlearningnamed{TEXT,DISPLAY}
227 @vindex \TEXT\
228 @ref{\TEXT\,,\DISPLAY\,learning-big-page,Learning Manual}
229 @end macro
230
231 @macro ruser{TEXT}
232 @vindex \TEXT\
233 @ref{\TEXT\,,,notation-big-page,Notation Reference}
234 @end macro
235
236 @macro rusernamed{TEXT,DISPLAY}
237 @vindex \TEXT\
238 @ref{\TEXT\,,\DISPLAY\,notation-big-page,Notation Reference}
239 @end macro
240
241 @macro rchanges{TEXT}
242 @vindex \TEXT\
243 @ref{\TEXT\,,,changes-big-page,Changes}
244 @end macro
245
246 @macro rchangesnamed{TEXT,DISPLAY}
247 @vindex \TEXT\
248 @ref{\TEXT\,,\DISPLAY\,changes-big-page,Changes}
249 @end macro
250
251 @macro rcontrib{TEXT}
252 @vindex \TEXT\
253 @ref{\TEXT\,,,contributor-big-page,Contributor's Guide}
254 @end macro
255
256 @macro rcontribnamed{TEXT,DISPLAY}
257 @vindex \TEXT\
258 @ref{\TEXT\,,\DISPLAY\,contributor-big-page,Contributor's Guide}
259 @end macro
260
261 @macro rgeneral{TEXT}
262 @vindex \TEXT\
263 @ref{\TEXT\,,,general-big-page,General Information}
264 @end macro
265
266 @macro rgeneralnamed{TEXT,DISPLAY}
267 @vindex \TEXT\
268 @ref{\TEXT\,,\DISPLAY\,general-big-page,General Information}
269 @end macro
270
271 @macro ressay{TEXT}
272 @vindex \TEXT\
273 @ref{\TEXT\,,,essay-big-page,Essay}
274 @end macro
275
276 @macro ressaynamed{TEXT,DISPLAY}
277 @vindex \TEXT\
278 @ref{\TEXT\,,\DISPLAY\,essay-big-page,Essay}
279 @end macro
280
281 @macro rprogram{TEXT}
282 @vindex \TEXT\
283 @ref{\TEXT\,,,usage-big-page,Application Usage}
284 @end macro
285
286 @macro rprogramnamed{TEXT,DISPLAY}
287 @vindex \TEXT\
288 @ref{\TEXT\,,\DISPLAY\,usage-big-page,Application Usage}
289 @end macro
290
291 @macro rlsr{TEXT}
292 @ref{\TEXT\,,,snippets-big-page,Snippets}
293 @end macro
294
295 @macro rlsrnamed{TEXT,DISPLAY}
296 @ref{\TEXT\,,\DISPLAY\,snippets-big-page,Snippets}
297 @end macro
298
299 @macro rinternals{TEXT}
300 @vindex \TEXT\
301 @ref{\TEXT\,,,internals-big-page,Internals Reference}
302 @end macro
303
304 @macro rinternalsnamed{TEXT,DISPLAY}
305 @vindex \TEXT\
306 @ref{\TEXT\,,\DISPLAY\,internals-big-page,Internals Reference}
307 @end macro
308
309 @end ifset
310
311
312 @c ** not bigpage **
313
314 @ifclear bigpage
315
316 @ifnotinfo
317
318 @macro rglos{TEXT}
319 @vindex \TEXT\
320 @ref{\TEXT\,,,music-glossary,Music Glossary}
321 @end macro
322
323 @macro rglosnamed{TEXT,DISPLAY}
324 @vindex \TEXT\
325 @ref{\TEXT\,,\DISPLAY\,music-glossary,Music Glossary}
326 @end macro
327
328 @macro rlearning{TEXT}
329 @vindex \TEXT\
330 @ref{\TEXT\,,,learning,Learning Manual}
331 @end macro
332
333 @macro rlearningnamed{TEXT,DISPLAY}
334 @vindex \TEXT\
335 @ref{\TEXT\,,,learning,Learning Manual}
336 @end macro
337
338 @macro ruser{TEXT}
339 @vindex \TEXT\
340 @ref{\TEXT\,,,notation,Notation Reference}
341 @end macro
342
343 @macro rusernamed{TEXT,DISPLAY}
344 @vindex \TEXT\
345 @ref{\TEXT\,,\DISPLAY\,notation,Notation Reference}
346 @end macro
347
348 @macro rchanges{TEXT}
349 @vindex \TEXT\
350 @ref{\TEXT\,,,changes,Changes}
351 @end macro
352
353 @macro rchangesnamed{TEXT,DISPLAY}
354 @vindex \TEXT\
355 @ref{\TEXT\,,\DISPLAY\,changes,Changes}
356 @end macro
357
358 @macro rcontrib{TEXT}
359 @vindex \TEXT\
360 @ref{\TEXT\,,,contributor,Contributor's Guide}
361 @end macro
362
363 @macro rcontribnamed{TEXT,DISPLAY}
364 @vindex \TEXT\
365 @ref{\TEXT\,,\DISPLAY\,contributor,Contributor's Guide}
366 @end macro
367
368 @macro rgeneral{TEXT}
369 @vindex \TEXT\
370 @ref{\TEXT\,,,general,General Information}
371 @end macro
372
373 @macro rgeneralnamed{TEXT,DISPLAY}
374 @vindex \TEXT\
375 @ref{\TEXT\,,\DISPLAY\,general,General Information}
376 @end macro
377
378 @macro ressay{TEXT}
379 @vindex \TEXT\
380 @ref{\TEXT\,,,essay,Essay}
381 @end macro
382
383 @macro ressaynamed{TEXT,DISPLAY}
384 @vindex \TEXT\
385 @ref{\TEXT\,,\DISPLAY\,essay,Essay}
386 @end macro
387
388 @macro rprogram{TEXT}
389 @vindex \TEXT\
390 @ref{\TEXT\,,,usage,Application Usage}
391 @end macro
392
393 @macro rprogramnamed{TEXT,DISPLAY}
394 @vindex \TEXT\
395 @ref{\TEXT\,,\DISPLAY\,usage,Application Usage}
396 @end macro
397
398 @macro rlsr{TEXT}
399 @ref{\TEXT\,,,snippets,Snippets}
400 @end macro
401
402 @macro rlsrnamed{TEXT,DISPLAY}
403 @ref{\TEXT\,,\DISPLAY\,snippets,Snippets}
404 @end macro
405
406 @macro rinternals{TEXT}
407 @vindex \TEXT\
408 @ref{\TEXT\,,,internals,Internals Reference}
409 @end macro
410
411 @macro rinternalsnamed{TEXT,DISPLAY}
412 @vindex \TEXT\
413 @ref{\TEXT\,,\DISPLAY\,internals,Internals Reference}
414 @end macro
415
416 @end ifnotinfo
417
418 @ifinfo
419
420 @macro rglos{TEXT}
421 @vindex \TEXT\
422 @ref{\TEXT\,,,music-glossary,Music Glossary}
423 @end macro
424
425 @macro rglosnamed{TEXT,DISPLAY}
426 @vindex \TEXT\
427 @ref{\TEXT\,,\DISPLAY\,music-glossary,Music Glossary}
428 @end macro
429
430 @macro rlearning{TEXT}
431 @vindex \TEXT\
432 @ref{\TEXT\,,,lilypond-learning,Learning Manual}
433 @end macro
434
435 @macro rlearningnamed{TEXT,DISPLAY}
436 @vindex \TEXT\
437 @ref{\TEXT\,,,lilypond-learning,Learning Manual}
438 @end macro
439
440 @macro ruser{TEXT}
441 @vindex \TEXT\
442 @ref{\TEXT\,,,lilypond-notation,Notation Reference}
443 @end macro
444
445 @macro rusernamed{TEXT,DISPLAY}
446 @vindex \TEXT\
447 @ref{\TEXT\,,\DISPLAY\,lilypond-notation,Notation Reference}
448 @end macro
449
450 @macro rchanges{TEXT}
451 @vindex \TEXT\
452 @ref{\TEXT\,,,lilypond-changes,Changes}
453 @end macro
454
455 @macro rchangesnamed{TEXT,DISPLAY}
456 @vindex \TEXT\
457 @ref{\TEXT\,,\DISPLAY\,lilypond-changes,Changes}
458 @end macro
459
460 @macro rcontrib{TEXT}
461 @vindex \TEXT\
462 @ref{\TEXT\,,,lilypond-contributor,Contributor's Guide}
463 @end macro
464
465 @macro rcontribnamed{TEXT,DISPLAY}
466 @vindex \TEXT\
467 @ref{\TEXT\,,\DISPLAY\,lilypond-contributor,Contributor's Guide}
468 @end macro
469
470 @macro rgeneral{TEXT}
471 @vindex \TEXT\
472 @ref{\TEXT\,,,lilypond-general,General Information}
473 @end macro
474
475 @macro rgeneralnamed{TEXT,DISPLAY}
476 @vindex \TEXT\
477 @ref{\TEXT\,,\DISPLAY\,lilypond-general, General Information}
478 @end macro
479
480 @macro ressay{TEXT}
481 @vindex \TEXT\
482 @ref{\TEXT\,,,lilypond-essay,Essay}
483 @end macro
484
485 @macro ressaynamed{TEXT,DISPLAY}
486 @vindex \TEXT\
487 @ref{\TEXT\,,\DISPLAY\,lilypond-essay,Essay}
488 @end macro
489
490 @macro rprogram{TEXT}
491 @vindex \TEXT\
492 @ref{\TEXT\,,,lilypond-usage,Application Usage}
493 @end macro
494
495 @macro rprogramnamed{TEXT,DISPLAY}
496 @vindex \TEXT\
497 @ref{\TEXT\,,\DISPLAY\,lilypond-usage,Application Usage}
498 @end macro
499
500 @macro rlsr{TEXT}
501 @ref{\TEXT\,,,lilypond-snippets,Snippets}
502 @end macro
503
504 @macro rlsrnamed{TEXT,DISPLAY}
505 @ref{\TEXT\,,\DISPLAY\,lilypond-snippets,Snippets}
506 @end macro
507
508 @macro rinternals{TEXT}
509 @vindex \TEXT\
510 @ref{\TEXT\,,,lilypond-internals,Internals Reference}
511 @end macro
512
513 @macro rinternalsnamed{TEXT,DISPLAY}
514 @vindex \TEXT\
515 @ref{\TEXT\,,\DISPLAY\,lilypond-internals,Internals Reference}
516 @end macro
517
518 @end ifinfo
519
520 @end ifclear
521
522 @end ifnottex
523
524
525 @c *** TeX ***
526
527 @iftex
528
529 @c All commands below should work in the middle of the line;
530 @c we thus must not use @vindex directly since it works only if placed
531 @c on a line of its own.  To overcome this problem, we define a
532 @c replacement macro using the internal definition of @vindex which
533 @c delimits arguments in the standard way (i.e., with braces).
534
535 @tex
536 \gdef\lilyvindex#1{\doind{vr}{\code{#1}}\ignorespaces}
537 @end tex
538
539 @macro rglos{TEXT}
540 @lilyvindex{\TEXT\}
541 @ref{\TEXT\,,,music-glossary,Music Glossary}
542 @end macro
543
544 @macro rglosnamed{TEXT,DISPLAY}
545 @lilyvindex{\TEXT\}
546 @ref{\TEXT\,,\DISPLAY\,music-glossary,Music Glossary}
547 @end macro
548
549 @macro rlearning{TEXT}
550 @lilyvindex{\TEXT\}
551 @ref{\TEXT\,,,learning,Learning Manual}
552 @end macro
553
554 @macro rlearningnamed{TEXT,DISPLAY}
555 @lilyvindex{\TEXT\}
556 @ref{\TEXT\,,\DISPLAY\,learning,Learning Manual}
557 @end macro
558
559 @macro ruser{TEXT}
560 @lilyvindex{\TEXT\}
561 @ref{\TEXT\,,,notation,Notation Reference}
562 @end macro
563
564 @macro rusernamed{TEXT,DISPLAY}
565 @lilyvindex{\TEXT\}
566 @ref{\TEXT\,,\DISPLAY\,notation,Notation Reference}
567 @end macro
568
569 @macro rchanges{TEXT}
570 @lilyvindex{\TEXT\}
571 @ref{\TEXT\,,,changes,Changes}
572 @end macro
573
574 @macro rchangesnamed{TEXT,DISPLAY}
575 @lilyvindex{\TEXT\}
576 @ref{\TEXT\,,\DISPLAY\,changes,Changes}
577 @end macro
578
579 @macro rcontrib{TEXT}
580 @lilyvindex{\TEXT\}
581 @ref{\TEXT\,,,contributor,Contributor's Guide}
582 @end macro
583
584 @macro rcontribnamed{TEXT,DISPLAY}
585 @lilyvindex{\TEXT\}
586 @ref{\TEXT\,,\DISPLAY\,contributor,Contributor's Guide}
587 @end macro
588
589 @macro rgeneral{TEXT}
590 @lilyvindex{\TEXT\}
591 @ref{\TEXT\,,,general,General Information}
592 @end macro
593
594 @macro rgeneralnamed{TEXT,DISPLAY}
595 @lilyvindex{\TEXT\}
596 @ref{\TEXT\,,\DISPLAY\,general,General Information}
597 @end macro
598
599 @macro ressay{TEXT}
600 @lilyvindex{\TEXT\}
601 @ref{\TEXT\,,,essay,Essay}
602 @end macro
603
604 @macro ressaynamed{TEXT,DISPLAY}
605 @lilyvindex{\TEXT\}
606 @ref{\TEXT\,,\DISPLAY\,essay,Essay}
607 @end macro
608
609 @macro rprogram{TEXT}
610 @lilyvindex{\TEXT\}
611 @ref{\TEXT\,,,usage,Application Usage}
612 @end macro
613
614 @macro rprogramnamed{TEXT,DISPLAY}
615 @lilyvindex{\TEXT\}
616 @ref{\TEXT\,,\DISPLAY\,usage,Application Usage}
617 @end macro
618
619 @macro rlsr{TEXT}
620 @lilyvindex{\TEXT\}
621 @ref{\TEXT\,,,snippets,Snippets}
622 @end macro
623
624 @macro rlsrnamed{TEXT,DISPLAY}
625 @lilyvindex{\TEXT\}
626 @ref{\TEXT\,,\DISPLAY\,snippets,Snippets}
627 @end macro
628
629 @macro rinternals{TEXT}
630 @lilyvindex{\TEXT\}
631 @ref{\TEXT\,,,internals,Internals Reference}
632 @end macro
633
634 @macro rinternalsnamed{TEXT,DISPLAY}
635 @lilyvindex{\TEXT\}
636 @ref{\TEXT\,,\DISPLAY\,internals,Internals Reference}
637 @end macro
638
639 @end iftex
640
641 @c  ***** Macros specific to the web site *****
642
643 @ifset web
644
645 @c LEGALESE
646
647 @macro logoLegalLinux
648 Tux the Linux Penguin was created by
649 @uref{mailto:lewing@@isc.tamu.edu, lewing@@isc.tamu.edu} with
650 @uref{http://www.isc.tamu.edu/~lewing/gimp/, the Gnu Image
651 Manipulation Program}.
652
653 @end macro
654
655 @macro logoLegalFreeBSD
656 The FreeBSD logo is a registered trademark of
657 @uref{http://www.freebsd.org/, The FreeBSD Foundation}.
658
659 @end macro
660
661 @macro logoLegalMacOSX
662 The @qq{X image} is not a registered trademark.  It was created by
663 @uref{http://en.wikipedia.org/wiki/User:Nihonjoe, Nihonjoe} and
664 @uref{http://en.wikipedia.org/wiki/User:CyberSkull, CyberSkull}, and
665 placed under the GNU Free Documentation License version 1.2 or later.
666 We found the image on
667 @uref{http://commons.wikimedia.org/wiki/File:Mac_OS_X_Userbox_X.png,
668 this Wikipedia Commons page}.
669
670 @end macro
671
672 @macro logoLegalWindows
673 The @qq{four colored rectangles image} is not a registered
674 trademark.  It was created by
675 @uref{http://en.wikipedia.org/wiki/User:Rohitbd, Rohitbd} and
676 placed under the GNU Free Documentation License version 1.2.  We
677 found the image on
678 @uref{http://commons.wikimedia.org/wiki/Category:Microsoft_Windows_logos,
679 this Wikipedia Commons page}.
680
681 @end macro
682
683 @end ifset