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