]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
* scripts/lilypond-book.py (Lilypond_file_snippet.ly): don't copy
[lilypond.git] / Documentation / user / macros.itexi
1 @c -*-texinfo-*-
2
3 @tex
4 \input feta20.tex
5 \font\fetasixteen=feta16
6 \def\fetafont{\fetasixteen}
7 \def\fetachar#1{\hbox{\fetasixteen#1}}
8 @end tex
9
10 @c Reference GLOSsary
11 @macro rglos {NAME}
12 @ifhtml
13 @c ugh: @ref assumes that external refs are split documents too
14 @html
15 <a style="text-decoration: none; color: inherit;" href="../music-glossary.html#\NAME\">\NAME\</a>@c
16 @end html
17 @end ifhtml
18 @ifnothtml
19 \NAME\@c
20 @end ifnothtml
21 @end macro
22
23
24 @ifnottex
25   @macro texisharp {word}
26   #
27   @end macro
28   @macro texiflat {word}
29   b
30   @end macro
31 @end ifnottex
32
33 @iftex
34  @macro texiflat {word}
35  @tex
36  \\kern0.15em\\fetachar\\fetaflat
37  @end tex
38  @end macro
39  @macro texisharp {word}
40   @tex
41   \\raise0.5ex\\fetachar\\fetasharp
42   @end tex
43   @end macro
44 @end iftex
45
46
47 @macro arrow{}
48 @iftex
49 @tex $\\Rightarrow$ @end tex@c
50 @end iftex
51 @ifhtml
52 @html
53 &rarr;
54 @end html
55 @end ifhtml
56 @ifinfo
57 -->
58 @end ifinfo
59 @end macro
60
61
62
63 @c dup?
64
65 @ifhtml
66
67  @c ***** HTML *****
68
69  @macro internalsref{NAME}
70  @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
71  @c should we do this? 
72  @cindex @code{\NAME\}
73  @end macro
74
75  @macro hyphenatedinternalsref{NAME,NODENAME}
76  @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c
77  @c should we do this? 
78  @cindex @code{\NAME\}
79  @end macro
80
81  @macro inputfileref{DIR,NAME}
82  @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
83  @end macro
84
85 @end ifhtml
86
87 @ifinfo
88
89 @c **** INFO ****
90 @macro internalsref{NAME}
91 @inforef{\NAME\,,lilypond/lilypond-internals}@c
92 @cindex \NAME\@c
93 @end macro
94
95 @macro hyphenatedinternalsref{NAME,NODENAME}
96 @inforef{\NODENAME\,,lilypond-internals}@c
97 @c should we do this? 
98 @cindex @code{\NAME\}
99 @end macro
100
101 @macro inputfileref{DIR,NAME}
102 @file{\DIR\/\NAME\}
103 @end macro
104
105
106 @macro usermanref{NAME}
107 @ref{\NAME\,,,lilypond/lilypond}@c
108 @end macro
109
110 @end ifinfo
111
112 @iftex
113 @c **** TEX ****
114
115 @macro internalsref{NAME}@c
116 @cindex @code{\NAME\} @c
117 @code{\NAME\}@c
118 @end macro
119
120 @macro inputfileref{DIR,NAME}@c
121 @file{\DIR\/\NAME\}@c
122 @end macro
123
124 @macro hyphenatedinternalsref{NAME,NODENAME}
125 @code{\NAME\}@c
126 @c should we do this? 
127 @cindex @code{\NAME\} @c
128 @end macro
129
130
131
132 @macro seeinternals{NAME}
133 internals document,  @internalsref{\NAME\}
134 @end macro
135 @end iftex
136
137 @c **** not TEX ****
138
139 @ifnottex
140  @macro seeinternals{NAME}
141  @internalsref{\NAME\}
142  @end macro
143 @end ifnottex
144
145 @ifnotinfo
146  @macro usermanref{NAME}
147  @ref{\NAME\}@c
148  @end macro
149 @end ifnotinfo
150
151 @macro refbugs
152 @noindent
153 @subsubheading Bugs
154
155 @end macro
156
157 @macro seealso
158 @noindent
159 @subsubheading See also
160
161 @end macro
162
163 @macro refcommands
164 @noindent
165 @subsubheading Predefined commands
166
167 @end macro
168
169 @macro context{NAME}@c
170 @code{\NAME\}@c should use internalsref
171 @cindex \NAME\@c
172 @end macro
173
174
175
176
177 @c
178 @c ARGGGHHHHH! I want
179 @c @cindex @code{@backslash\WHAT\}
180 @c how do I do that?
181 @c   --hwn
182
183 @macro refcommand{WHAT}
184 @cindex @code{\WHAT\}
185 @code{\WHAT\}, 
186 @end macro