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