]> git.lyx.org Git - lyx.git/blob - lib/doc/fr/Formula-numbering.lyx
Extended.lyx: correction as we use now the OS default file dialog
[lyx.git] / lib / doc / fr / Formula-numbering.lyx
1 #LyX 1.6.0beta3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 335
3 \begin_document
4 \begin_header
5 \textclass scrartcl
6 \begin_preamble
7 \usepackage{ifpdf}
8
9 \ifpdf
10
11 \usepackage[colorlinks=true,
12  pdftitle=Formelnummerierung, pdfpagemode=none,
13  pdfpagelayout=OneColumn, pdfstartview=XYZ,
14  pdfauthor={Uwe Stöhr},
15  pdfsubject={LaTeX/LyX numbering example},
16  pdfkeywords={LaTeX, numbering, LyX}]{hyperref}
17
18 \else % if DVI
19
20 \usepackage[colorlinks=true, hypertex]{hyperref}
21
22 \fi
23
24 % definit le compteur romain
25 \newcounter{rom}
26 \renewcommand{\therom}{\roman{rom}}
27
28 % se souvient du compteur origina
29 \newcommand{\c@org@eq}{}
30 \let\c@org@eq\c@equation
31 \newcommand{\org@theeq}{}
32 \let\org@theeq\theequation
33
34 % \setrom active le compteur romain
35 \newcommand{\setrom}{
36   \let\c@equation\c@rom
37   \let\theequation\therom}
38
39 % \setarab active le compteur arabe original
40 \newcommand{\setarab}{
41   \let\c@equation\c@org@eq
42   \let\theequation\org@theeq}
43 \end_preamble
44 \options fleqn
45 \language french
46 \inputencoding auto
47 \font_roman default
48 \font_sans default
49 \font_typewriter default
50 \font_default_family default
51 \font_sc false
52 \font_osf false
53 \font_sf_scale 100
54 \font_tt_scale 100
55 \graphics default
56 \paperfontsize 12
57 \spacing single
58 \use_hyperref false
59 \papersize default
60 \use_geometry false
61 \use_amsmath 2
62 \use_esint 0
63 \cite_engine basic
64 \use_bibtopic false
65 \paperorientation portrait
66 \secnumdepth 4
67 \tocdepth 3
68 \paragraph_separation skip
69 \defskip medskip
70 \quotes_language english
71 \papercolumns 1
72 \papersides 1
73 \paperpagestyle empty
74 \tracking_changes false
75 \output_changes false
76 \author "" 
77 \author "" 
78 \end_header
79
80 \begin_body
81
82 \begin_layout Standard
83 Ce document illustre l'utilisation de deux catégories différentes de formules.
84  L'une est numérotée avec des chiffres arabes, l'autre avec des chiffres
85  romains.
86 \end_layout
87
88 \begin_layout Standard
89 \begin_inset Formula \begin{equation}
90 A=B\label{eq:B}\end{equation}
91
92 \end_inset
93
94
95 \begin_inset Formula \begin{equation}
96 A=C\label{eq:C}\end{equation}
97
98 \end_inset
99
100
101 \begin_inset ERT
102 status collapsed
103
104 \begin_layout Plain Layout
105
106
107 \backslash
108 setrom
109 \end_layout
110
111 \end_inset
112
113
114 \begin_inset Formula \begin{equation}
115 A=D\label{eq:D}\end{equation}
116
117 \end_inset
118
119
120 \begin_inset Formula \begin{equation}
121 A=E\label{eq:E}\end{equation}
122
123 \end_inset
124
125
126 \begin_inset ERT
127 status collapsed
128
129 \begin_layout Plain Layout
130
131
132 \backslash
133 setarab
134 \end_layout
135
136 \end_inset
137
138
139 \begin_inset Formula \begin{equation}
140 A=F\label{eq:F}\end{equation}
141
142 \end_inset
143
144
145 \begin_inset Formula \begin{equation}
146 A=G\label{eq:G}\end{equation}
147
148 \end_inset
149
150
151 \begin_inset ERT
152 status collapsed
153
154 \begin_layout Plain Layout
155
156
157 \backslash
158 setrom
159 \end_layout
160
161 \end_inset
162
163
164 \begin_inset Formula \begin{equation}
165 A=H\label{eq:H}\end{equation}
166
167 \end_inset
168
169
170 \begin_inset Formula \begin{equation}
171 A=I\label{eq:I}\end{equation}
172
173 \end_inset
174
175
176 \end_layout
177
178 \begin_layout Standard
179 Références croisées: 
180 \begin_inset CommandInset ref
181 LatexCommand eqref
182 reference "eq:B"
183
184 \end_inset
185
186  , 
187 \begin_inset CommandInset ref
188 LatexCommand eqref
189 reference "eq:C"
190
191 \end_inset
192
193  , 
194 \begin_inset CommandInset ref
195 LatexCommand eqref
196 reference "eq:F"
197
198 \end_inset
199
200  , 
201 \begin_inset CommandInset ref
202 LatexCommand eqref
203 reference "eq:G"
204
205 \end_inset
206
207  , 
208 \begin_inset CommandInset ref
209 LatexCommand eqref
210 reference "eq:D"
211
212 \end_inset
213
214  , 
215 \begin_inset CommandInset ref
216 LatexCommand eqref
217 reference "eq:E"
218
219 \end_inset
220
221  , 
222 \begin_inset CommandInset ref
223 LatexCommand eqref
224 reference "eq:H"
225
226 \end_inset
227
228  , 
229 \begin_inset CommandInset ref
230 LatexCommand eqref
231 reference "eq:I"
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Standard
239
240 \lyxline
241
242 \begin_inset VSpace medskip
243 \end_inset
244
245 Pour créer cet exemple, il faut d'abord définir un compteur pour les formules
246  numérotées avec des chiffres romains.
247  Pour le faire, on insère ce qui suit dans le préambule LaTeX:
248 \end_layout
249
250 \begin_layout Standard
251
252 \series bold
253
254 \backslash
255 newcounter{rom}
256 \begin_inset Newline newline
257 \end_inset
258
259
260 \backslash
261 renewcommand{
262 \backslash
263 therom}{
264 \backslash
265 roman{rom}}
266 \end_layout
267
268 \begin_layout Standard
269 \begin_inset Newpage newpage
270 \end_inset
271
272 Pour enregistrer la valeur du compteur en chiffres arabes 
273 \series bold
274 equation
275 \series default
276 , on ajoute ceci au préambule:
277 \end_layout
278
279 \begin_layout Standard
280
281 \series bold
282
283 \backslash
284 newcommand{
285 \backslash
286 c@org@eq}{}
287 \begin_inset Newline newline
288 \end_inset
289
290
291 \backslash
292 let
293 \backslash
294 c@org@eq
295 \backslash
296 c@equation
297 \begin_inset Newline newline
298 \end_inset
299
300
301 \backslash
302 newcommand{
303 \backslash
304 org@theeq}{}
305 \begin_inset Newline newline
306 \end_inset
307
308
309 \backslash
310 let
311 \backslash
312 org@theeq
313 \backslash
314 theequation
315 \end_layout
316
317 \begin_layout Standard
318 Pour pouvoir permuter entre les deux types de numérotation dans le document,
319  on définit les commandes suivantes dans le préambule:
320 \end_layout
321
322 \begin_layout Standard
323
324 \series bold
325
326 \backslash
327 newcommand{
328 \backslash
329 setrom}{
330 \backslash
331 let
332 \backslash
333 c@equation
334 \backslash
335 c@rom
336 \backslash
337 let
338 \backslash
339 theequation
340 \backslash
341 therom}
342 \end_layout
343
344 \begin_layout Standard
345 pour la numérotation en chiffres romains et
346 \end_layout
347
348 \begin_layout Standard
349
350 \series bold
351
352 \backslash
353 newcommand{
354 \backslash
355 setarab}{
356 \backslash
357 let
358 \backslash
359 c@equation
360 \backslash
361 c@org@eq
362 \backslash
363 let
364 \backslash
365 theequation
366 \backslash
367 org@theeq}
368 \end_layout
369
370 \begin_layout Standard
371 pour la numérotation en chiffres arabes.
372 \end_layout
373
374 \begin_layout Standard
375 Chaque formule sera numérotée par défaut avec des chiffres arabes.
376  Pour passer aux chiffres romains, on insère la commande 
377 \series bold
378
379 \backslash
380 setrom
381 \series default
382  en code TeX.
383  Avec la commande 
384 \series bold
385
386 \backslash
387 setarab
388 \series default
389  la numérotation passe en chiffres arabes.
390 \end_layout
391
392 \end_body
393 \end_document