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