1 #LyX 1.6.0svn 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
67 \paperorientation portrait
70 \paragraph_separation skip
72 \quotes_language english
76 \tracking_changes false
84 \begin_layout Standard
85 This document demonstrates the usage of two different formula categories.
86 One is Arabic, one is Roman numbered.
89 \begin_layout Standard
90 \begin_inset Formula \begin{equation}
91 A=B\label{eq:B}\end{equation}
96 \begin_inset Formula \begin{equation}
97 A=C\label{eq:C}\end{equation}
105 \begin_layout Plain Layout
115 \begin_inset Formula \begin{equation}
116 A=D\label{eq:D}\end{equation}
121 \begin_inset Formula \begin{equation}
122 A=E\label{eq:E}\end{equation}
130 \begin_layout Plain Layout
140 \begin_inset Formula \begin{equation}
141 A=F\label{eq:F}\end{equation}
146 \begin_inset Formula \begin{equation}
147 A=G\label{eq:G}\end{equation}
155 \begin_layout Plain Layout
165 \begin_inset Formula \begin{equation}
166 A=H\label{eq:H}\end{equation}
171 \begin_inset Formula \begin{equation}
172 A=I\label{eq:I}\end{equation}
179 \begin_layout Standard
181 \begin_inset CommandInset ref
188 \begin_inset CommandInset ref
195 \begin_inset CommandInset ref
202 \begin_inset CommandInset ref
209 \begin_inset CommandInset ref
216 \begin_inset CommandInset ref
223 \begin_inset CommandInset ref
230 \begin_inset CommandInset ref
239 \begin_layout Standard
243 \begin_inset VSpace medskip
246 To create this example, first a counter must be defined for the Roman numbered
248 To do this the following is inserted to the LaTeX-preamble:
251 \begin_layout Standard
257 \begin_inset Newline newline
269 \begin_layout Standard
270 \begin_inset Newpage newpage
273 To save the value of the Arabic counter
277 , this is added to the preamble
280 \begin_layout Standard
288 \begin_inset Newline newline
298 \begin_inset Newline newline
306 \begin_inset Newline newline
318 \begin_layout Standard
319 To be able to switch in the document between the two numbering schemes,
320 the following commands are defined in the preamble:
323 \begin_layout Standard
345 \begin_layout Standard
346 for Roman numbering and
349 \begin_layout Standard
371 \begin_layout Standard
372 for Arabic numbering.
375 \begin_layout Standard
376 Every formula will be by default numbered Arabic.
377 To switch to Roman numbering, the command
383 is inserted in TeX-mode.
390 the numbering is switched to Arabic.