1 #LyX 1.6.0 created this file. For more info see http://www.lyx.org/
11 \usepackage[colorlinks=true,
12 pdftitle=Formelnummerierung, pdfpagemode=none,
13 pdfpagelayout=OneColumn, pdfstartview=XYZ,
14 pdfauthor={Uwe Stöhr},
15 pdfsubject={LaTeX/LyX numbering example},
16 pdfkeywords={LaTeX, numbering, LyX}]{hyperref}
20 \usepackage[colorlinks=true, hypertex]{hyperref}
24 % define Roman counter
26 \renewcommand{\therom}{\roman{rom}}
28 % remember the original counter
29 \newcommand{\c@org@eq}{}
30 \let\c@org@eq\c@equation
31 \newcommand{\org@theeq}{}
32 \let\org@theeq\theequation
34 % \setrom activates the Roman counter
37 \let\theequation\therom}
39 % \setarab activates the original Arabic counter
40 \newcommand{\setarab}{
41 \let\c@equation\c@org@eq
42 \let\theequation\org@theeq}
45 \use_default_options false
50 \font_typewriter default
51 \font_default_family default
66 \paperorientation portrait
69 \paragraph_separation skip
71 \quotes_language english
75 \tracking_changes false
83 \begin_layout Standard
84 This document demonstrates the usage of two different formula categories.
85 One is Arabic, one is Roman numbered.
88 \begin_layout Standard
89 \begin_inset Formula \begin{equation}
90 A=B\label{eq:B}\end{equation}
95 \begin_inset Formula \begin{equation}
96 A=C\label{eq:C}\end{equation}
104 \begin_layout Plain Layout
114 \begin_inset Formula \begin{equation}
115 A=D\label{eq:D}\end{equation}
120 \begin_inset Formula \begin{equation}
121 A=E\label{eq:E}\end{equation}
129 \begin_layout Plain Layout
139 \begin_inset Formula \begin{equation}
140 A=F\label{eq:F}\end{equation}
145 \begin_inset Formula \begin{equation}
146 A=G\label{eq:G}\end{equation}
154 \begin_layout Plain Layout
164 \begin_inset Formula \begin{equation}
165 A=H\label{eq:H}\end{equation}
170 \begin_inset Formula \begin{equation}
171 A=I\label{eq:I}\end{equation}
178 \begin_layout Standard
180 \begin_inset CommandInset ref
187 \begin_inset CommandInset ref
194 \begin_inset CommandInset ref
201 \begin_inset CommandInset ref
208 \begin_inset CommandInset ref
215 \begin_inset CommandInset ref
222 \begin_inset CommandInset ref
229 \begin_inset CommandInset ref
238 \begin_layout Standard
242 \begin_inset VSpace medskip
245 To create this example, first a counter must be defined for the Roman numbered
247 To do this the following is inserted to the LaTeX-preamble:
250 \begin_layout Standard
256 \begin_inset Newline newline
268 \begin_layout Standard
269 \begin_inset Newpage newpage
272 To save the value of the Arabic counter
276 , this is added to the preamble
279 \begin_layout Standard
287 \begin_inset Newline newline
297 \begin_inset Newline newline
305 \begin_inset Newline newline
317 \begin_layout Standard
318 To be able to switch in the document between the two numbering schemes,
319 the following commands are defined in the preamble:
322 \begin_layout Standard
344 \begin_layout Standard
345 for Roman numbering and
348 \begin_layout Standard
370 \begin_layout Standard
371 for Arabic numbering.
374 \begin_layout Standard
375 Every formula will be by default numbered Arabic.
376 To switch to Roman numbering, the command
382 is inserted in TeX-mode.
389 the numbering is switched to Arabic.