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