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