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