]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/macros.itexi
Use @inforef iso @uref for
[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
65 @ifhtml
66
67  @c ***** HTML *****
68
69  @macro internalsref{NAME}
70  @c makeinfo-4.7 encodes html names
71  @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
72  @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 @ifinfo
91
92 @c **** INFO ****
93 @macro internalsref{NAME}
94 @inforef{\NAME\,,lilypond/lilypond-internals}@c
95 @cindex \NAME\@c
96 @end macro
97
98 @macro hyphenatedinternalsref{NAME,NODENAME}
99 @c FIXME: suspicious info file name?
100 @inforef{\NODENAME\,,lilypond-internals}@c
101 @c should we do this? 
102 @cindex @code{\NAME\}
103 @end macro
104
105 @macro inputfileref{DIR,NAME}
106 @file{\DIR\/\NAME\}
107 @end macro
108
109
110 @macro usermanref{NAME}
111 @ref{\NAME\,,,lilypond/lilypond}@c
112 @end macro
113
114 @end ifinfo
115
116 @iftex
117 @c **** TEX ****
118
119 @macro internalsref{NAME}@c
120 @cindex @code{\NAME\} @c
121 @code{\NAME\}@c
122 @end macro
123
124 @macro inputfileref{DIR,NAME}@c
125 @file{\DIR\/\NAME\}@c
126 @end macro
127
128 @macro hyphenatedinternalsref{NAME,NODENAME}
129 @code{\NAME\}@c
130 @c should we do this? 
131 @cindex @code{\NAME\} @c
132 @end macro
133
134
135
136 @macro seeinternals{NAME}
137 internals document,  @internalsref{\NAME\}
138 @end macro
139 @end iftex
140
141 @c **** not TEX ****
142
143 @ifnottex
144  @macro seeinternals{NAME}
145  @internalsref{\NAME\}
146  @end macro
147 @end ifnottex
148
149 @ifnotinfo
150  @macro usermanref{NAME}
151  @ref{\NAME\}@c
152  @end macro
153 @end ifnotinfo
154
155 @macro refbugs
156 @noindent
157 @subsubheading Bugs
158
159 @end macro
160
161 @macro seealso
162 @noindent
163 @subsubheading See also
164
165 @end macro
166
167 @macro refcommands
168 @noindent
169 @subsubheading Predefined commands
170
171 @end macro
172
173 @macro context{NAME}@c
174 @code{\NAME\}@c should use internalsref
175 @cindex \NAME\@c
176 @end macro
177
178
179
180
181 @c
182 @c ARGGGHHHHH! I want
183 @c @cindex @code{@backslash\WHAT\}
184 @c how do I do that?
185 @c   --hwn
186
187 @macro refcommand{WHAT}
188 @cindex @code{\WHAT\}
189 @code{\WHAT\}, 
190 @end macro