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