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