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