]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
add \global to definitions for
[lilypond.git] / Documentation / user / macros.itexi
1 @c -*-texinfo-*-
2
3 @tex
4 \input feta20.tex
5 \global\font\fetasixteen=feta16
6 \gdef\fetafont{\fetasixteen}
7 \gdef\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 @ifhtml
65
66  @c ***** HTML *****
67
68 @macro internalsref{NAME}@c
69 @c makeinfo-4.7 encodes html names, which means that nodes that
70 @c contain nonalphanum characters will be broken links on the website.
71 @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
72 @c @inforef{} adds ``See'' to the sentence, which is annoying, but
73 @c better than a broken link.
74 @c @inforef{\NAME\,,lilypond-internals}@c
75 @c using @ref without punctuation is OK without for formats other than info
76 @ref{\NAME\,,,lilypond-internals}@c
77 @c should we do this? 
78 @cindex @code{\NAME\}
79 @end macro
80
81  @c what is this? -- jcn
82  @macro hyphenatedinternalsref{NAME,NODENAME}
83  @c @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c
84  @c @inforef{\NODENAME\,,lilypond-internals}@c
85  @c should we do this? 
86  @c using @ref without punctuation is OK without for formats other than info
87  @ref{\NODENAME\,,\NAME\,lilypond-internals}@c
88  @cindex @code{\NAME\}
89  @end macro
90
91  @macro inputfileref{DIR,NAME}
92  @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
93  @end macro
94
95 @end ifhtml
96
97 @c dup?
98 @ifdocbook
99
100  @c ***** DOCBOOK-XML *****
101
102  @macro internalsref{NAME}
103  @c makeinfo-4.7 encodes html names
104  @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
105  @inforef{\NAME\,,lilypond-internals}@c
106  @c should we do this? 
107  @cindex @code{\NAME\}
108  @end macro
109
110  @macro hyphenatedinternalsref{NAME,NODENAME}
111  @c @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c
112  @inforef{\NODENAME\,,lilypond-internals}@c
113  @c should we do this? 
114  @cindex @code{\NAME\}
115  @end macro
116
117  @macro inputfileref{DIR,NAME}
118  @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
119  @end macro
120
121 @end ifdocbook
122
123 @ifinfo
124
125 @c **** INFO ****
126 @macro internalsref{NAME}
127 @inforef{\NAME\,,lilypond/lilypond-internals}@c
128 @cindex \NAME\@c
129 @end macro
130
131 @macro hyphenatedinternalsref{NAME,NODENAME}
132 @c FIXME: suspicious info file name?
133 @inforef{\NODENAME\,,lilypond-internals}@c
134 @c should we do this? 
135 @cindex @code{\NAME\}
136 @end macro
137
138 @macro inputfileref{DIR,NAME}
139 @file{\DIR\/\NAME\}
140 @end macro
141
142
143 @macro usermanref{NAME}
144 @ref{\NAME\,,,lilypond/lilypond}@c
145 @end macro
146
147 @end ifinfo
148
149 @iftex
150 @c **** TEX ****
151
152 @macro internalsref{NAME}@c
153 @cindex @code{\NAME\} @c
154 @code{\NAME\}@c
155 @end macro
156
157 @macro inputfileref{DIR,NAME}@c
158 @file{\DIR\/\NAME\}@c
159 @end macro
160
161 @macro hyphenatedinternalsref{NAME,NODENAME}
162 @code{\NAME\}@c
163 @c should we do this? 
164 @cindex @code{\NAME\} @c
165 @end macro
166
167
168
169 @macro seeinternals{NAME}
170 internals document,  @internalsref{\NAME\}
171 @end macro
172 @end iftex
173
174 @c **** not TEX ****
175
176 @ifnottex
177  @macro seeinternals{NAME}
178  @internalsref{\NAME\}
179  @end macro
180 @end ifnottex
181
182 @ifnotinfo
183  @macro usermanref{NAME}
184  @ref{\NAME\}@c
185  @end macro
186 @end ifnotinfo
187
188 @macro refbugs
189 @noindent
190 @subsubheading Bugs
191
192 @end macro
193
194 @macro seealso
195 @noindent
196 @subsubheading See also
197
198 @end macro
199
200 @macro refcommands
201 @noindent
202 @subsubheading Predefined commands
203
204 @end macro
205
206 @macro context{NAME}@c
207 @code{\NAME\}@c should use internalsref
208 @cindex \NAME\@c
209 @end macro
210
211
212
213
214 @c
215 @c ARGGGHHHHH! I want
216 @c @cindex @code{@backslash\WHAT\}
217 @c how do I do that?
218 @c   --hwn
219
220 @macro refcommand{WHAT}
221 @cindex @code{\WHAT\}
222 @code{\WHAT\}, 
223 @end macro