]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
Comment-out \fetaflat,
[lilypond.git] / Documentation / user / macros.itexi
1 @c -*- coding: latin-1; mode: 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 @c FIXME, use \fetaaccidentalsXMC?
34 @c \\kern0.15em\\fetachar\\fetaflat
35 @iftex
36  @macro texiflat {word}
37  @tex
38  FIXME: fetaflat
39  @end tex
40  @end macro
41 @c FIXME, use \fetaaccidentalsXC?
42 @c  \\raise0.5ex\\fetachar\\fetasharp
43  @macro texisharp {word}
44   @tex
45   FIXME: fetasharp
46   @end tex
47   @end macro
48 @end iftex
49
50
51 @macro arrow{}
52 @iftex
53 @tex $\\Rightarrow$ @end tex@c
54 @end iftex
55 @ifhtml
56 @html
57 &rarr;
58 @end html
59 @end ifhtml
60 @ifinfo
61 -->
62 @end ifinfo
63 @end macro
64
65
66
67 @c dup?
68 @ifhtml
69
70  @c ***** HTML *****
71
72 @macro internalsref{NAME}@c
73 @c makeinfo-4.7 encodes html names, which means that nodes that
74 @c contain nonalphanum characters will be broken links on the website.
75 @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
76 @c @inforef{} adds ``See'' to the sentence, which is annoying, but
77 @c better than a broken link.
78 @c @inforef{\NAME\,,lilypond-internals}@c
79 @c using @ref without punctuation is OK without for formats other than info
80 @ref{\NAME\,,,lilypond-internals}@c
81 @c should we do this? 
82 @findex \NAME\
83 @end macro
84
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  @findex @code{\NAME\}
103  @end macro
104
105
106  @macro inputfileref{DIR,NAME}
107  @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
108  @end macro
109
110 @end ifdocbook
111
112 @ifinfo
113
114 @c **** INFO ****
115 @macro internalsref{NAME}
116 @inforef{\NAME\,,lilypond/lilypond-internals}@c
117 @findex \NAME\@c
118 @end macro
119
120
121 @macro inputfileref{DIR,NAME}
122 @file{\DIR\/\NAME\}
123 @end macro
124
125
126 @macro usermanref{NAME}
127 @ref{\NAME\,,,lilypond/lilypond}@c
128 @end macro
129
130 @end ifinfo
131
132 @iftex
133 @c **** TEX ****
134
135 @macro internalsref{NAME}@c
136 @findex \NAME\ @c
137 @code{\NAME\}@c
138 @end macro
139
140 @macro inputfileref{DIR,NAME}@c
141 @file{\DIR\/@/\NAME\}@c
142 @end macro
143
144
145 @macro seeinternals{NAME}
146 internals document, @internalsref{\NAME\}
147 @end macro
148 @end iftex
149
150 @c **** not TEX ****
151
152 @ifnottex
153  @macro seeinternals{NAME}
154  @internalsref{\NAME\}
155  @end macro
156 @end ifnottex
157
158 @ifnotinfo
159  @macro usermanref{NAME}
160  @ref{\NAME\}@c
161  @end macro
162 @end ifnotinfo
163
164 @macro refbugs
165 @noindent
166 @subsubheading Bugs
167
168 @end macro
169
170 @macro seealso
171 @noindent
172 @subsubheading See also
173
174 @end macro
175
176 @macro refcommands
177 @noindent
178 @subsubheading Predefined commands
179
180 @end macro
181
182 @macro context{NAME}@c
183 @code{\NAME\}@c should use internalsref
184 @findex \NAME\@c
185 @end macro
186
187 @c I want
188 @c @cindex @code{@backslash\WHAT\}
189 @c how do I do that?  --hwn
190
191 @ignore
192
193 Is this question still relevant?  With texinfo 4.7,
194 escape the backslash, like so  --jcn
195
196 @macro refcommand{WHAT}
197 @cindex @code{\\\WHAT\}
198 @code{\WHAT\},
199 @end macro
200
201 @end ignore
202
203 @macro refcommand{WHAT}
204 @findex \WHAT\
205 @code{\WHAT\} 
206 @end macro
207