]> git.lyx.org Git - lyx.git/blob - lib/doc/fr/Formula-numbering.lyx
French UserGuide.lyx: translations from Jean-Pierre and Siegfried
[lyx.git] / lib / doc / fr / Formula-numbering.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
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 \use_default_options false
46 \maintain_unincluded_children false
47 \language french
48 \language_package default
49 \inputencoding auto
50 \fontencoding global
51 \font_roman default
52 \font_sans default
53 \font_typewriter default
54 \font_default_family default
55 \use_non_tex_fonts false
56 \font_sc false
57 \font_osf false
58 \font_sf_scale 100
59 \font_tt_scale 100
60
61 \graphics default
62 \default_output_format default
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref false
69 \papersize default
70 \use_geometry false
71 \use_amsmath 2
72 \use_esint 0
73 \use_mhchem 1
74 \use_mathdots 1
75 \cite_engine basic
76 \use_bibtopic false
77 \use_indices false
78 \paperorientation portrait
79 \suppress_date false
80 \use_refstyle 0
81 \index Index
82 \shortcut idx
83 \color #008000
84 \end_index
85 \secnumdepth 4
86 \tocdepth 3
87 \paragraph_separation skip
88 \defskip medskip
89 \quotes_language english
90 \papercolumns 1
91 \papersides 1
92 \paperpagestyle empty
93 \tracking_changes false
94 \output_changes false
95 \html_math_output 0
96 \html_css_as_file 0
97 \html_be_strict false
98 \end_header
99
100 \begin_body
101
102 \begin_layout Standard
103 Ce document illustre l'utilisation de deux catégories différentes de formules.
104  L'une est numérotée avec des chiffres arabes, l'autre avec des chiffres
105  romains.
106 \end_layout
107
108 \begin_layout Standard
109 \begin_inset Formula 
110 \begin{equation}
111 A=B\label{eq:B}
112 \end{equation}
113
114 \end_inset
115
116
117 \begin_inset Formula 
118 \begin{equation}
119 A=C\label{eq:C}
120 \end{equation}
121
122 \end_inset
123
124
125 \begin_inset ERT
126 status collapsed
127
128 \begin_layout Plain Layout
129
130
131 \backslash
132 setrom
133 \end_layout
134
135 \end_inset
136
137
138 \begin_inset Formula 
139 \begin{equation}
140 A=D\label{eq:D}
141 \end{equation}
142
143 \end_inset
144
145
146 \begin_inset Formula 
147 \begin{equation}
148 A=E\label{eq:E}
149 \end{equation}
150
151 \end_inset
152
153
154 \begin_inset ERT
155 status collapsed
156
157 \begin_layout Plain Layout
158
159
160 \backslash
161 setarab
162 \end_layout
163
164 \end_inset
165
166
167 \begin_inset Formula 
168 \begin{equation}
169 A=F\label{eq:F}
170 \end{equation}
171
172 \end_inset
173
174
175 \begin_inset Formula 
176 \begin{equation}
177 A=G\label{eq:G}
178 \end{equation}
179
180 \end_inset
181
182
183 \begin_inset ERT
184 status collapsed
185
186 \begin_layout Plain Layout
187
188
189 \backslash
190 setrom
191 \end_layout
192
193 \end_inset
194
195
196 \begin_inset Formula 
197 \begin{equation}
198 A=H\label{eq:H}
199 \end{equation}
200
201 \end_inset
202
203
204 \begin_inset Formula 
205 \begin{equation}
206 A=I\label{eq:I}
207 \end{equation}
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Standard
215 Références croisées: 
216 \begin_inset CommandInset ref
217 LatexCommand eqref
218 reference "eq:B"
219
220 \end_inset
221
222  , 
223 \begin_inset CommandInset ref
224 LatexCommand eqref
225 reference "eq:C"
226
227 \end_inset
228
229  , 
230 \begin_inset CommandInset ref
231 LatexCommand eqref
232 reference "eq:F"
233
234 \end_inset
235
236  , 
237 \begin_inset CommandInset ref
238 LatexCommand eqref
239 reference "eq:G"
240
241 \end_inset
242
243  , 
244 \begin_inset CommandInset ref
245 LatexCommand eqref
246 reference "eq:D"
247
248 \end_inset
249
250  , 
251 \begin_inset CommandInset ref
252 LatexCommand eqref
253 reference "eq:E"
254
255 \end_inset
256
257  , 
258 \begin_inset CommandInset ref
259 LatexCommand eqref
260 reference "eq:H"
261
262 \end_inset
263
264  , 
265 \begin_inset CommandInset ref
266 LatexCommand eqref
267 reference "eq:I"
268
269 \end_inset
270
271
272 \end_layout
273
274 \begin_layout Standard
275 \noindent
276 \begin_inset CommandInset line
277 LatexCommand rule
278 offset "0.5ex"
279 width "100line%"
280 height "1pt"
281
282 \end_inset
283
284
285 \begin_inset VSpace medskip
286 \end_inset
287
288 Pour créer cet exemple, il faut d'abord définir un compteur pour les formules
289  numérotées avec des chiffres romains.
290  Pour le faire, on insère ce qui suit dans le préambule LaTeX:
291 \end_layout
292
293 \begin_layout Standard
294
295 \series bold
296
297 \backslash
298 newcounter{rom}
299 \begin_inset Newline newline
300 \end_inset
301
302
303 \backslash
304 renewcommand{
305 \backslash
306 therom}{
307 \backslash
308 roman{rom}}
309 \end_layout
310
311 \begin_layout Standard
312 \begin_inset Newpage newpage
313 \end_inset
314
315 Pour enregistrer la valeur du compteur en chiffres arabes 
316 \series bold
317 equation
318 \series default
319 , on ajoute ceci au préambule:
320 \end_layout
321
322 \begin_layout Standard
323
324 \series bold
325
326 \backslash
327 newcommand{
328 \backslash
329 c@org@eq}{}
330 \begin_inset Newline newline
331 \end_inset
332
333
334 \backslash
335 let
336 \backslash
337 c@org@eq
338 \backslash
339 c@equation
340 \begin_inset Newline newline
341 \end_inset
342
343
344 \backslash
345 newcommand{
346 \backslash
347 org@theeq}{}
348 \begin_inset Newline newline
349 \end_inset
350
351
352 \backslash
353 let
354 \backslash
355 org@theeq
356 \backslash
357 theequation
358 \end_layout
359
360 \begin_layout Standard
361 Pour pouvoir permuter entre les deux types de numérotation dans le document,
362  on définit les commandes suivantes dans le préambule:
363 \end_layout
364
365 \begin_layout Standard
366
367 \series bold
368
369 \backslash
370 newcommand{
371 \backslash
372 setrom}{
373 \backslash
374 let
375 \backslash
376 c@equation
377 \backslash
378 c@rom
379 \backslash
380 let
381 \backslash
382 theequation
383 \backslash
384 therom}
385 \end_layout
386
387 \begin_layout Standard
388 pour la numérotation en chiffres romains et
389 \end_layout
390
391 \begin_layout Standard
392
393 \series bold
394
395 \backslash
396 newcommand{
397 \backslash
398 setarab}{
399 \backslash
400 let
401 \backslash
402 c@equation
403 \backslash
404 c@org@eq
405 \backslash
406 let
407 \backslash
408 theequation
409 \backslash
410 org@theeq}
411 \end_layout
412
413 \begin_layout Standard
414 pour la numérotation en chiffres arabes.
415 \end_layout
416
417 \begin_layout Standard
418 Chaque formule sera numérotée par défaut avec des chiffres arabes.
419  Pour passer aux chiffres romains, on insère la commande 
420 \series bold
421
422 \backslash
423 setrom
424 \series default
425  en code TeX.
426  Avec la commande 
427 \series bold
428
429 \backslash
430 setarab
431 \series default
432  la numérotation passe en chiffres arabes.
433 \end_layout
434
435 \end_body
436 \end_document