1 #LyX 1.5.4svn 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
64 \paperorientation portrait
67 \paragraph_separation skip
69 \quotes_language english
73 \tracking_changes false
81 \begin_layout Standard
82 This document demonstrates the usage of two different formula categories.
83 One is Arabic, one is Roman numbered.
86 \begin_layout Standard
87 \begin_inset Formula \begin{equation}
88 A=B\label{eq:B}\end{equation}
93 \begin_inset Formula \begin{equation}
94 A=C\label{eq:C}\end{equation}
102 \begin_layout Standard
112 \begin_inset Formula \begin{equation}
113 A=D\label{eq:D}\end{equation}
118 \begin_inset Formula \begin{equation}
119 A=E\label{eq:E}\end{equation}
127 \begin_layout Standard
137 \begin_inset Formula \begin{equation}
138 A=F\label{eq:F}\end{equation}
143 \begin_inset Formula \begin{equation}
144 A=G\label{eq:G}\end{equation}
152 \begin_layout Standard
162 \begin_inset Formula \begin{equation}
163 A=H\label{eq:H}\end{equation}
168 \begin_inset Formula \begin{equation}
169 A=I\label{eq:I}\end{equation}
176 \begin_layout Standard
178 \begin_inset LatexCommand eqref
184 \begin_inset LatexCommand eqref
190 \begin_inset LatexCommand eqref
196 \begin_inset LatexCommand eqref
202 \begin_inset LatexCommand eqref
208 \begin_inset LatexCommand eqref
214 \begin_inset LatexCommand eqref
220 \begin_inset LatexCommand eqref
228 \begin_layout Standard
232 \begin_inset VSpace medskip
235 To create this example, first a counter must be defined for the Roman numbered
237 To do this the following is inserted to the LaTeX-preamble:
240 \begin_layout Standard
256 \begin_layout Standard
259 To save the value of the Arabic counter
263 , this is added to the preamble
266 \begin_layout Standard
298 \begin_layout Standard
299 To be able to switch in the document between the two numbering schemes,
300 the following commands are defined in the preamble:
303 \begin_layout Standard
325 \begin_layout Standard
326 for Roman numbering and
329 \begin_layout Standard
351 \begin_layout Standard
352 for Arabic numbering.
355 \begin_layout Standard
356 Every formula will be by default numbered Arabic.
357 To switch to Roman numbering, the command
363 is inserted in TeX-mode.
370 the numbering is switched to Arabic.