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