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