1 #LyX 2.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
47 \language_package default
51 \font_typewriter default
52 \font_default_family default
69 \paperorientation portrait
72 \paragraph_separation skip
74 \quotes_language english
78 \tracking_changes false
87 \begin_layout Standard
88 This document demonstrates the usage of two different formula categories.
89 One is Arabic, one is Roman numbered.
92 \begin_layout Standard
93 \begin_inset Formula \begin{equation}
94 A=B\label{eq:B}\end{equation}
99 \begin_inset Formula \begin{equation}
100 A=C\label{eq:C}\end{equation}
108 \begin_layout Plain Layout
118 \begin_inset Formula \begin{equation}
119 A=D\label{eq:D}\end{equation}
124 \begin_inset Formula \begin{equation}
125 A=E\label{eq:E}\end{equation}
133 \begin_layout Plain Layout
143 \begin_inset Formula \begin{equation}
144 A=F\label{eq:F}\end{equation}
149 \begin_inset Formula \begin{equation}
150 A=G\label{eq:G}\end{equation}
158 \begin_layout Plain Layout
168 \begin_inset Formula \begin{equation}
169 A=H\label{eq:H}\end{equation}
174 \begin_inset Formula \begin{equation}
175 A=I\label{eq:I}\end{equation}
182 \begin_layout Standard
184 \begin_inset CommandInset ref
191 \begin_inset CommandInset ref
198 \begin_inset CommandInset ref
205 \begin_inset CommandInset ref
212 \begin_inset CommandInset ref
219 \begin_inset CommandInset ref
226 \begin_inset CommandInset ref
233 \begin_inset CommandInset ref
242 \begin_layout Standard
245 \begin_inset CommandInset line
255 \begin_inset VSpace medskip
258 To create this example, first a counter must be defined for the Roman numbered
260 To do this the following is inserted to the LaTeX-preamble:
263 \begin_layout Standard
269 \begin_inset Newline newline
281 \begin_layout Standard
282 \begin_inset Newpage newpage
285 To save the value of the Arabic counter
289 , this is added to the preamble
292 \begin_layout Standard
300 \begin_inset Newline newline
310 \begin_inset Newline newline
318 \begin_inset Newline newline
330 \begin_layout Standard
331 To be able to switch in the document between the two numbering schemes,
332 the following commands are defined in the preamble:
335 \begin_layout Standard
357 \begin_layout Standard
358 for Roman numbering and
361 \begin_layout Standard
383 \begin_layout Standard
384 for Arabic numbering.
387 \begin_layout Standard
388 Every formula will be by default numbered Arabic.
389 To switch to Roman numbering, the command
395 is inserted in TeX-mode.
402 the numbering is switched to Arabic.