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