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