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