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