]> git.lyx.org Git - lyx.git/blob - lib/doc/fr/Formula-numbering.lyx
doc files: fix some path and reference mistakes
[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 544
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 1
77 \use_package esint 1
78 \use_package mathdots 1
79 \use_package mathtools 1
80 \use_package mhchem 1
81 \use_package stackrel 1
82 \use_package stmaryrd 1
83 \use_package undertilde 1
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 \math_numbering_side default
103 \quotes_style english
104 \papercolumns 1
105 \papersides 1
106 \paperpagestyle empty
107 \tracking_changes false
108 \output_changes false
109 \html_math_output 0
110 \html_css_as_file 0
111 \html_be_strict false
112 \use_minted 0
113 \end_header
114
115 \begin_body
116
117 \begin_layout Standard
118 Ce document illustre l'utilisation de deux catégories différentes de formules.
119  L'une est numérotée avec des chiffres arabes, l'autre avec des chiffres
120  romains.
121 \end_layout
122
123 \begin_layout Standard
124 \begin_inset Formula 
125 \begin{equation}
126 A=B\label{eq:B}
127 \end{equation}
128
129 \end_inset
130
131
132 \begin_inset Formula 
133 \begin{equation}
134 A=C\label{eq:C}
135 \end{equation}
136
137 \end_inset
138
139
140 \begin_inset ERT
141 status collapsed
142
143 \begin_layout Plain Layout
144
145
146 \backslash
147 setrom
148 \end_layout
149
150 \end_inset
151
152
153 \begin_inset Formula 
154 \begin{equation}
155 A=D\label{eq:D}
156 \end{equation}
157
158 \end_inset
159
160
161 \begin_inset Formula 
162 \begin{equation}
163 A=E\label{eq:E}
164 \end{equation}
165
166 \end_inset
167
168
169 \begin_inset ERT
170 status collapsed
171
172 \begin_layout Plain Layout
173
174
175 \backslash
176 setarab
177 \end_layout
178
179 \end_inset
180
181
182 \begin_inset Formula 
183 \begin{equation}
184 A=F\label{eq:F}
185 \end{equation}
186
187 \end_inset
188
189
190 \begin_inset Formula 
191 \begin{equation}
192 A=G\label{eq:G}
193 \end{equation}
194
195 \end_inset
196
197
198 \begin_inset ERT
199 status collapsed
200
201 \begin_layout Plain Layout
202
203
204 \backslash
205 setrom
206 \end_layout
207
208 \end_inset
209
210
211 \begin_inset Formula 
212 \begin{equation}
213 A=H\label{eq:H}
214 \end{equation}
215
216 \end_inset
217
218
219 \begin_inset Formula 
220 \begin{equation}
221 A=I\label{eq:I}
222 \end{equation}
223
224 \end_inset
225
226
227 \end_layout
228
229 \begin_layout Standard
230 Références croisées: 
231 \begin_inset CommandInset ref
232 LatexCommand eqref
233 reference "eq:B"
234
235 \end_inset
236
237  , 
238 \begin_inset CommandInset ref
239 LatexCommand eqref
240 reference "eq:C"
241
242 \end_inset
243
244  , 
245 \begin_inset CommandInset ref
246 LatexCommand eqref
247 reference "eq:F"
248
249 \end_inset
250
251  , 
252 \begin_inset CommandInset ref
253 LatexCommand eqref
254 reference "eq:G"
255
256 \end_inset
257
258  , 
259 \begin_inset CommandInset ref
260 LatexCommand eqref
261 reference "eq:D"
262
263 \end_inset
264
265  , 
266 \begin_inset CommandInset ref
267 LatexCommand eqref
268 reference "eq:E"
269
270 \end_inset
271
272  , 
273 \begin_inset CommandInset ref
274 LatexCommand eqref
275 reference "eq:H"
276
277 \end_inset
278
279  , 
280 \begin_inset CommandInset ref
281 LatexCommand eqref
282 reference "eq:I"
283
284 \end_inset
285
286
287 \end_layout
288
289 \begin_layout Standard
290 \noindent
291 \begin_inset CommandInset line
292 LatexCommand rule
293 offset "0.5ex"
294 width "100line%"
295 height "1pt"
296
297 \end_inset
298
299
300 \begin_inset VSpace medskip
301 \end_inset
302
303 Pour créer cet exemple, il faut d'abord définir un compteur pour les formules
304  numérotées avec des chiffres romains.
305  Pour le faire, on insère ce qui suit dans le préambule \SpecialChar LaTeX
306 :
307 \end_layout
308
309 \begin_layout Standard
310
311 \series bold
312
313 \backslash
314 newcounter{rom}
315 \begin_inset Newline newline
316 \end_inset
317
318
319 \backslash
320 renewcommand{
321 \backslash
322 therom}{
323 \backslash
324 roman{rom}}
325 \end_layout
326
327 \begin_layout Standard
328 \begin_inset Newpage newpage
329 \end_inset
330
331 Pour enregistrer la valeur du compteur en chiffres arabes 
332 \series bold
333 equation
334 \series default
335 , on ajoute ceci au préambule:
336 \end_layout
337
338 \begin_layout Standard
339
340 \series bold
341
342 \backslash
343 newcommand{
344 \backslash
345 c@org@eq}{}
346 \begin_inset Newline newline
347 \end_inset
348
349
350 \backslash
351 let
352 \backslash
353 c@org@eq
354 \backslash
355 c@equation
356 \begin_inset Newline newline
357 \end_inset
358
359
360 \backslash
361 newcommand{
362 \backslash
363 org@theeq}{}
364 \begin_inset Newline newline
365 \end_inset
366
367
368 \backslash
369 let
370 \backslash
371 org@theeq
372 \backslash
373 theequation
374 \end_layout
375
376 \begin_layout Standard
377 Pour pouvoir permuter entre les deux types de numérotation dans le document,
378  on définit les commandes suivantes dans le préambule:
379 \end_layout
380
381 \begin_layout Standard
382
383 \series bold
384
385 \backslash
386 newcommand{
387 \backslash
388 setrom}{
389 \backslash
390 let
391 \backslash
392 c@equation
393 \backslash
394 c@rom
395 \backslash
396 let
397 \backslash
398 theequation
399 \backslash
400 therom}
401 \end_layout
402
403 \begin_layout Standard
404 pour la numérotation en chiffres romains et
405 \end_layout
406
407 \begin_layout Standard
408
409 \series bold
410
411 \backslash
412 newcommand{
413 \backslash
414 setarab}{
415 \backslash
416 let
417 \backslash
418 c@equation
419 \backslash
420 c@org@eq
421 \backslash
422 let
423 \backslash
424 theequation
425 \backslash
426 org@theeq}
427 \end_layout
428
429 \begin_layout Standard
430 pour la numérotation en chiffres arabes.
431 \end_layout
432
433 \begin_layout Standard
434 Chaque formule sera numérotée par défaut avec des chiffres arabes.
435  Pour passer aux chiffres romains, on insère la commande 
436 \series bold
437
438 \backslash
439 setrom
440 \series default
441  en code \SpecialChar TeX
442 .
443  Avec la commande 
444 \series bold
445
446 \backslash
447 setarab
448 \series default
449  la numérotation passe en chiffres arabes.
450 \end_layout
451
452 \end_body
453 \end_document