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