]> git.lyx.org Git - lyx.git/blob - lib/doc/fr/Formula-numbering.lyx
Update Russian localization
[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 600
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 reference "eq:B"
243
244 \end_inset
245
246  , 
247 \begin_inset CommandInset ref
248 LatexCommand eqref
249 reference "eq:C"
250
251 \end_inset
252
253  , 
254 \begin_inset CommandInset ref
255 LatexCommand eqref
256 reference "eq:F"
257
258 \end_inset
259
260  , 
261 \begin_inset CommandInset ref
262 LatexCommand eqref
263 reference "eq:G"
264
265 \end_inset
266
267  , 
268 \begin_inset CommandInset ref
269 LatexCommand eqref
270 reference "eq:D"
271
272 \end_inset
273
274  , 
275 \begin_inset CommandInset ref
276 LatexCommand eqref
277 reference "eq:E"
278
279 \end_inset
280
281  , 
282 \begin_inset CommandInset ref
283 LatexCommand eqref
284 reference "eq:H"
285
286 \end_inset
287
288  , 
289 \begin_inset CommandInset ref
290 LatexCommand eqref
291 reference "eq:I"
292
293 \end_inset
294
295
296 \end_layout
297
298 \begin_layout Standard
299 \noindent
300 \begin_inset CommandInset line
301 LatexCommand rule
302 offset "0.5ex"
303 width "100line%"
304 height "1pt"
305
306 \end_inset
307
308
309 \begin_inset VSpace medskip
310 \end_inset
311
312 Pour créer cet exemple, il faut d'abord définir un compteur pour les formules
313  numérotées avec des chiffres romains.
314  Pour le faire, on insère ce qui suit dans le préambule \SpecialChar LaTeX
315 :
316 \end_layout
317
318 \begin_layout Standard
319
320 \series bold
321
322 \backslash
323 newcounter{rom}
324 \begin_inset Newline newline
325 \end_inset
326
327
328 \backslash
329 renewcommand{
330 \backslash
331 therom}{
332 \backslash
333 roman{rom}}
334 \end_layout
335
336 \begin_layout Standard
337 \begin_inset Newpage newpage
338 \end_inset
339
340 Pour enregistrer la valeur du compteur en chiffres arabes 
341 \series bold
342 equation
343 \series default
344 , on ajoute ceci au préambule:
345 \end_layout
346
347 \begin_layout Standard
348
349 \series bold
350
351 \backslash
352 newcommand{
353 \backslash
354 c@org@eq}{}
355 \begin_inset Newline newline
356 \end_inset
357
358
359 \backslash
360 let
361 \backslash
362 c@org@eq
363 \backslash
364 c@equation
365 \begin_inset Newline newline
366 \end_inset
367
368
369 \backslash
370 newcommand{
371 \backslash
372 org@theeq}{}
373 \begin_inset Newline newline
374 \end_inset
375
376
377 \backslash
378 let
379 \backslash
380 org@theeq
381 \backslash
382 theequation
383 \end_layout
384
385 \begin_layout Standard
386 Pour pouvoir permuter entre les deux types de numérotation dans le document,
387  on définit les commandes suivantes dans le préambule:
388 \end_layout
389
390 \begin_layout Standard
391
392 \series bold
393
394 \backslash
395 newcommand{
396 \backslash
397 setrom}{
398 \backslash
399 let
400 \backslash
401 c@equation
402 \backslash
403 c@rom
404 \backslash
405 let
406 \backslash
407 theequation
408 \backslash
409 therom}
410 \end_layout
411
412 \begin_layout Standard
413 pour la numérotation en chiffres romains et
414 \end_layout
415
416 \begin_layout Standard
417
418 \series bold
419
420 \backslash
421 newcommand{
422 \backslash
423 setarab}{
424 \backslash
425 let
426 \backslash
427 c@equation
428 \backslash
429 c@org@eq
430 \backslash
431 let
432 \backslash
433 theequation
434 \backslash
435 org@theeq}
436 \end_layout
437
438 \begin_layout Standard
439 pour la numérotation en chiffres arabes.
440 \end_layout
441
442 \begin_layout Standard
443 Chaque formule sera numérotée par défaut avec des chiffres arabes.
444  Pour passer aux chiffres romains, on insère la commande 
445 \series bold
446
447 \backslash
448 setrom
449 \series default
450  en code \SpecialChar TeX
451 .
452  Avec la commande 
453 \series bold
454
455 \backslash
456 setarab
457 \series default
458  la numérotation passe en chiffres arabes.
459 \end_layout
460
461 \end_body
462 \end_document