]> git.lyx.org Git - lyx.git/blob - lib/examples/fr_AlignementDecimal.lyx
drop linuxdoc support (part 4)
[lyx.git] / lib / examples / fr_AlignementDecimal.lyx
1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 245
3 \begin_document
4 \begin_header
5 \textclass article
6 \begin_preamble
7 \usepackage{dcolumn}
8 \newcolumntype{d}[1]{D{,}{,}{#1}}
9 \end_preamble
10 \language french
11 \inputencoding latin1
12 \fontscheme default
13 \graphics default
14 \paperfontsize default
15 \spacing single
16 \papersize default
17 \use_geometry false
18 \use_amsmath 0
19 \cite_engine basic
20 \use_bibtopic false
21 \paperorientation portrait
22 \secnumdepth 3
23 \tocdepth 3
24 \paragraph_separation indent
25 \defskip medskip
26 \quotes_language french
27 \papercolumns 1
28 \papersides 1
29 \paperpagestyle default
30 \tracking_changes false
31 \output_changes true
32 \end_header
33
34 \begin_body
35
36 \begin_layout Title
37
38 Une meilleure solution pour l'Alignement Décimal
39 \begin_inset Foot
40 status collapsed
41
42 \begin_layout Standard
43
44 Traduction par Adrien 
45 \noun on
46 Rebollo
47 \noun default
48  
49 \family typewriter
50 <Adrien.Rebollo@gmx.fr>
51 \family default
52 .
53 \end_layout
54
55 \end_inset
56
57
58 \begin_inset Note Note
59 status collapsed
60
61 \begin_layout Standard
62
63 Informations de révision :
64 \end_layout
65
66 \begin_layout Standard
67
68 Traduction : Mise à jour Date : 07/07/2003
69 \end_layout
70
71 \begin_layout Standard
72
73 Original : Révision : 1.5, Date : 17/01/2003
74 \end_layout
75
76 \end_inset
77
78
79 \end_layout
80
81 \begin_layout Standard
82
83 Une méthode alternative pour obtenir un alignement décimal dans les tableaux
84  est de passer par le paquetage 
85 \family typewriter
86 dcolumn
87 \family default
88 .
89  Ajoutez ce qui suit au préambule LaTeX
90 \begin_inset Foot
91 status collapsed
92
93 \begin_layout Standard
94
95 NdT : Si votre séparateur décimal est la virgule.
96  Si c'est le point, remplacez les virgules par des points.
97 \end_layout
98
99 \end_inset
100
101  :
102 \end_layout
103
104 \begin_layout LyX-Code
105
106
107 \backslash
108 usepackage{dcolumn} 
109 \end_layout
110
111 \begin_layout LyX-Code
112
113
114 \backslash
115 newcolumntype{d}[1]{D{,}{,}{#1}}
116 \end_layout
117
118 \begin_layout Standard
119
120 Pour avoir une colonne alignée sur le symbole décimal, entrez ce qui suit
121  dans le champ 
122 \family sans
123 Colonne\InsetSpace ~
124 spéciale\SpecialChar \menuseparator
125 Alignement
126 \family default
127  de la fenêtre 
128 \family sans
129 Style\InsetSpace ~
130 du\InsetSpace ~
131 Tableau\SpecialChar \menuseparator
132 Colonne/Rangée
133 \family default
134  :
135 \end_layout
136
137 \begin_layout LyX-Code
138
139 d{nombre de chiffres après la virgule dans les données}
140 \end_layout
141
142 \begin_layout Standard
143
144 Dans le tableau suivant nous avons entré 
145 \family typewriter
146 d{4}
147 \family default
148 :
149 \end_layout
150
151
152 \begin_layout Standard
153
154
155 \begin_inset VSpace 0.3cm
156 \end_inset
157
158
159 \end_layout
160
161 \begin_layout Standard
162 \align center
163
164 \begin_inset  Tabular
165 <lyxtabular version="3" rows="5" columns="2">
166 <features>
167 <column alignment="center" valignment="top" width="0pt">
168 <column alignment="right" valignment="top" leftline="true" width="0pt" special="d{4}">
169 <row bottomline="true">
170 <cell alignment="center" valignment="top" topline="true" usebox="none">
171 \begin_inset Text
172
173 \begin_layout Standard
174
175 Expression
176 \end_layout
177
178 \end_inset
179 </cell>
180 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
181 \begin_inset Text
182
183 \begin_layout Standard
184
185 Valeur
186 \end_layout
187
188 \end_inset
189 </cell>
190 </row>
191 <row>
192 <cell alignment="center" valignment="top" topline="true" usebox="none">
193 \begin_inset Text
194
195 \begin_layout Standard
196
197
198 \begin_inset Formula $\pi$
199 \end_inset
200
201
202 \end_layout
203
204 \end_inset
205 </cell>
206 <cell alignment="right" valignment="top" leftline="true" usebox="none" special="d{4}">
207 \begin_inset Text
208
209 \begin_layout Standard
210
211 3,1416
212 \end_layout
213
214 \end_inset
215 </cell>
216 </row>
217 <row>
218 <cell alignment="center" valignment="top" topline="true" usebox="none">
219 \begin_inset Text
220
221 \begin_layout Standard
222
223
224 \begin_inset Formula $\pi^{\pi}$
225 \end_inset
226
227
228 \end_layout
229
230 \end_inset
231 </cell>
232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
233 \begin_inset Text
234
235 \begin_layout Standard
236
237 36,462
238 \end_layout
239
240 \end_inset
241 </cell>
242 </row>
243 <row>
244 <cell alignment="center" valignment="top" topline="true" usebox="none">
245 \begin_inset Text
246
247 \begin_layout Standard
248
249
250 \begin_inset Formula $(\pi^{\pi})^{\pi}$
251 \end_inset
252
253
254 \end_layout
255
256 \end_inset
257 </cell>
258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
259 \begin_inset Text
260
261 \begin_layout Standard
262
263 80663,
264 \end_layout
265
266 \end_inset
267 </cell>
268 </row>
269 <row>
270 <cell alignment="center" valignment="top" topline="true" usebox="none">
271 \begin_inset Text
272
273 \begin_layout Standard
274
275
276 \begin_inset Formula $\pi^{\pi^{\pi}}$
277 \end_inset
278
279
280 \end_layout
281
282 \end_inset
283 </cell>
284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
285 \begin_inset Text
286
287 \begin_layout Standard
288
289 1,3402e18
290 \end_layout
291
292 \end_inset
293 </cell>
294 </row>
295 </lyxtabular>
296
297 \end_inset
298
299
300 \end_layout
301
302 \begin_layout Standard
303
304
305 \begin_inset VSpace 0.3cm
306 \end_inset
307
308
309 \end_layout
310
311
312 \begin_layout Standard
313
314 Pour créer de l'espace supplémentaire dans la colonne augmentez juste le
315  nombre de décimales dans 
316 \family typewriter
317 d{}
318 \family default
319 .
320  Cocher l'attribut 
321 \family sans
322 Multicolonne
323 \family default
324  pour une case isolée la rend insensible à l'alignement décimal, ce qui
325  est commode.
326  Un inconvénient de cette méthode est que le mode mathématique n'est pas
327  autorisé dans une case avec l'alignement décimal sauf si l'attribut 
328 \family sans
329 Multicolonne
330 \family default
331  est coché.
332 \end_layout
333
334 \begin_layout Standard
335
336 Cette méthode offre la même flexibilité que le paquetage 
337 \family typewriter
338 dcolumn
339 \family default
340 .
341  On peut, par exemple, changer le séparateur d'alignement, et avoir des
342  séparateurs d'alignement différents pour des colonnes différentes en définissan
343 t plusieurs types de colonnes dans le préambule.
344  La syntaxe est comme suit :
345 \end_layout
346
347 \begin_layout LyX-Code
348
349 D{inputsep}{outputsep}{decimal places}
350 \begin_inset Foot
351 status collapsed
352
353 \begin_layout Standard
354
355 NdT : non traduit car je ne suis pas certain du sens
356 \end_layout
357
358 \end_inset
359
360
361 \end_layout
362
363 \begin_layout Standard
364
365 Le lecteur intéressé se référera à la documentation du paquetage 
366 \family typewriter
367 dcolumn
368 \family default
369  pour plus de détails.
370 \end_layout
371
372 \end_body
373 \end_document