]> git.lyx.org Git - lyx.git/blob - lib/examples/fr/AlignementDecimal.lyx
RELEASE-NOTES: add a known issue regarding LuaTeX
[lyx.git] / lib / examples / fr / AlignementDecimal.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
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 \SpecialChar LaTeX
126
127 \begin_inset Foot
128 status collapsed
129
130 \begin_layout Plain Layout
131 NdT : Si votre séparateur décimal est la virgule.
132  Si c'est le point, remplacez les virgules par des points.
133 \end_layout
134
135 \end_inset
136
137  :
138 \end_layout
139
140 \begin_layout LyX-Code
141
142 \backslash
143 usepackage{dcolumn} 
144 \end_layout
145
146 \begin_layout LyX-Code
147
148 \backslash
149 newcolumntype{d}[1]{D{,}{,}{#1}}
150 \end_layout
151
152 \begin_layout Standard
153 Pour avoir une colonne alignée sur le symbole décimal, entrez ce qui suit
154  dans le champ 
155 \family sans
156 Colonne
157 \begin_inset space ~
158 \end_inset
159
160 spéciale\SpecialChar menuseparator
161 Alignement
162 \family default
163  de la fenêtre 
164 \family sans
165 Style
166 \begin_inset space ~
167 \end_inset
168
169 du
170 \begin_inset space ~
171 \end_inset
172
173 Tableau\SpecialChar menuseparator
174 Colonne/Rangée
175 \family default
176  :
177 \end_layout
178
179 \begin_layout LyX-Code
180 d{nombre de chiffres après la virgule dans les données}
181 \end_layout
182
183 \begin_layout Standard
184 Dans le tableau suivant nous avons entré 
185 \family typewriter
186 d{4}
187 \family default
188 :
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset VSpace 0.3cm
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Standard
199 \align center
200 \begin_inset Tabular
201 <lyxtabular version="3" rows="5" columns="2">
202 <features tabularvalignment="middle">
203 <column alignment="center" valignment="top" width="0pt">
204 <column alignment="right" valignment="top" width="0pt" special="d{4}">
205 <row>
206 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
207 \begin_inset Text
208
209 \begin_layout Plain Layout
210 Expression
211 \end_layout
212
213 \end_inset
214 </cell>
215 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
216 \begin_inset Text
217
218 \begin_layout Plain Layout
219 Valeur
220 \end_layout
221
222 \end_inset
223 </cell>
224 </row>
225 <row>
226 <cell alignment="center" valignment="top" usebox="none">
227 \begin_inset Text
228
229 \begin_layout Plain Layout
230 \begin_inset Formula $\pi$
231 \end_inset
232
233
234 \end_layout
235
236 \end_inset
237 </cell>
238 <cell alignment="right" valignment="top" leftline="true" usebox="none" special="d{4}">
239 \begin_inset Text
240
241 \begin_layout Plain Layout
242 3,1416
243 \end_layout
244
245 \end_inset
246 </cell>
247 </row>
248 <row>
249 <cell alignment="center" valignment="top" usebox="none">
250 \begin_inset Text
251
252 \begin_layout Plain Layout
253 \begin_inset Formula $\pi^{\pi}$
254 \end_inset
255
256
257 \end_layout
258
259 \end_inset
260 </cell>
261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
262 \begin_inset Text
263
264 \begin_layout Plain Layout
265 36,462
266 \end_layout
267
268 \end_inset
269 </cell>
270 </row>
271 <row>
272 <cell alignment="center" valignment="top" usebox="none">
273 \begin_inset Text
274
275 \begin_layout Plain Layout
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" leftline="true" usebox="none">
285 \begin_inset Text
286
287 \begin_layout Plain Layout
288 80663,
289 \end_layout
290
291 \end_inset
292 </cell>
293 </row>
294 <row>
295 <cell alignment="center" valignment="top" usebox="none">
296 \begin_inset Text
297
298 \begin_layout Plain Layout
299 \begin_inset Formula $\pi^{\pi^{\pi}}$
300 \end_inset
301
302
303 \end_layout
304
305 \end_inset
306 </cell>
307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
308 \begin_inset Text
309
310 \begin_layout Plain Layout
311 1,3402e18
312 \end_layout
313
314 \end_inset
315 </cell>
316 </row>
317 </lyxtabular>
318
319 \end_inset
320
321
322 \end_layout
323
324 \begin_layout Standard
325 \begin_inset VSpace 0.3cm
326 \end_inset
327
328
329 \end_layout
330
331 \begin_layout Standard
332 Pour créer de l'espace supplémentaire dans la colonne augmentez juste le
333  nombre de décimales dans 
334 \family typewriter
335 d{}
336 \family default
337 .
338  Cocher l'attribut 
339 \family sans
340 Multicolonne
341 \family default
342  pour une case isolée la rend insensible à l'alignement décimal, ce qui
343  est commode.
344  Un inconvénient de cette méthode est que le mode mathématique n'est pas
345  autorisé dans une case avec l'alignement décimal sauf si l'attribut 
346 \family sans
347 Multicolonne
348 \family default
349  est coché.
350 \end_layout
351
352 \begin_layout Standard
353 Cette méthode offre la même flexibilité que le paquetage 
354 \family typewriter
355 dcolumn
356 \family default
357 .
358  On peut, par exemple, changer le séparateur d'alignement, et avoir des
359  séparateurs d'alignement différents pour des colonnes différentes en définissan
360 t plusieurs types de colonnes dans le préambule.
361  La syntaxe est comme suit :
362 \end_layout
363
364 \begin_layout LyX-Code
365 D{inputsep}{outputsep}{decimal places}
366 \begin_inset Foot
367 status collapsed
368
369 \begin_layout Plain Layout
370 NdT : non traduit car je ne suis pas certain du sens
371 \end_layout
372
373 \end_inset
374
375
376 \end_layout
377
378 \begin_layout Standard
379 Le lecteur intéressé se référera à la documentation du paquetage 
380 \family typewriter
381 dcolumn
382 \family default
383  pour plus de détails.
384 \end_layout
385
386 \end_body
387 \end_document