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