1 #LyX 1.6.0beta3 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}
49 \font_typewriter default
50 \font_default_family default
65 \paperorientation portrait
68 \paragraph_separation skip
70 \quotes_language english
74 \tracking_changes false
82 \begin_layout Standard
83 This document demonstrates the usage of two different formula categories.
84 One is Arabic, one is Roman numbered.
87 \begin_layout Standard
88 \begin_inset Formula \begin{equation}
89 A=B\label{eq:B}\end{equation}
94 \begin_inset Formula \begin{equation}
95 A=C\label{eq:C}\end{equation}
103 \begin_layout Plain Layout
113 \begin_inset Formula \begin{equation}
114 A=D\label{eq:D}\end{equation}
119 \begin_inset Formula \begin{equation}
120 A=E\label{eq:E}\end{equation}
128 \begin_layout Plain Layout
138 \begin_inset Formula \begin{equation}
139 A=F\label{eq:F}\end{equation}
144 \begin_inset Formula \begin{equation}
145 A=G\label{eq:G}\end{equation}
153 \begin_layout Plain Layout
163 \begin_inset Formula \begin{equation}
164 A=H\label{eq:H}\end{equation}
169 \begin_inset Formula \begin{equation}
170 A=I\label{eq:I}\end{equation}
177 \begin_layout Standard
179 \begin_inset CommandInset ref
186 \begin_inset CommandInset ref
193 \begin_inset CommandInset ref
200 \begin_inset CommandInset ref
207 \begin_inset CommandInset ref
214 \begin_inset CommandInset ref
221 \begin_inset CommandInset ref
228 \begin_inset CommandInset ref
237 \begin_layout Standard
241 \begin_inset VSpace medskip
244 To create this example, first a counter must be defined for the Roman numbered
246 To do this the following is inserted to the LaTeX-preamble:
249 \begin_layout Standard
255 \begin_inset Newline newline
267 \begin_layout Standard
268 \begin_inset Newpage newpage
271 To save the value of the Arabic counter
275 , this is added to the preamble
278 \begin_layout Standard
286 \begin_inset Newline newline
296 \begin_inset Newline newline
304 \begin_inset Newline newline
316 \begin_layout Standard
317 To be able to switch in the document between the two numbering schemes,
318 the following commands are defined in the preamble:
321 \begin_layout Standard
343 \begin_layout Standard
344 for Roman numbering and
347 \begin_layout Standard
369 \begin_layout Standard
370 for Arabic numbering.
373 \begin_layout Standard
374 Every formula will be by default numbered Arabic.
375 To switch to Roman numbering, the command
381 is inserted in TeX-mode.
388 the numbering is switched to Arabic.