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