]> git.lyx.org Git - lyx.git/blob - lib/examples/fr_AlignementDecimal.lyx
fix typo that put too many include paths for most people
[lyx.git] / lib / examples / fr_AlignementDecimal.lyx
1 #LyX 1.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 218
3 \textclass article
4 \begin_preamble
5 \usepackage{dcolumn}
6 \newcolumntype{d}[1]{D{.}{.}{#1}}
7 \end_preamble
8 \language frenchb
9 \inputencoding latin1
10 \fontscheme default
11 \graphics default
12 \paperfontsize default
13 \spacing single 
14 \papersize Default
15 \paperpackage a4
16 \use_geometry 0
17 \use_amsmath 0
18 \paperorientation portrait
19 \secnumdepth 3
20 \tocdepth 3
21 \paragraph_separation indent
22 \defskip medskip
23 \quotes_language french
24 \quotes_times 2
25 \papercolumns 1
26 \papersides 1
27 \paperpagestyle default
28
29 \layout Title
30
31 Une meilleure solution pour l'Alignement Décimal
32 \begin_float footnote 
33 \layout Standard
34
35 Traduction par Adrien 
36 \noun on 
37 Rebollo
38 \noun default 
39  
40 \family typewriter 
41 <Adrien.Rebollo@wanadoo.fr>
42 \family default 
43 .
44 \end_float 
45
46 \begin_inset Info
47 Informations de révision :
48 Traduction : Mise à jour Date: 2001/03/20
49 Original : Révision: 1.3, Date: 2000/11/03
50 \end_inset 
51
52
53 \layout Standard
54
55 Une méthode alternative pour obtenir un alignement décimal dans les tableaux
56  est de passer par le paquetage 
57 \family typewriter 
58 dcolumn
59 \family default 
60 .
61  Ajoutez ce qui suit au préambule LaTeX :
62 \layout LyX-Code
63
64
65 \backslash 
66 usepackage{dcolumn} 
67 \layout LyX-Code
68
69
70 \backslash 
71 newcolumntype{d}[1]{D{.}{.}{#1}}
72 \layout Standard
73
74 Pour avoir une colonne alignée sur le symbole décimal, entrez ce qui suit
75  dans le champ 
76 \family sans 
77 Colonne\SpecialChar ~
78 spéciale\SpecialChar \menuseparator
79 Alignement
80 \family default 
81  de la fenêtre 
82 \family sans 
83 Style\SpecialChar ~
84 du\SpecialChar ~
85 Tableau\SpecialChar \menuseparator
86 Colonne/Rangée
87 \family default 
88  :
89 \layout LyX-Code
90
91 d{nombre de chiffres après la virgule dans les données}
92 \layout Standard
93
94 Dans le tableau suivant nous avons entré 
95 \family typewriter 
96 d{4}
97 \family default 
98 :
99 \layout Standard
100 \added_space_top 0.3cm \added_space_bottom 0.3cm \align center 
101
102 \begin_inset  Tabular
103 <lyxtabular version="2" rows="5" columns="2">
104 <features rotate="false" islongtable="false" endhead="0" endfirsthead="0" endfoot="0" endlastfoot="0">
105 <column alignment="center" valignment="top" leftline="false" rightline="false" width="" special="">
106 <column alignment="right" valignment="top" leftline="true" rightline="false" width="" special="d{4}">
107 <row topline="false" bottomline="true" newpage="false">
108 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="false" rightline="false" rotate="false" usebox="none" width="" special="">
109 \begin_inset Text
110
111 \layout Standard
112
113 Expression
114 \end_inset 
115 </cell>
116 <cell multicolumn="1" alignment="center" valignment="top" topline="false" bottomline="true" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
117 \begin_inset Text
118
119 \layout Standard
120
121 Valeur
122 \end_inset 
123 </cell>
124 </row>
125 <row topline="false" bottomline="false" newpage="false">
126 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="false" rightline="false" rotate="false" usebox="none" width="" special="">
127 \begin_inset Text
128
129 \layout Standard
130
131
132 \begin_inset Formula \( \pi  \)
133 \end_inset 
134
135
136 \end_inset 
137 </cell>
138 <cell multicolumn="1" alignment="right" valignment="top" topline="false" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
139 \begin_inset Text
140
141 \layout Standard
142
143 3,1416
144 \end_inset 
145 </cell>
146 </row>
147 <row topline="false" bottomline="false" newpage="false">
148 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="false" rightline="false" rotate="false" usebox="none" width="" special="">
149 \begin_inset Text
150
151 \layout Standard
152
153
154 \begin_inset Formula \( \pi ^{\pi } \)
155 \end_inset 
156
157
158 \end_inset 
159 </cell>
160 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
161 \begin_inset Text
162
163 \layout Standard
164
165 36,462
166 \end_inset 
167 </cell>
168 </row>
169 <row topline="false" bottomline="false" newpage="false">
170 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="false" rightline="false" rotate="false" usebox="none" width="" special="">
171 \begin_inset Text
172
173 \layout Standard
174
175
176 \begin_inset Formula \( (\pi ^{\pi })^{\pi } \)
177 \end_inset 
178
179
180 \end_inset 
181 </cell>
182 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
183 \begin_inset Text
184
185 \layout Standard
186
187 80663,
188 \end_inset 
189 </cell>
190 </row>
191 <row topline="false" bottomline="false" newpage="false">
192 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="false" rightline="false" rotate="false" usebox="none" width="" special="">
193 \begin_inset Text
194
195 \layout Standard
196
197
198 \begin_inset Formula \( \pi ^{\pi ^{\pi }} \)
199 \end_inset 
200
201
202 \end_inset 
203 </cell>
204 <cell multicolumn="0" alignment="center" valignment="top" topline="true" bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" width="" special="">
205 \begin_inset Text
206
207 \layout Standard
208
209 1,3402e18
210 \end_inset 
211 </cell>
212 </row>
213 </lyxtabular>
214
215 \end_inset 
216
217
218 \layout Standard
219
220 Pour créer de l'espace supplémentaire dans la colonne augmentez juste le
221  nombre de décimales dans 
222 \family typewriter 
223 d{}
224 \family default 
225 .
226  Cocher l'attribut 
227 \family sans 
228 Multicolonne
229 \family default 
230  pour une case isolée la rend insensible à l'alignement décimal, ce qui
231  est commode.
232  Un inconvénient de cette méthode est que le mode mathématique n'est pas
233  autorisé dans une case avec l'alignement décimal sauf si l'attribut 
234 \family sans 
235 Multicolonne
236 \family default 
237  est coché.
238 \layout Standard
239
240 Cette méthode offre la même flexibilité que le paquetage 
241 \family typewriter 
242 dcolumn
243 \family default 
244 .
245  On peut, par exemple, changer le séparateur d'alignement, et avoir des
246  séparateurs d'alignement différents pour des colonnes différentes en définissan
247 t plusieurs types de colonnes dans le préambule.
248  La syntaxe est comme suit :
249 \layout LyX-Code
250
251 D{inputsep}{outputsep}{decimal places}
252 \begin_float footnote 
253 \layout Standard
254
255 NdT : non traduit car je ne suis pas certain du sens
256 \end_float 
257 \layout Standard
258
259 Le lecteur intéressé se référera à la documentation du paquetage 
260 \family typewriter 
261 dcolumn
262 \family default 
263  pour plus de détails.
264 \the_end