6
<expand|tmdoc-title|Using the tmdoc style>
8
Besides the <apply|hyper-link|copyright information|copyright.en.tm> macros
9
and <apply|hyper-link|traversal macros|traversal.en.tm>, which have been
10
documented before, the <tmstyle|tmdoc> style comes with a certain number of
11
other macros and functions, which you should use whenever appropriate:
14
<expand|item*|<markup|key>>This macro is used to indicate keyboard input
15
like <key|C-x C-s>. The specialized macros <markup|kbd-gen>,
16
<markup|kbd-text>, <markup|kbd-math>, <markup|kbd-symb>,
17
<markup|kbd-big>, <markup|kbd-large>, <markup|kbd-ia>, <markup|kbd-exec>
18
and <markup|kbd-table> are used for keyboard input corresponding to a
19
specific type of action or mode. For instance, <markup|kbd-math>
20
corresponds to keyboard shortcuts for mathematical operations, such as
21
<expand|kbd-math|f>, which starts a fraction.
23
<expand|item*|<markup|menu>>This function with an arbitrary number of
24
arguments indicates a menu like <apply|menu|File> or
25
<apply|menu|Document|Language>. Menu entries are automatically translated
28
<expand|item*|<markup|markup>>This macro is used in order to indicate a
29
macro or a function like <markup|section>.
31
<expand|item*|<markup|tmstyle>>This macro indicates the name of a
32
<TeXmacs> style file or package like <tmstyle|article>.
34
<expand|item*|<markup|tmpackage>>This macro indicates the name of a
35
<TeXmacs> package like <tmpackage|std-markup>.
37
<expand|item*|<markup|tmdtd>>This macro indicates the name of a <TeXmacs>
38
<abbr|d.t.d.> like <tmdtd|number-env>.
41
Notice that the contents of none of the above tags should be translated
42
into foreign languages. Indeed, for menu tags, the translations are done
43
automatically, so as to keep the translations synchronized with the
44
translations of the actual <TeXmacs> menus. In the cases of markup, styles,
45
packages and <abbr|d.t.d.>s, it is important to keep the original name,
46
because it often corresponds to a file name.
48
The following macros and functions are used for linking and indexing
49
purposes, although they should be improved in the future:
52
<expand|item*|<markup|simple-link>>This macro takes an URL
53
<with|mode|math|x> as argument and is a hyperlink with name and
54
destination <with|mode|math|x>.
56
<expand|item*|<markup|hyper-link>>This macro is a usual hyperlink.
58
<expand|item*|<markup|concept-link>>This macro takes a concept as
59
argument. Later on an appropriate hyperlink might be created
60
automatically from this and the other documentation.
62
<expand|item*|<markup|only-index>>Index a simple string.
64
<expand|item*|<markup|def-index>>Definition of a new concept; the text is
65
printed in italic and indexed.
67
<expand|item*|<markup|re-index>>Reappearance of an already defined
68
concept; the text is printed in roman and put in the index.
71
The following tags are also frequently used:
74
<expand|item*|<markup|icon>>Link to an icon in a central directory like
75
<verbatim|$TEXMACS_PATH/doc/images/pixmaps>.
77
<expand|item*|<markup|screenshot>>Link to a screenshot. The actual
78
screenshots are stored in a central directory like
79
<verbatim|$TEXMACS_PATH/doc/images/screenshots>.
81
<expand|item*|<markup|scheme>>The <value|scheme> language.
83
<expand|item*|<markup|cpp>>The <value|cpp> language.
85
<expand|item*|<markup|framed-fragment>>For displaying a piece of code in
88
<expand|item*|<markup|scheme-fragment>>For multi-paragraph <value|scheme>
91
<expand|item*|<markup|cpp-fragment>>For multi-paragraph <value|cpp> code.
93
<expand|item*|<markup|tm-fragment>>For a piece of <TeXmacs> markup code
94
in <value|scheme> format.
96
<expand|item*|<markup|scheme-code>>For a short piece of <value|scheme>
99
<expand|item*|<markup|cpp-code>>For a short piece of <value|cpp> code.
101
<expand|item*|<markup|descriptive-table>>For descriptive tables; such
102
tables can be used to document lists of keyboard shortcuts, different
103
types of markup, <abbr|etc.>
106
The <tmstyle|tmdoc> style inherits from the <tmstyle|generic> style and you
107
should use macros like <markup|em>, <markup|verbatim>, <markup|itemize>,
108
<abbr|etc.> from this style whenever appropriate.
110
<apply|tmdoc-copyright|1998--2002|Joris van der Hoeven>
112
<expand|tmdoc-license|Permission is granted to copy, distribute and/or
113
modify this document under the terms of the GNU Free Documentation License,
114
Version 1.1 or any later version published by the Free Software Foundation;
115
with no Invariant Sections, with no Front-Cover Texts, and with no
116
Back-Cover Texts. A copy of the license is included in the section entitled
117
"GNU Free Documentation License".>
122
<associate|paragraph width|150mm>
123
<associate|odd page margin|30mm>
124
<associate|shrinking factor|4>
125
<associate|page right margin|30mm>
126
<associate|page top margin|30mm>
127
<associate|reduction page right margin|25mm>
128
<associate|page type|a4>
129
<associate|reduction page bottom margin|15mm>
130
<associate|even page margin|30mm>
131
<associate|reduction page left margin|25mm>
132
<associate|page bottom margin|30mm>
133
<associate|reduction page top margin|15mm>
134
<associate|language|english>
140
<associate|idx-1|<tuple|<uninit>|?>>
141
<associate|idx-2|<tuple|<uninit>|?>>
142
<associate|idx-3|<tuple|<uninit>|?>>
143
<associate|idx-4|<tuple|<uninit>|?>>
144
<associate|idx-5|<tuple|<uninit>|?>>
145
<associate|idx-6|<tuple|<uninit>|?>>
146
<associate|idx-7|<tuple|<uninit>|?>>
147
<associate|idx-8|<tuple|<uninit>|?>>
148
<associate|idx-9|<tuple|<uninit>|?>>
149
<associate|idx-40|<tuple|<uninit>|?>>
150
<associate|idx-10|<tuple|<uninit>|?>>
151
<associate|idx-20|<tuple|<uninit>|?>>
152
<associate|idx-30|<tuple|<uninit>|?>>
153
<associate|idx-41|<tuple|<uninit>|?>>
154
<associate|idx-11|<tuple|<uninit>|?>>
155
<associate|idx-21|<tuple|<uninit>|?>>
156
<associate|idx-31|<tuple|<uninit>|?>>
157
<associate|idx-42|<tuple|<uninit>|?>>
158
<associate|idx-12|<tuple|<uninit>|?>>
159
<associate|idx-22|<tuple|<uninit>|?>>
160
<associate|idx-32|<tuple|<uninit>|?>>
161
<associate|idx-43|<tuple|<uninit>|?>>
162
<associate|idx-33|<tuple|<uninit>|?>>
163
<associate|idx-13|<tuple|<uninit>|?>>
164
<associate|idx-23|<tuple|<uninit>|?>>
165
<associate|idx-44|<tuple|<uninit>|?>>
166
<associate|idx-34|<tuple|<uninit>|?>>
167
<associate|idx-14|<tuple|<uninit>|?>>
168
<associate|idx-24|<tuple|<uninit>|?>>
169
<associate|idx-45|<tuple|<uninit>|?>>
170
<associate|idx-35|<tuple|<uninit>|?>>
171
<associate|idx-15|<tuple|<uninit>|?>>
172
<associate|idx-25|<tuple|<uninit>|?>>
173
<associate|idx-36|<tuple|<uninit>|?>>
174
<associate|idx-16|<tuple|<uninit>|?>>
175
<associate|idx-26|<tuple|<uninit>|?>>
176
<associate|idx-37|<tuple|<uninit>|?>>
177
<associate|idx-17|<tuple|<uninit>|?>>
178
<associate|idx-27|<tuple|<uninit>|?>>
179
<associate|idx-38|<tuple|<uninit>|?>>
180
<associate|idx-18|<tuple|<uninit>|?>>
181
<associate|idx-28|<tuple|<uninit>|?>>
182
<associate|idx-39|<tuple|<uninit>|?>>
183
<associate|idx-19|<tuple|<uninit>|?>>
184
<associate|idx-29|<tuple|<uninit>|?>>
191
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|brown>|tmdoc>>|<pageref|idx-1>>
193
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
194
green>|key>>|<pageref|idx-2>>
196
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
197
green>|kbd-gen>>|<pageref|idx-3>>
199
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
200
green>|kbd-text>>|<pageref|idx-4>>
202
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
203
green>|kbd-math>>|<pageref|idx-5>>
205
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
206
green>|kbd-symb>>|<pageref|idx-6>>
208
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
209
green>|kbd-big>>|<pageref|idx-7>>
211
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
212
green>|kbd-large>>|<pageref|idx-8>>
214
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
215
green>|kbd-ia>>|<pageref|idx-9>>
217
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
218
green>|kbd-exec>>|<pageref|idx-10>>
220
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
221
green>|kbd-table>>|<pageref|idx-11>>
223
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
224
green>|kbd-math>>|<pageref|idx-12>>
226
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
227
green>|menu>>|<pageref|idx-13>>
229
<tuple|<tuple|<with|font family|<quote|ss>|File>>|<pageref|idx-14>>
231
<tuple|<tuple|<with|font family|<quote|ss>|Document>|<with|font
232
family|<quote|ss>|Language>>|<pageref|idx-15>>
234
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
235
green>|markup>>|<pageref|idx-16>>
237
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
238
green>|section>>|<pageref|idx-17>>
240
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
241
green>|tmstyle>>|<pageref|idx-18>>
243
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|brown>|article>>|<pageref|idx-19>>
245
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
246
green>|tmpackage>>|<pageref|idx-20>>
248
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|brown>|std-markup>>|<pageref|idx-21>>
250
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
251
green>|tmdtd>>|<pageref|idx-22>>
253
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
254
magenta>|number-env>>|<pageref|idx-23>>
256
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
257
green>|simple-link>>|<pageref|idx-24>>
259
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
260
green>|hyper-link>>|<pageref|idx-25>>
262
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
263
green>|concept-link>>|<pageref|idx-26>>
265
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
266
green>|only-index>>|<pageref|idx-27>>
268
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
269
green>|def-index>>|<pageref|idx-28>>
271
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
272
green>|re-index>>|<pageref|idx-29>>
274
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
275
green>|icon>>|<pageref|idx-30>>
277
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
278
green>|screenshot>>|<pageref|idx-31>>
280
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
281
green>|scheme>>|<pageref|idx-32>>
283
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
284
green>|framed-fragment>>|<pageref|idx-33>>
286
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
287
green>|scheme-fragment>>|<pageref|idx-34>>
289
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
290
green>|cpp-fragment>>|<pageref|idx-35>>
292
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
293
green>|tm-fragment>>|<pageref|idx-36>>
295
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
296
green>|scheme-code>>|<pageref|idx-37>>
298
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
299
green>|cpp-code>>|<pageref|idx-38>>
301
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
302
green>|descriptive-table>>|<pageref|idx-39>>
304
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|brown>|tmdoc>>|<pageref|idx-40>>
306
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|brown>|generic>>|<pageref|idx-41>>
308
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
309
green>|em>>|<pageref|idx-42>>
311
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
312
green>|verbatim>>|<pageref|idx-43>>
314
<tuple|<tuple|<with|font family|<quote|tt>|color|<quote|dark
315
green>|itemize>>|<pageref|idx-44>>