]> git.lyx.org Git - lyx.git/blob - lib/doc/es/Formula-numbering.lyx
UserGuide.lyx: accept and distribute more changes
[lyx.git] / lib / doc / es / Formula-numbering.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 541
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/es/
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 % define Roman counter
27 \newcounter{rom}
28 \renewcommand{\therom}{\roman{rom}}
29
30 % remember the original counter
31 \newcommand{\c@org@eq}{}
32 \let\c@org@eq\c@equation
33 \newcommand{\org@theeq}{}
34 \let\org@theeq\theequation
35
36 % \setrom activates the Roman counter
37 \newcommand{\setrom}{
38   \let\c@equation\c@rom
39   \let\theequation\therom}
40
41 % \setarab activates the original Arabic counter
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 spanish
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 0
77 \use_package esint 0
78 \use_package mathdots 1
79 \use_package mathtools 0
80 \use_package mhchem 1
81 \use_package stackrel 0
82 \use_package stmaryrd 0
83 \use_package undertilde 0
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 Índice
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 \quotes_style english
103 \papercolumns 1
104 \papersides 1
105 \paperpagestyle empty
106 \tracking_changes false
107 \output_changes false
108 \html_math_output 0
109 \html_css_as_file 0
110 \html_be_strict false
111 \end_header
112
113 \begin_body
114
115 \begin_layout Standard
116 Este documento muestra el uso de dos categorías diferentes de ecuaciones.
117  Una está numerada en arábigos, la otra en romanos.
118 \end_layout
119
120 \begin_layout Standard
121 \begin_inset Formula 
122 \begin{equation}
123 A=B\label{eq:B}
124 \end{equation}
125
126 \end_inset
127
128
129 \begin_inset Formula 
130 \begin{equation}
131 A=C\label{eq:C}
132 \end{equation}
133
134 \end_inset
135
136
137 \begin_inset ERT
138 status collapsed
139
140 \begin_layout Plain Layout
141
142
143 \backslash
144 setrom
145 \end_layout
146
147 \end_inset
148
149
150 \begin_inset Formula 
151 \begin{equation}
152 A=D\label{eq:D}
153 \end{equation}
154
155 \end_inset
156
157
158 \begin_inset Formula 
159 \begin{equation}
160 A=E\label{eq:E}
161 \end{equation}
162
163 \end_inset
164
165
166 \begin_inset ERT
167 status collapsed
168
169 \begin_layout Plain Layout
170
171
172 \backslash
173 setarab
174 \end_layout
175
176 \end_inset
177
178
179 \begin_inset Formula 
180 \begin{equation}
181 A=F\label{eq:F}
182 \end{equation}
183
184 \end_inset
185
186
187 \begin_inset Formula 
188 \begin{equation}
189 A=G\label{eq:G}
190 \end{equation}
191
192 \end_inset
193
194
195 \begin_inset ERT
196 status collapsed
197
198 \begin_layout Plain Layout
199
200
201 \backslash
202 setrom
203 \end_layout
204
205 \end_inset
206
207
208 \begin_inset Formula 
209 \begin{equation}
210 A=H\label{eq:H}
211 \end{equation}
212
213 \end_inset
214
215
216 \begin_inset Formula 
217 \begin{equation}
218 A=I\label{eq:I}
219 \end{equation}
220
221 \end_inset
222
223
224 \end_layout
225
226 \begin_layout Standard
227 Referencias cruzadas: 
228 \begin_inset CommandInset ref
229 LatexCommand eqref
230 reference "eq:B"
231
232 \end_inset
233
234  , 
235 \begin_inset CommandInset ref
236 LatexCommand eqref
237 reference "eq:C"
238
239 \end_inset
240
241  , 
242 \begin_inset CommandInset ref
243 LatexCommand eqref
244 reference "eq:F"
245
246 \end_inset
247
248  , 
249 \begin_inset CommandInset ref
250 LatexCommand eqref
251 reference "eq:G"
252
253 \end_inset
254
255  , 
256 \begin_inset CommandInset ref
257 LatexCommand eqref
258 reference "eq:D"
259
260 \end_inset
261
262  , 
263 \begin_inset CommandInset ref
264 LatexCommand eqref
265 reference "eq:E"
266
267 \end_inset
268
269  , 
270 \begin_inset CommandInset ref
271 LatexCommand eqref
272 reference "eq:H"
273
274 \end_inset
275
276  , 
277 \begin_inset CommandInset ref
278 LatexCommand eqref
279 reference "eq:I"
280
281 \end_inset
282
283
284 \end_layout
285
286 \begin_layout Standard
287 \noindent
288 \begin_inset CommandInset line
289 LatexCommand rule
290 offset "0.5ex"
291 width "100line%"
292 height "1pt"
293
294 \end_inset
295
296
297 \begin_inset VSpace medskip
298 \end_inset
299
300 Para escribir este ejemplo, primero hay que definir un contador para las
301  fórmulas numeradas en romanos.
302  Para ello se inserta lo siguiente en el preámbulo \SpecialChar LaTeX
303 :
304 \end_layout
305
306 \begin_layout Standard
307
308 \series bold
309
310 \backslash
311 newcounter{rom}
312 \begin_inset Newline newline
313 \end_inset
314
315
316 \backslash
317 renewcommand{
318 \backslash
319 therom}{
320 \backslash
321 roman{rom}}
322 \end_layout
323
324 \begin_layout Standard
325 \begin_inset Newpage newpage
326 \end_inset
327
328 Para guardar el valor del contador arábigo 
329 \series bold
330 equation
331 \series default
332 , se añade al preámbulo lo siguiente
333 \end_layout
334
335 \begin_layout Standard
336
337 \series bold
338
339 \backslash
340 newcommand{
341 \backslash
342 c@org@eq}{}
343 \begin_inset Newline newline
344 \end_inset
345
346
347 \backslash
348 let
349 \backslash
350 c@org@eq
351 \backslash
352 c@equation
353 \begin_inset Newline newline
354 \end_inset
355
356
357 \backslash
358 newcommand{
359 \backslash
360 org@theeq}{}
361 \begin_inset Newline newline
362 \end_inset
363
364
365 \backslash
366 let
367 \backslash
368 org@theeq
369 \backslash
370 theequation
371 \end_layout
372
373 \begin_layout Standard
374 Para poder alternar en el documento entre ambos esquemas de numeración,
375  se definen los siguientes comandos en el preámbulo:
376 \end_layout
377
378 \begin_layout Standard
379
380 \series bold
381
382 \backslash
383 newcommand{
384 \backslash
385 setrom}{
386 \backslash
387 let
388 \backslash
389 c@equation
390 \backslash
391 c@rom
392 \backslash
393 let
394 \backslash
395 theequation
396 \backslash
397 therom}
398 \end_layout
399
400 \begin_layout Standard
401 para la numeración romana y
402 \end_layout
403
404 \begin_layout Standard
405
406 \series bold
407
408 \backslash
409 newcommand{
410 \backslash
411 setarab}{
412 \backslash
413 let
414 \backslash
415 c@equation
416 \backslash
417 c@org@eq
418 \backslash
419 let
420 \backslash
421 theequation
422 \backslash
423 org@theeq}
424 \end_layout
425
426 \begin_layout Standard
427 para la numeración arábiga.
428 \end_layout
429
430 \begin_layout Standard
431 Cada fórmula será numerada en arábigos por defecto.
432  Para cambiar a numeración en romanos, se inserta el comando 
433 \series bold
434
435 \backslash
436 setrom
437 \series default
438  en modo \SpecialChar TeX
439 .
440  Con el comando 
441 \series bold
442
443 \backslash
444 setarab
445 \series default
446  la numeración retorna a números arábigos.
447 \end_layout
448
449 \end_body
450 \end_document