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