]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
f9a42dce90c7f492c467ec605a80ec52dd5db190
[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 @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 @inforef{\NAME\,,lilypond-internals}@c
75 @c should we do this? 
76 @cindex @code{\NAME\}
77 @end macro
78
79  @macro hyphenatedinternalsref{NAME,NODENAME}
80  @c @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c
81  @inforef{\NODENAME\,,lilypond-internals}@c
82  @c should we do this? 
83  @cindex @code{\NAME\}
84  @end macro
85
86  @macro inputfileref{DIR,NAME}
87  @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
88  @end macro
89
90 @end ifhtml
91
92 @c dup?
93 @ifdocbook
94
95  @c ***** DOCBOOK-XML *****
96
97  @macro internalsref{NAME}
98  @c makeinfo-4.7 encodes html names
99  @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
100  @inforef{\NAME\,,lilypond-internals}@c
101  @c should we do this? 
102  @cindex @code{\NAME\}
103  @end macro
104
105  @macro hyphenatedinternalsref{NAME,NODENAME}
106  @c @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c
107  @inforef{\NODENAME\,,lilypond-internals}@c
108  @c should we do this? 
109  @cindex @code{\NAME\}
110  @end macro
111
112  @macro inputfileref{DIR,NAME}
113  @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
114  @end macro
115
116 @end ifdocbook
117
118 @ifinfo
119
120 @c **** INFO ****
121 @macro internalsref{NAME}
122 @inforef{\NAME\,,lilypond/lilypond-internals}@c
123 @cindex \NAME\@c
124 @end macro
125
126 @macro hyphenatedinternalsref{NAME,NODENAME}
127 @c FIXME: suspicious info file name?
128 @inforef{\NODENAME\,,lilypond-internals}@c
129 @c should we do this? 
130 @cindex @code{\NAME\}
131 @end macro
132
133 @macro inputfileref{DIR,NAME}
134 @file{\DIR\/\NAME\}
135 @end macro
136
137
138 @macro usermanref{NAME}
139 @ref{\NAME\,,,lilypond/lilypond}@c
140 @end macro
141
142 @end ifinfo
143
144 @iftex
145 @c **** TEX ****
146
147 @macro internalsref{NAME}@c
148 @cindex @code{\NAME\} @c
149 @code{\NAME\}@c
150 @end macro
151
152 @macro inputfileref{DIR,NAME}@c
153 @file{\DIR\/\NAME\}@c
154 @end macro
155
156 @macro hyphenatedinternalsref{NAME,NODENAME}
157 @code{\NAME\}@c
158 @c should we do this? 
159 @cindex @code{\NAME\} @c
160 @end macro
161
162
163
164 @macro seeinternals{NAME}
165 internals document,  @internalsref{\NAME\}
166 @end macro
167 @end iftex
168
169 @c **** not TEX ****
170
171 @ifnottex
172  @macro seeinternals{NAME}
173  @internalsref{\NAME\}
174  @end macro
175 @end ifnottex
176
177 @ifnotinfo
178  @macro usermanref{NAME}
179  @ref{\NAME\}@c
180  @end macro
181 @end ifnotinfo
182
183 @macro refbugs
184 @noindent
185 @subsubheading Bugs
186
187 @end macro
188
189 @macro seealso
190 @noindent
191 @subsubheading See also
192
193 @end macro
194
195 @macro refcommands
196 @noindent
197 @subsubheading Predefined commands
198
199 @end macro
200
201 @macro context{NAME}@c
202 @code{\NAME\}@c should use internalsref
203 @cindex \NAME\@c
204 @end macro
205
206
207
208
209 @c
210 @c ARGGGHHHHH! I want
211 @c @cindex @code{@backslash\WHAT\}
212 @c how do I do that?
213 @c   --hwn
214
215 @macro refcommand{WHAT}
216 @cindex @code{\WHAT\}
217 @code{\WHAT\}, 
218 @end macro