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