]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/de/user/macros.itexi
Merge commit 'd77d089' into jneeman
[lilypond.git] / Documentation / de / user / macros.itexi
1 @c -*- coding: utf-8; mode: texinfo; -*-
2
3 @c FIXME: rearranged this file; macros that don't depend on the output
4 @c format should go at the beginning.  -gp
5
6 @c in retrospect this is _not_ one of the output-insensitive macros.
7 @c I'll fix it soon.
8 @c usage: @lsr{ancient,custodes.ly}
9 @macro lsr{DIR,NAME}
10 @uref{source/input/lsr/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
11 @end macro
12
13 @macro lsrdir{DIR}
14 @uref{source/input/lsr/\DIR\/collated-files.html,@file{\DIR\}}
15 @end macro
16
17 @ifnottex
18   @macro texisharp {word}
19   #
20   @end macro
21   @macro texiflat {word}
22   b
23   @end macro
24 @end ifnottex
25
26 @c FIXME, use \fetaaccidentalsXMC?
27 @c \\kern0.15em\\fetachar\\fetaflat
28 @iftex
29  @macro texiflat {word}
30  @tex
31  FIXME: fetaflat
32  @end tex
33  @end macro
34 @c FIXME, use \fetaaccidentalsXC?
35 @c  \\raise0.5ex\\fetachar\\fetasharp
36  @macro texisharp {word}
37   @tex
38   FIXME: fetasharp
39   @end tex
40   @end macro
41 @end iftex
42
43
44 @macro arrow{}
45 @iftex
46 @tex $\\Rightarrow$ @end tex@c
47 @end iftex
48 @ifhtml
49 @html
50 →
51 @end html
52 @end ifhtml
53 @ifinfo
54 -->
55 @end ifinfo
56 @end macro
57
58
59 @c we need this since @q{\} doesn't work with makeinfo 4.8 --
60 @c say @q{@value{backslash}} instead
61 @set backslash \
62
63
64 @ifhtml
65 @c ***** HTML *****
66
67 @c makeinfo-4.7 encodes html names, which means that nodes that
68 @c contain nonalphanum characters will be broken links on the website.
69 @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
70 @c @inforef{} adds ``See'' to the sentence, which is annoying, but
71 @c better than a broken link.
72 @c @inforef{\NAME\,,lilypond-internals}@c
73 @c using @ref without punctuation is OK without for formats other than info
74
75 @c annoying parentheses stripped by add-html-footer.py
76 @macro internalsref{NAME}
77 @vindex \NAME\
78 @ref{\NAME\,,,lilypond-internals}
79 @end macro
80
81 @c usage: @inputfileref{input@/regression,FILE@/-NAME.ly}
82 @macro inputfileref{DIR,NAME}
83 @uref{source/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
84 @end macro
85
86 @c annoying parentheses stripped by add-html-footer.py
87 @macro rglos{NAME}
88 @vindex \NAME\
89 @ref{\NAME\,,,music-glossary}
90 @end macro
91
92 @c to get decent German quotes in `foo'
93 @macro q{TEXT}
94 @html
95 ‚\TEXT\‘
96 @end html
97 @end macro
98
99 @c to get decent German quotes in ``foo''
100 @macro qq{TEXT}
101 @html
102 „\TEXT\“
103 @end html
104 @end macro
105
106 @end ifhtml
107
108
109 @ifdocbook
110 @c ***** DOCBOOK-XML *****
111
112 @macro internalsref{NAME}
113 @vindex \NAME\
114 @ref{\NAME\,,,lilypond-internals}
115 @end macro
116
117 @macro inputfileref{DIR,NAME}
118 @uref{source/\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}
119 @end macro
120
121 @macro rglos{NAME}
122 @vindex \NAME\
123 @ref{\NAME\,,,music-glossary}
124 @end macro
125
126 @c to get decent German quotes in `foo'
127 @macro q{TEXT}
128 @xml
129 ‚\TEXT\‘
130 @end xml
131 @end macro
132
133 @c to get decent German quotes in ``foo''
134 @macro qq{TEXT}
135 @xml
136 „\TEXT\“
137 @end xml
138 @end macro
139
140 @end ifdocbook
141
142
143 @ifinfo
144 @c **** INFO ****
145
146 @macro internalsref{NAME}
147 @vindex \NAME\
148 @inforef{\NAME\,,lilypond-internals}
149 @end macro
150
151 @macro inputfileref{DIR,NAME}
152 @file{\DIR\/\NAME\}
153 @end macro
154
155 @macro rglos{NAME}@c
156 @vindex \NAME\
157 @inforef{\NAME\,,,music-glossary}
158 @end macro
159
160 @macro usermanref{NAME}
161 @inforef{\NAME\}
162 @end macro
163
164 @c to get decent quotes in `foo'
165 @macro q{TEXT}
166 ‚\TEXT\‘
167 @end macro
168
169 @c to get decent quotes in ``foo''
170 @macro qq{TEXT}
171 „\TEXT\“
172 @end macro
173
174 @end ifinfo
175
176
177 @c **** TEX ****
178 @iftex
179
180 @macro internalsref{NAME}
181 @vindex \NAME\
182 @code{\NAME\}
183 @end macro
184
185 @macro inputfileref{DIR,NAME}
186 @file{\DIR\/@/\NAME\}
187 @end macro
188
189 @macro rglos {NAME}
190 @vindex \NAME\
191 @code{\NAME\}
192 @end macro
193
194 @macro seeinternals{NAME}
195 internals document, @internalsref{\NAME\}
196 @end macro
197
198 @macro usermanref{NAME}
199 user manual, @internalsref{\NAME\}
200 @end macro
201
202 @tex
203 % from german.sty
204 \def\allowhyphens{%
205   \penalty\@M
206   \hskip\z@skip}
207
208 \gdef\set@low@box#1{%
209   \setbox\tw@\hbox{,}%
210   \setbox\z@\hbox{#1}%
211   \setbox\z@\hbox{%
212     \dimen@\ht\z@
213     \advance\dimen@ -\ht\tw@
214     \lower\dimen@\box\z@}%
215   \ht\z@\ht\tw@
216   \dp\z@\dp\tw@}
217
218 \gdef\save@sf@q#1{%
219   {\ifhmode
220      \edef\@SF{\spacefactor\the\spacefactor}%
221    \else
222      \let\@SF\empty
223    \fi
224    \leavevmode #1
225    \@SF}}
226
227 \gdef\glq{%
228   \save@sf@q{%
229     \set@low@box{'\/}%
230     \box\z@
231     \kern-.04em
232     \allowhyphens}}
233 \gdef\grq{%
234   \save@sf@q{%
235     \kern-.0125em
236     `%
237     \kern.07em}}
238 \gdef\glqq{%
239   \save@sf@q{%
240     \set@low@box{''\/}%
241     \box\z@
242     \kern-.04em
243     \allowhyphens}}
244 \gdef\grqq{%
245   \save@sf@q{%
246     \kern-.07em
247     ``%
248     \kern.07em}}
249 @end tex
250
251 @c to get decent quotes in `foo'
252 @macro q{TEXT}
253 @glq\TEXT\@grq
254 @end macro
255
256 @c to get decent quotes in ``foo''
257 @macro qq{TEXT}
258 @glqq\TEXT\@grqq
259 @end macro
260
261 @end iftex
262
263
264 @ifnottex
265 @c **** not TEX ****
266
267 @macro seeinternals{NAME}
268 @internalsref{\NAME\}
269 @end macro
270
271 @ifnotinfo
272 @macro usermanref{NAME}
273 @ref{\NAME\}
274 @end macro
275 @end ifnotinfo
276
277 @end ifnottex
278
279
280 @c **** ALL ****
281
282 @macro refbugs
283 @noindent
284 @subsubheading Bugs
285
286 @end macro
287
288 @macro moreinfo
289 @subheading More information
290
291 @end macro
292
293 @macro seealso
294 @noindent
295 @subsubheading See also
296
297 @end macro
298
299 @macro refcommands
300 @noindent
301 @subsubheading Predefined commands
302
303 @end macro
304
305 @macro context{NAME}
306 @vindex \NAME\
307 @code{\NAME\}@c should use internalsref
308 @end macro
309
310 @macro refcommand{WHAT}
311 @vindex \WHAT\
312 @code{\WHAT\}
313 @end macro
314
315 @macro commonprop
316 @noindent
317 @subsubheading Commonly tweaked properties
318
319 @end macro
320
321 @macro funindex {WORD}
322 @findex \WORD\
323 @kindex \WORD\
324 @end macro
325
326 @c EOF