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