]> git.lyx.org Git - lyx.git/blob - lib/doc/es/Formula-numbering.lyx
Complete update of Spanish manuals from Ignacio Garcia
[lyx.git] / lib / doc / es / Formula-numbering.lyx
1 #LyX 1.6.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 345
3 \begin_document
4 \begin_header
5 \use_default_options false
6 \textclass scrartcl
7 \begin_preamble
8 \usepackage{ifpdf}
9
10 \ifpdf
11
12 \usepackage[colorlinks=true,
13  pdftitle=Formelnummerierung, pdfpagemode=none,
14  pdfpagelayout=OneColumn, pdfstartview=XYZ,
15  pdfauthor={Uwe Stöhr},
16  pdfsubject={LaTeX/LyX numbering example},
17  pdfkeywords={LaTeX, numbering, LyX}]{hyperref}
18
19 \else % if DVI
20
21 \usepackage[colorlinks=true, hypertex]{hyperref}
22
23 \fi
24
25 % define Roman counter
26 \newcounter{rom}
27 \renewcommand{\therom}{\roman{rom}}
28
29 % remember the original counter
30 \newcommand{\c@org@eq}{}
31 \let\c@org@eq\c@equation
32 \newcommand{\org@theeq}{}
33 \let\org@theeq\theequation
34
35 % \setrom activates the Roman counter
36 \newcommand{\setrom}{
37   \let\c@equation\c@rom
38   \let\theequation\therom}
39
40 % \setarab activates the original Arabic counter
41 \newcommand{\setarab}{
42   \let\c@equation\c@org@eq
43   \let\theequation\org@theeq}
44 \end_preamble
45 \options fleqn
46 \language spanish
47 \inputencoding auto
48 \font_roman default
49 \font_sans default
50 \font_typewriter default
51 \font_default_family default
52 \font_sc false
53 \font_osf false
54 \font_sf_scale 100
55 \font_tt_scale 100
56 \graphics default
57 \paperfontsize 12
58 \spacing single
59 \use_hyperref false
60 \papersize default
61 \use_geometry false
62 \use_amsmath 2
63 \use_esint 0
64 \cite_engine basic
65 \use_bibtopic false
66 \paperorientation portrait
67 \secnumdepth 4
68 \tocdepth 3
69 \paragraph_separation skip
70 \defskip medskip
71 \quotes_language english
72 \papercolumns 1
73 \papersides 1
74 \paperpagestyle empty
75 \tracking_changes false
76 \output_changes false
77 \author ""
78 \author ""
79 \end_header
80
81 \begin_body
82
83 \begin_layout Standard
84 Este documento muestra el uso de dos categorías diferentes de ecuaciones.
85  Una está numerada en arábigos, la otra en romanos.
86 \end_layout
87
88 \begin_layout Standard
89 \begin_inset Formula \begin{equation}
90 A=B\label{eq:B}\end{equation}
91
92 \end_inset
93
94
95 \begin_inset Formula \begin{equation}
96 A=C\label{eq:C}\end{equation}
97
98 \end_inset
99
100
101 \begin_inset ERT
102 status collapsed
103
104 \begin_layout Plain Layout
105
106
107 \backslash
108 setrom
109 \end_layout
110
111 \end_inset
112
113
114 \begin_inset Formula \begin{equation}
115 A=D\label{eq:D}\end{equation}
116
117 \end_inset
118
119
120 \begin_inset Formula \begin{equation}
121 A=E\label{eq:E}\end{equation}
122
123 \end_inset
124
125
126 \begin_inset ERT
127 status collapsed
128
129 \begin_layout Plain Layout
130
131
132 \backslash
133 setarab
134 \end_layout
135
136 \end_inset
137
138
139 \begin_inset Formula \begin{equation}
140 A=F\label{eq:F}\end{equation}
141
142 \end_inset
143
144
145 \begin_inset Formula \begin{equation}
146 A=G\label{eq:G}\end{equation}
147
148 \end_inset
149
150
151 \begin_inset ERT
152 status collapsed
153
154 \begin_layout Plain Layout
155
156
157 \backslash
158 setrom
159 \end_layout
160
161 \end_inset
162
163
164 \begin_inset Formula \begin{equation}
165 A=H\label{eq:H}\end{equation}
166
167 \end_inset
168
169
170 \begin_inset Formula \begin{equation}
171 A=I\label{eq:I}\end{equation}
172
173 \end_inset
174
175
176 \end_layout
177
178 \begin_layout Standard
179 Referencias cruzadas: 
180 \begin_inset CommandInset ref
181 LatexCommand eqref
182 reference "eq:B"
183
184 \end_inset
185
186  , 
187 \begin_inset CommandInset ref
188 LatexCommand eqref
189 reference "eq:C"
190
191 \end_inset
192
193  , 
194 \begin_inset CommandInset ref
195 LatexCommand eqref
196 reference "eq:F"
197
198 \end_inset
199
200  , 
201 \begin_inset CommandInset ref
202 LatexCommand eqref
203 reference "eq:G"
204
205 \end_inset
206
207  , 
208 \begin_inset CommandInset ref
209 LatexCommand eqref
210 reference "eq:D"
211
212 \end_inset
213
214  , 
215 \begin_inset CommandInset ref
216 LatexCommand eqref
217 reference "eq:E"
218
219 \end_inset
220
221  , 
222 \begin_inset CommandInset ref
223 LatexCommand eqref
224 reference "eq:H"
225
226 \end_inset
227
228  , 
229 \begin_inset CommandInset ref
230 LatexCommand eqref
231 reference "eq:I"
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Standard
239
240 \lyxline
241
242 \begin_inset VSpace medskip
243 \end_inset
244
245 Para escribir este ejemplo, primero hay que definir un contador para las
246  fórmulas numeradas en romanos.
247  Para ello se inserta lo siguiente en el preámbulo LaTeX:
248 \end_layout
249
250 \begin_layout Standard
251
252 \series bold
253
254 \backslash
255 newcounter{rom}
256 \begin_inset Newline newline
257 \end_inset
258
259
260 \backslash
261 renewcommand{
262 \backslash
263 therom}{
264 \backslash
265 roman{rom}}
266 \end_layout
267
268 \begin_layout Standard
269 \begin_inset Newpage newpage
270 \end_inset
271
272 Para guardar el valor del contador arábigo 
273 \series bold
274 equation
275 \series default
276 , se añade al preámbulo lo siguiente
277 \end_layout
278
279 \begin_layout Standard
280
281 \series bold
282
283 \backslash
284 newcommand{
285 \backslash
286 c@org@eq}{}
287 \begin_inset Newline newline
288 \end_inset
289
290
291 \backslash
292 let
293 \backslash
294 c@org@eq
295 \backslash
296 c@equation
297 \begin_inset Newline newline
298 \end_inset
299
300
301 \backslash
302 newcommand{
303 \backslash
304 org@theeq}{}
305 \begin_inset Newline newline
306 \end_inset
307
308
309 \backslash
310 let
311 \backslash
312 org@theeq
313 \backslash
314 theequation
315 \end_layout
316
317 \begin_layout Standard
318 Para poder alternar en el documento entre ambos esquemas de numeración,
319  se definen los siguientes comandos en el preámbulo:
320 \end_layout
321
322 \begin_layout Standard
323
324 \series bold
325
326 \backslash
327 newcommand{
328 \backslash
329 setrom}{
330 \backslash
331 let
332 \backslash
333 c@equation
334 \backslash
335 c@rom
336 \backslash
337 let
338 \backslash
339 theequation
340 \backslash
341 therom}
342 \end_layout
343
344 \begin_layout Standard
345 para la numeración romana y
346 \end_layout
347
348 \begin_layout Standard
349
350 \series bold
351
352 \backslash
353 newcommand{
354 \backslash
355 setarab}{
356 \backslash
357 let
358 \backslash
359 c@equation
360 \backslash
361 c@org@eq
362 \backslash
363 let
364 \backslash
365 theequation
366 \backslash
367 org@theeq}
368 \end_layout
369
370 \begin_layout Standard
371 para la numeración arábiga.
372 \end_layout
373
374 \begin_layout Standard
375 Cada fórmula será numerada en arábigos por defecto.
376  Para cambiar a numeración en romanos, se inserta el comando 
377 \series bold
378
379 \backslash
380 setrom
381 \series default
382  en modo TeX.
383  Con el comando 
384 \series bold
385
386 \backslash
387 setarab
388 \series default
389  la numeración retorna a números arábigos.
390 \end_layout
391
392 \end_body
393 \end_document