6
<expand|tmdoc-title|Les primitives <TeXmacs>>
8
Cette page est loin d'�tre � jour. Il faudrait un fichier par cat�gorie et
9
une page par primitive, avec un exemple.
11
<section|Principales primitives de formatage>
14
<expand|item*|<verbatim|(document p1 ...
15
pn)>><with|mode|math|mode|text|><format|next line>Forme g�n�rale de
16
l'arbre d'�dition, document constitu� des paragraphes <verbatim|p1, ...,
17
pn>. Peut aussi �tre utilis� dans les sous-arbres pour cr�er un bloc de
18
paragraphes multiples dans des contextes o�, en temps normal, seule une
19
ligne est possible ; par exemple, les cellules d'un tableau
20
multi-paragraphes utilisent des noeuds de <verbatim|documents> imbriqu�s.
22
<expand|item*|<verbatim|(concat t1 ...
23
tn)>><with|mode|math|mode|text|><format|next line>Concat�nation
24
horizontale des arbres <verbatim|t1, ..., tn>. Le plus souvent, les
25
paragraphes de l'arbre d'�dition principal sont des concat�nations.
27
<expand|item*|<verbatim|(surround left right
28
body)>><with|mode|math|mode|text|><format|next line>Entoure un texte
29
multi-paragraphe <verbatim|body> par <verbatim|left> et <verbatim|right>.
31
<expand|item*|<verbatim|(hspace spc)> ou <verbatim|(hspace spc min
32
max)>><with|mode|math|mode|text|><format|next line>Espace horizontale de
33
longueur <verbatim|spc>. Les param�tres optionnels <verbatim|min> et
34
<verbatim|max> indiquent que l'espace peut varier entre ces valeurs.
35
Notez que certaines unit�s de longueurs, tel <verbatim|fn>, sont
36
automatiquement accompagn�es de param�tres de variation.
38
<expand|item*|<verbatim|(vspace* spc)> ou <verbatim|(vspace* spc min
39
max)>><with|mode|math|mode|text|><format|next line>Ins�re une espace
40
verticale de longueur <verbatim|spc> avant le paragraphe o� cette
43
<expand|item*|<verbatim|(vspace spc)> ou <verbatim|(vspace spc min
44
max)>><with|mode|math|mode|text|><format|next line>Ins�re une espace
45
verticale de longueur <verbatim|spc> apr�s le paragraphe o� cette
48
<expand|item*|<verbatim|(space spc bot
49
top)>><with|mode|math|mode|text|><format|next line>Ins�re une espace
50
horizontale de longueur <verbatim|spc>, dont la ligne inf�rieure est
51
situ�e � la hauteur <verbatim|top> et la ligne inf�rieure � la hauteur
54
<expand|item*|<verbatim|(htab spc)>><with|mode|math|mode|text|><format|next
55
line>Espace de tabulation de longueur minimale <verbatim|spc>.
57
<expand|item*|<verbatim|(split pos1 ...
58
posn)>><with|mode|math|mode|text|><format|next line>Scinde le paragraphe
59
courant en un tableau de <verbatim|n> colonnes, positionn�es �
60
\ <verbatim|pos1, ..., posn>.
62
<expand|item*|<verbatim|(move t x y)>><with|mode|math|mode|text|><format|next
63
line>D�place l'arbre n de x unit�s de longueur horizontalement et de y
64
unit�s de longueur verticalement.
66
<expand|item*|<verbatim|(resize t "normal" x1 y1 x2
67
y2)>><with|mode|math|mode|text|><format|next line>Transforme le cadre
68
<verbatim|t> en un nouveau cadre dont le coin inf�rieur gauche est situ�
69
en <verbatim|(x1,y1)> et le coin sup�rieur droit en <verbatim|(x2,y2)>.
71
<expand|item*|<verbatim|(resize t "extend" x1 y1 x2
72
y2)>><with|mode|math|mode|text|><format|next line>Identique au pr�c�dent,
73
mais le nouveau cadre inclut l'ancien.
75
<expand|item*|<verbatim|(format "line
76
break")>><with|mode|math|mode|text|><format|next line>Saut de ligne
79
<expand|item*|<verbatim|(format "new line")>><with|mode|math|mode|text|><format|next
80
line>Nouvelle ligne forc�e.
82
<expand|item*|<verbatim|(format "line
83
separator")>><with|mode|math|mode|text|><format|next line>Op�re comme la
84
commande <apply|TeX> <verbatim|&>.
86
<expand|item*|<verbatim|(format "next
87
line")>><with|mode|math|mode|text|><format|next line>Op�re comme la
88
commande <apply|TeX> <verbatim|\\\\>.
90
<expand|item*|<verbatim|(format "no line
91
break")>><with|mode|math|mode|text|><format|next line>Emp�che un saut de
94
<expand|item*|<verbatim|(format "no first
95
indentation")>><with|mode|math|mode|text|><format|next line>Emp�che
96
l'indentation � gauche du paragraphe.
98
<expand|item*|<verbatim|(format "no last
99
indentation")>><with|mode|math|mode|text|><format|next line>Emp�che
100
l'indentation � droite du paragraphe.
102
<expand|item*|<verbatim|(format "enable first
103
indentation")>><with|mode|math|mode|text|><format|next line>Force
104
l'indentation � gauche du paragraphe.
106
<expand|item*|<verbatim|(format "enable last
107
indentation")>><with|mode|math|mode|text|><format|next line>Force
108
l'indentation � droite du paragraphe.
110
<expand|item*|<verbatim|(format "page
111
break")>><with|mode|math|mode|text|><format|next line>Saut de page forc�.
113
<expand|item*|<verbatim|(format "new page")>><with|mode|math|mode|text|><format|next
114
line>Nouvelle page forc�e.
116
<expand|item*|<verbatim|(format "no page break
117
before")>><with|mode|math|mode|text|><format|next line>Emp�che un saut de
120
<expand|item*|<verbatim|(format "no page break
121
after")>><with|mode|math|mode|text|><format|next line>Emp�che un saut de
124
<expand|item*|<verbatim|(format "with
125
limits")>><with|mode|math|mode|text|><format|next line>Indique que le
126
texte pr�c�dent est limit� en hauteur. En cons�quence, les indices et
127
exposants sont plac�s en-dessous et au-dessus du texte pr�c�dent.
130
<section|Constructions math�matiques>
133
<expand|item*|<verbatim|(group t)>><with|mode|math|mode|text|><format|next
134
line>Consid�re <verbatim|t> comme une entit� (un peu comme entour�
135
<verbatim|t> d'accolades dans <apply|TeX>).
137
<expand|item*|<verbatim|(left s)>><with|mode|math|mode|text|><format|next
138
line>Grand d�limiteur gauche <verbatim|s>.
140
<expand|item*|<verbatim|(middle s)>><with|mode|math|mode|text|><format|next
141
line>Grand s�parateur <verbatim|s>.
143
<expand|item*|<verbatim|(right s)>><with|mode|math|mode|text|><format|next
144
line>Grand d�limiteur droit <verbatim|s>.
146
<expand|item*|<verbatim|(big s)>><with|mode|math|mode|text|><format|next
147
line>Grand op�rateur <verbatim|s>.
149
<expand|item*|<verbatim|(lprime s)>><with|mode|math|mode|text|><format|next
150
line>Prime � gauche <verbatim|s>.
152
<expand|item*|<verbatim|(rprime s)>><with|mode|math|mode|text|><format|next
153
line>Prime � droite <verbatim|s>.
155
<expand|item*|<verbatim|(below t sub)>><with|mode|math|mode|text|><format|next
156
line>Indice <verbatim|sub> en-dessous de <verbatim|t>.
158
<expand|item*|<verbatim|(above t sup)>><with|mode|math|mode|text|><format|next
159
line>Exposant <verbatim|sup> au-dessus de <verbatim|t>.
161
<expand|item*|<verbatim|(lsub script)>><with|mode|math|mode|text|><format|next
162
line>Indice � gauche <verbatim|script> du texte qui suit.
164
<expand|item*|<verbatim|(lsup script)>><with|mode|math|mode|text|><format|next
165
line>Exposant � gauche <verbatim|script> du texte qui suit.
167
<expand|item*|<verbatim|(rsub script)>><with|mode|math|mode|text|><format|next
168
line>Indice � droite <verbatim|script> du texte pr�c�dent.
170
<expand|item*|<verbatim|(rsup script)>><with|mode|math|mode|text|><format|next
171
line>Exposant � droite <verbatim|script> du texte pr�c�dent.
173
<expand|item*|<verbatim|(frac num den)>><with|mode|math|mode|text|><format|next
174
line>Fraction de num�rateur <verbatim|num> et de d�nominateur
177
<expand|item*|<verbatim|(sqrt t)> ou <verbatim|(sqrt t
178
n)>><with|mode|math|mode|text|><format|next line>Racine carr�e de
179
<verbatim|t> ou racine <verbatim|n<rsup|i�me>> de <verbatim|t>.
181
<expand|item*|<verbatim|(wide t accent)>><with|mode|math|mode|text|><format|next
182
line>Large accent au-dessus de <verbatim|t>.
184
<expand|item*|<verbatim|(neg t)>><with|mode|math|mode|text|><format|next
185
line>Barre <verbatim|t> en diagonale.
187
<expand|item*|<verbatim|(tree root t1 ...
188
tn)>><with|mode|math|mode|text|><format|next line>Arbre de racine
189
<verbatim|root> et de branches <verbatim|t1, ..., tn>.
191
<expand|item*|<verbatim|(matrix t11 ... t1m ...... tn1 ... tnm n
192
m)>><with|mode|math|mode|text|><format|next line>Matrice <verbatim|n>,
193
<verbatim|m> dont les �l�ments sont les <verbatim|tij>.
195
<expand|item*|<verbatim|(table t11 ... t1m ...... tn1 ... tnm n
196
m)>><with|mode|math|mode|text|><format|next line>tableau <verbatim|n> par
197
<verbatim|m> dont les �l�ments sont les <verbatim|tij>.
199
<expand|item*|<verbatim|(mosaic t11 ... t1m ...... tn1 ... tnm n
200
m)>><with|mode|math|mode|text|><format|next line>tableau <verbatim|n> par
201
<verbatim|m> dont les �l�ments <verbatim|tij> peuvent �tre align�s et
204
<expand|item*|<verbatim|(mosaic item t pos x y
205
bg)>><with|mode|math|mode|text|><format|next line>Dans un mosa�que, champ
206
dont le contenu est <verbatim|t>, la position <verbatim|pos>, qui s'�tend
207
sur <verbatim|x> colonnes et \ <verbatim|y> lignes et a une couleur
208
d'arri�re-plan <verbatim|bg>.
211
<section|Variables d'environnement, macros, fonctions, etc...>
214
<expand|item*|<verbatim|(assign var t)>><with|mode|math|mode|text|><format|next
215
line>Donne � la variable d'environnement <verbatim|var> la valeur
218
<expand|item*|<verbatim|(with var1 val1 ... varn valn
219
body)>><with|mode|math|mode|text|><format|next line>Donne aux variables
220
d'environnement <verbatim|var1, ..., varn> les valeurs <verbatim|val1,
221
..., valn> dans <verbatim|body>.
223
<expand|item*|<verbatim|(expand f t1 ...
224
tn)>><with|mode|math|mode|text|><format|next line>R�sout la macro
225
<verbatim|f> avec les arguments <verbatim|t1, ..., tn>.
227
<expand|item*|<verbatim|(apply f t1 ...
228
tn)>><with|mode|math|mode|text|><format|next line>Applique la fonction
229
<verbatim|f> � <verbatim|t1, ..., tn>.
231
<expand|item*|<verbatim|(func arg1 ... argn
232
body)>><with|mode|math|mode|text|><format|next line>Fonction d'arguments
233
<verbatim|arg1, ..., argn> et de corps <verbatim|body>.
235
<expand|item*|<verbatim|(argument var)>><with|mode|math|mode|text|><format|next
236
line>Argument de macro <verbatim|var>.
238
<expand|item*|<verbatim|(value var)>><with|mode|math|mode|text|><format|next
239
line>Valeur de <verbatim|var>.
241
<expand|item*|<verbatim|(symbol s)>><with|mode|math|mode|text|><format|next
242
line>Pour saisir un symbole universel.
244
<expand|item*|<verbatim|(latex cmd)>><with|mode|math|mode|text|><format|next
245
line>Pour saisir une commande <apply|LaTeX>.
247
<expand|item*|<verbatim|(hybrid cmd)>><with|mode|math|mode|text|><format|next
248
line>Pour saisir un appel de fonction <apply|TeXmacs>, une commande
249
<apply|LaTeX> ou un symbole universel.
251
<expand|item*|<verbatim|(quote t)>><with|mode|math|mode|text|><format|next
252
line>Retourne la valeur de <verbatim|t>.
254
<expand|item*|<verbatim|(eval t)>><with|mode|math|mode|text|><format|next
255
line>�value <verbatim|t>.
257
<expand|item*|<verbatim|(delay (cmd t1 ...
258
tn))>><with|mode|math|mode|text|><format|next line>�value les arguments
259
<verbatim|t1, ..., tn> � <verbatim|u1, ..., un> et retourne
260
<verbatim|(cmd u1 ... un)>.
263
<section|Op�rateurs fonctionnels>
266
<expand|item*|<verbatim|(plus t u)>><with|mode|math|mode|text|><format|next
267
line>Additionne les nombres ou longueurs <verbatim|t> et <verbatim|u>.
269
<expand|item*|<verbatim|(minus t u)>><with|mode|math|mode|text|><format|next
270
line>Soustrait le nombre ou la longueur <verbatim|t> au nombre ou � la
271
longueur <verbatim|u>.
273
<expand|item*|<verbatim|(times t u)>><with|mode|math|mode|text|><format|next
274
line>Multiplie le nombre ou la longueur <verbatim|t> par le nombre ou la
275
longueur <verbatim|u>.
277
<expand|item*|<verbatim|(merge t u)>><with|mode|math|mode|text|><format|next
278
line>Concat�ne les cha�nes de caract�res <verbatim|t> et <verbatim|u>.
280
<expand|item*|<verbatim|(number t what)>><with|mode|math|mode|text|><format|next
281
line>Le nombre <verbatim|t> en format <verbatim|what> (romain, alpha,
284
<expand|item*|<verbatim|(translate t from
285
into)>><with|mode|math|mode|text|><format|next line>Traduit <verbatim|t>
286
de <verbatim|from> en <verbatim|into>.
289
<section|Autre contenu dynamique>
292
<expand|item*|<verbatim|(inactive t)>><with|mode|math|mode|text|><format|next
293
line>Rend inactif � l'�dition un op�rateur d'environnement ou un
296
<expand|item*|<verbatim|(label name)>><with|mode|math|mode|text|><format|next
297
line>�tiquette de nom <verbatim|name>.
299
<expand|item*|<verbatim|(reference name)>><with|mode|math|mode|text|><format|next
300
line>R�f�rence � l'�tiquette de nom <verbatim|name>.
302
<expand|item*|<verbatim|(write t aux)>><with|mode|math|mode|text|><format|next
303
line>�crit <verbatim|t> dans le tampon auxiliaire de donn�es
304
<verbatim|aux>. Cette construction est utilis�e pour cr�er les tables de
305
mati�res, bibliographies, glossaires, etc...
307
<expand|item*|<verbatim|(specific what
308
t)>><with|mode|math|mode|text|><format|next line>Indique que <verbatim|t>
309
n'appara�tra que lorsque le document sera converti en format
310
<verbatim|what>. Si <verbatim|what> correspond �
311
\ <space|0.2spc><verbatim|TeXmacs><space|0.2spc>, <verbatim|t>
312
n'appara�tra que dans <apply|TeXmacs>.
314
<expand|item*|<verbatim|(postscript file width height x1 y1 x2
315
y2)>><with|mode|math|mode|text|><format|next line>Image Postscript (ou
316
autre type d'image) contenue dans <verbatim|file>, de largeur
317
<verbatim|width>, de longueur <verbatim|length>, rogn�e suivant un cadre
318
d�fini par son coin inf�rieur gauche <verbatim|(x1,y1)> et son coin
319
inf�rieur droit <verbatim|(x2,y2)>. Si les param�tres <verbatim|width,
320
height, x1, y1, x2, y2> sont inexistants, les param�tres par d�faut de
321
l'image sont utilis�es. La hauteur et la largeur peuvent aussi �tre
322
indiqu�es sous la forme <verbatim|*mag> ou <verbatim|/schrink>, auquel
323
cas le(s) param�tre(s) affect�(s) sera (seront) multipli�(s) resp.
324
divis�(s) par le facteur <verbatim|mag> resp. <verbatim|schrink>.
327
<section|Usage priv�>
330
<expand|item*|<verbatim|(tuple t1 ...
331
tn)>><with|mode|math|mode|text|><format|next line>Tuplet <verbatim|(t1,
334
<expand|item*|<verbatim|(collection t1 ...
335
tn)>><with|mode|math|mode|text|><format|next line>Jeu <verbatim|{t1, ...,
338
<expand|item*|<verbatim|(associate t u)>><with|mode|math|mode|text|><format|next
339
line>Association <verbatim|t -\<gtr\> u>.
342
<apply|tmdoc-copyright|1998--2003|Joris van der Hoeven|Mich�le Garoche>
344
<expand|tmdoc-license|Permission is granted to copy, distribute and/or
345
modify this document under the terms of the GNU Free Documentation License,
346
Version 1.1 or any later version published by the Free Software Foundation;
347
with no Invariant Sections, with no Front-Cover Texts, and with no
348
Back-Cover Texts. A copy of the license is included in the section entitled
349
"GNU Free Documentation License".>
354
<associate|preamble|false>
355
<associate|paragraph width|150mm>
356
<associate|odd page margin|30mm>
357
<associate|shrinking factor|4>
358
<associate|page right margin|30mm>
359
<associate|page top margin|30mm>
360
<associate|reduction page right margin|25mm>
361
<associate|paragraph hyphenation|professional>
362
<associate|page type|a4>
363
<associate|reduction page bottom margin|15mm>
364
<associate|even page margin|30mm>
365
<associate|reduction page left margin|25mm>
366
<associate|page bottom margin|30mm>
367
<associate|reduction page top margin|15mm>
368
<associate|language|french>
374
<associate|toc-5|<tuple|5|?>>
375
<associate|toc-6|<tuple|6|?>>
376
<associate|toc-1|<tuple|1|?>>
377
<associate|idx-1|<tuple|<uninit>|?>>
378
<associate|idx-2|<tuple|<uninit>|?>>
379
<associate|toc-2|<tuple|2|?>>
380
<associate|toc-3|<tuple|3|?>>
381
<associate|toc-4|<tuple|4|?>>
388
<vspace*|1fn><with|font series|<quote|bold>|math font
389
series|<quote|bold>|1<space|2spc>Principales primitives de
390
formatage><value|toc-dots><pageref|toc-1><vspace|0.5fn>
392
<vspace*|1fn><with|font series|<quote|bold>|math font
393
series|<quote|bold>|2<space|2spc>Constructions
394
math�matiques><value|toc-dots><pageref|toc-2><vspace|0.5fn>
396
<vspace*|1fn><with|font series|<quote|bold>|math font
397
series|<quote|bold>|3<space|2spc>Variables d'environment, macros,
398
fonctions, etc...><value|toc-dots><pageref|toc-3><vspace|0.5fn>
400
<vspace*|1fn><with|font series|<quote|bold>|math font
401
series|<quote|bold>|4<space|2spc>Op�rateurs
402
fonctionnels><value|toc-dots><pageref|toc-4><vspace|0.5fn>
404
<vspace*|1fn><with|font series|<quote|bold>|math font
405
series|<quote|bold>|5<space|2spc>Autre contenu
406
dynamique><value|toc-dots><pageref|toc-5><vspace|0.5fn>
408
<vspace*|1fn><with|font series|<quote|bold>|math font
409
series|<quote|bold>|6<space|2spc>Usage
410
priv�><value|toc-dots><pageref|toc-6><vspace|0.5fn>