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