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