]> git.lyx.org Git - lyx.git/blob - lib/doc/de/Formelnummerierung.lyx
Fix XeTeX of Formula-numbering.lyx
[lyx.git] / lib / doc / de / Formelnummerierung.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
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-Nummerierungsbeispiel},
16  pdfkeywords={LaTeX, Nummerierung, LyX}]{hyperref}
17
18 \else % if DVI
19
20 \usepackage[colorlinks=true]{hyperref}
21
22 \fi
23
24 %Roemischen Gleichungszaehler einrichten  
25 \newcounter{roem}
26 \renewcommand{\theroem}{\roman{roem}}
27
28 %Merken des Originalzaehlers
29 \newcommand{\c@org@eq}{}
30 \let\c@org@eq\c@equation
31 \newcommand{\org@theeq}{}
32 \let\org@theeq\theequation
33
34 %\setroem aktiviert den roemischen Gleichungszaehler
35 \newcommand{\setroem}{
36   \let\c@equation\c@roem
37   \let\theequation\theroem}
38
39 %\setarab aktiviert den urspruenglichen arabischen Gleichungszaehler
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 ngerman
48 \language_package default
49 \inputencoding auto
50 \fontencoding global
51 \font_roman ae
52 \font_sans default
53 \font_typewriter default
54 \font_default_family default
55 \use_non_tex_fonts false
56 \font_sc false
57 \font_osf false
58 \font_sf_scale 100
59 \font_tt_scale 100
60
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_amsmath 2
72 \use_esint 0
73 \use_mhchem 1
74 \use_mathdots 1
75 \cite_engine basic
76 \use_bibtopic false
77 \use_indices false
78 \paperorientation portrait
79 \suppress_date false
80 \use_refstyle 0
81 \index Stichwortverzeichnis
82 \shortcut idx
83 \color #008000
84 \end_index
85 \secnumdepth 4
86 \tocdepth 3
87 \paragraph_separation skip
88 \defskip medskip
89 \quotes_language german
90 \papercolumns 1
91 \papersides 1
92 \paperpagestyle empty
93 \tracking_changes false
94 \output_changes false
95 \html_math_output 0
96 \html_css_as_file 0
97 \html_be_strict false
98 \end_header
99
100 \begin_body
101
102 \begin_layout Standard
103 Diese Datei ist ein Beispiel zur Verwendung von zwei verschiedenen Formelkategor
104 ien.
105  Die eine wird arabisch, die andere römisch nummeriert.
106 \end_layout
107
108 \begin_layout Standard
109 \begin_inset Formula 
110 \begin{equation}
111 A=B\label{eq:B}
112 \end{equation}
113
114 \end_inset
115
116
117 \begin_inset Formula 
118 \begin{equation}
119 A=C\label{eq:C}
120 \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 setroem
133 \end_layout
134
135 \end_inset
136
137
138 \begin_inset Formula 
139 \begin{equation}
140 A=D\label{eq:D}
141 \end{equation}
142
143 \end_inset
144
145
146 \begin_inset Formula 
147 \begin{equation}
148 A=E\label{eq:E}
149 \end{equation}
150
151 \end_inset
152
153
154 \begin_inset ERT
155 status collapsed
156
157 \begin_layout Plain Layout
158
159
160 \backslash
161 setarab
162 \end_layout
163
164 \end_inset
165
166
167 \begin_inset Formula 
168 \begin{equation}
169 A=F\label{eq:F}
170 \end{equation}
171
172 \end_inset
173
174
175 \begin_inset Formula 
176 \begin{equation}
177 A=G\label{eq:G}
178 \end{equation}
179
180 \end_inset
181
182
183 \begin_inset ERT
184 status collapsed
185
186 \begin_layout Plain Layout
187
188
189 \backslash
190 setroem
191 \end_layout
192
193 \end_inset
194
195
196 \begin_inset Formula 
197 \begin{equation}
198 A=H\label{eq:H}
199 \end{equation}
200
201 \end_inset
202
203
204 \begin_inset Formula 
205 \begin{equation}
206 A=I\label{eq:I}
207 \end{equation}
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Standard
215 Querverweise: 
216 \begin_inset CommandInset ref
217 LatexCommand eqref
218 reference "eq:B"
219
220 \end_inset
221
222  , 
223 \begin_inset CommandInset ref
224 LatexCommand eqref
225 reference "eq:C"
226
227 \end_inset
228
229  , 
230 \begin_inset CommandInset ref
231 LatexCommand eqref
232 reference "eq:F"
233
234 \end_inset
235
236  , 
237 \begin_inset CommandInset ref
238 LatexCommand eqref
239 reference "eq:G"
240
241 \end_inset
242
243  , 
244 \begin_inset CommandInset ref
245 LatexCommand eqref
246 reference "eq:D"
247
248 \end_inset
249
250  , 
251 \begin_inset CommandInset ref
252 LatexCommand eqref
253 reference "eq:E"
254
255 \end_inset
256
257  , 
258 \begin_inset CommandInset ref
259 LatexCommand eqref
260 reference "eq:H"
261
262 \end_inset
263
264  , 
265 \begin_inset CommandInset ref
266 LatexCommand eqref
267 reference "eq:I"
268
269 \end_inset
270
271
272 \end_layout
273
274 \begin_layout Standard
275 \noindent
276 \begin_inset CommandInset line
277 LatexCommand rule
278 offset "0.5ex"
279 width "100line%"
280 height "1pt"
281
282 \end_inset
283
284
285 \begin_inset VSpace medskip
286 \end_inset
287
288 Um dieses Beispiel zu erzeugen, muss zuerst für die römisch zu nummerierenden
289  Formeln ein eigener Gleichungszähler angelegt werden.
290  Dazu gibt man im LaTeX-Vorspann Folgendes ein:
291 \end_layout
292
293 \begin_layout Standard
294
295 \series bold
296
297 \backslash
298 newcounter{roem}
299 \begin_inset Newline newline
300 \end_inset
301
302
303 \backslash
304 renewcommand{
305 \backslash
306 theroem}{
307 \backslash
308 roman{roem}}
309 \end_layout
310
311 \begin_layout Standard
312 \begin_inset Newpage newpage
313 \end_inset
314
315 Damit sich LaTeX den Zählerstand des arabischen Zählers 
316 \series bold
317 equation
318 \series default
319  merkt, gibt man im Vorspann
320 \end_layout
321
322 \begin_layout Standard
323
324 \series bold
325
326 \backslash
327 newcommand{
328 \backslash
329 c@org@eq}{}
330 \begin_inset Newline newline
331 \end_inset
332
333
334 \backslash
335 let
336 \backslash
337 c@org@eq
338 \backslash
339 c@equation
340 \begin_inset Newline newline
341 \end_inset
342
343
344 \backslash
345 newcommand{
346 \backslash
347 org@theeq}{}
348 \begin_inset Newline newline
349 \end_inset
350
351
352 \backslash
353 let
354 \backslash
355 org@theeq
356 \backslash
357 theequation
358 \end_layout
359
360 \begin_layout Standard
361 ein.
362  Um im Dokument zwischen den beiden Nummerierungen umschalten zu können,
363  werden folgende beiden Befehle im Vorspann definiert:
364 \end_layout
365
366 \begin_layout Standard
367
368 \series bold
369
370 \backslash
371 newcommand{
372 \backslash
373 setroem}{
374 \backslash
375 let
376 \backslash
377 c@equation
378 \backslash
379 c@roem
380 \backslash
381 let
382 \backslash
383 theequation
384 \backslash
385 theroem}
386 \end_layout
387
388 \begin_layout Standard
389 für römische Nummerierung und
390 \end_layout
391
392 \begin_layout Standard
393
394 \series bold
395
396 \backslash
397 newcommand{
398 \backslash
399 setarab}{
400 \backslash
401 let
402 \backslash
403 c@equation
404 \backslash
405 c@org@eq
406 \backslash
407 let
408 \backslash
409 theequation
410 \backslash
411 org@theeq}
412 \end_layout
413
414 \begin_layout Standard
415 für arabische.
416 \end_layout
417
418 \begin_layout Standard
419 Jede Formel im Dokument wird standardmäßig arabisch nummeriert.
420  Um auf römische Nummerierung umzuschalten, wird im TeX-Modus der Befehl
421  
422 \series bold
423
424 \backslash
425 setroem
426 \series default
427  eingegeben.
428  Auf arabische Nummerierung wird mit dem Befehl 
429 \series bold
430
431 \backslash
432 setarab
433 \series default
434  umgeschaltet.
435 \end_layout
436
437 \end_body
438 \end_document