2011-06-13 14:57:52 +00:00
|
|
|
#LyX 2.0 created this file. For more info see http://www.lyx.org/
|
|
|
|
\lyxformat 413
|
2008-01-27 20:58:45 +00:00
|
|
|
\begin_document
|
|
|
|
\begin_header
|
|
|
|
\textclass scrartcl
|
|
|
|
\begin_preamble
|
|
|
|
\usepackage{ifpdf}
|
|
|
|
|
|
|
|
\ifpdf
|
|
|
|
|
|
|
|
\usepackage[colorlinks=true,
|
|
|
|
pdftitle=Formelnummerierung, pdfpagemode=none,
|
|
|
|
pdfpagelayout=OneColumn, pdfstartview=XYZ,
|
|
|
|
pdfauthor={Uwe Stöhr},
|
|
|
|
pdfsubject={LaTeX/LyX-Nummerierungsbeispiel},
|
|
|
|
pdfkeywords={LaTeX, Nummerierung, LyX}]{hyperref}
|
|
|
|
|
|
|
|
\else % if DVI
|
|
|
|
|
2013-10-10 06:19:28 +00:00
|
|
|
\usepackage[colorlinks=true]{hyperref}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\fi
|
|
|
|
|
|
|
|
%Roemischen Gleichungszaehler einrichten
|
|
|
|
\newcounter{roem}
|
|
|
|
\renewcommand{\theroem}{\roman{roem}}
|
|
|
|
|
|
|
|
%Merken des Originalzaehlers
|
|
|
|
\newcommand{\c@org@eq}{}
|
|
|
|
\let\c@org@eq\c@equation
|
|
|
|
\newcommand{\org@theeq}{}
|
|
|
|
\let\org@theeq\theequation
|
|
|
|
|
|
|
|
%\setroem aktiviert den roemischen Gleichungszaehler
|
|
|
|
\newcommand{\setroem}{
|
|
|
|
\let\c@equation\c@roem
|
|
|
|
\let\theequation\theroem}
|
|
|
|
|
|
|
|
%\setarab aktiviert den urspruenglichen arabischen Gleichungszaehler
|
|
|
|
\newcommand{\setarab}{
|
|
|
|
\let\c@equation\c@org@eq
|
|
|
|
\let\theequation\org@theeq}
|
|
|
|
\end_preamble
|
|
|
|
\options fleqn
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_default_options false
|
|
|
|
\maintain_unincluded_children false
|
2008-01-27 20:58:45 +00:00
|
|
|
\language ngerman
|
2011-06-13 14:57:52 +00:00
|
|
|
\language_package default
|
2008-01-27 20:58:45 +00:00
|
|
|
\inputencoding auto
|
2011-06-13 14:57:52 +00:00
|
|
|
\fontencoding global
|
2008-01-27 20:58:45 +00:00
|
|
|
\font_roman ae
|
|
|
|
\font_sans default
|
|
|
|
\font_typewriter default
|
|
|
|
\font_default_family default
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_non_tex_fonts false
|
2008-01-27 20:58:45 +00:00
|
|
|
\font_sc false
|
|
|
|
\font_osf false
|
|
|
|
\font_sf_scale 100
|
|
|
|
\font_tt_scale 100
|
2011-06-13 14:57:52 +00:00
|
|
|
|
2008-01-27 20:58:45 +00:00
|
|
|
\graphics default
|
2011-06-13 14:57:52 +00:00
|
|
|
\default_output_format default
|
|
|
|
\output_sync 0
|
|
|
|
\bibtex_command default
|
|
|
|
\index_command default
|
2008-01-27 20:58:45 +00:00
|
|
|
\paperfontsize 12
|
|
|
|
\spacing single
|
2008-06-04 22:22:42 +00:00
|
|
|
\use_hyperref false
|
2008-01-27 20:58:45 +00:00
|
|
|
\papersize default
|
|
|
|
\use_geometry false
|
|
|
|
\use_amsmath 2
|
|
|
|
\use_esint 0
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_mhchem 1
|
|
|
|
\use_mathdots 1
|
2008-01-27 20:58:45 +00:00
|
|
|
\cite_engine basic
|
|
|
|
\use_bibtopic false
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_indices false
|
2008-01-27 20:58:45 +00:00
|
|
|
\paperorientation portrait
|
2011-06-13 14:57:52 +00:00
|
|
|
\suppress_date false
|
|
|
|
\use_refstyle 0
|
|
|
|
\index Stichwortverzeichnis
|
|
|
|
\shortcut idx
|
|
|
|
\color #008000
|
|
|
|
\end_index
|
2008-01-27 20:58:45 +00:00
|
|
|
\secnumdepth 4
|
|
|
|
\tocdepth 3
|
|
|
|
\paragraph_separation skip
|
|
|
|
\defskip medskip
|
|
|
|
\quotes_language german
|
|
|
|
\papercolumns 1
|
|
|
|
\papersides 1
|
|
|
|
\paperpagestyle empty
|
|
|
|
\tracking_changes false
|
|
|
|
\output_changes false
|
2011-06-13 14:57:52 +00:00
|
|
|
\html_math_output 0
|
|
|
|
\html_css_as_file 0
|
|
|
|
\html_be_strict false
|
2008-01-27 20:58:45 +00:00
|
|
|
\end_header
|
|
|
|
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Diese Datei ist ein Beispiel zur Verwendung von zwei verschiedenen Formelkategor
|
|
|
|
ien.
|
|
|
|
Die eine wird arabisch, die andere römisch nummeriert.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=B\label{eq:B}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=C\label{eq:C}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setroem
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=D\label{eq:D}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=E\label{eq:E}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setarab
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=F\label{eq:F}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=G\label{eq:G}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setroem
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=H\label{eq:H}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=I\label{eq:I}
|
|
|
|
\end{equation}
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Querverweise:
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:B"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:C"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:F"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:G"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:D"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:E"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:H"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-01-27 20:58:45 +00:00
|
|
|
reference "eq:I"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2011-06-13 14:57:52 +00:00
|
|
|
\noindent
|
|
|
|
\begin_inset CommandInset line
|
|
|
|
LatexCommand rule
|
|
|
|
offset "0.5ex"
|
|
|
|
width "100line%"
|
|
|
|
height "1pt"
|
|
|
|
|
|
|
|
\end_inset
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
\begin_inset VSpace medskip
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
Um dieses Beispiel zu erzeugen, muss zuerst für die römisch zu nummerierenden
|
|
|
|
Formeln ein eigener Gleichungszähler angelegt werden.
|
|
|
|
Dazu gibt man im LaTeX-Vorspann Folgendes ein:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcounter{roem}
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
renewcommand{
|
|
|
|
\backslash
|
|
|
|
theroem}{
|
|
|
|
\backslash
|
|
|
|
roman{roem}}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset Newpage newpage
|
|
|
|
\end_inset
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
Damit sich LaTeX den Zählerstand des arabischen Zählers
|
|
|
|
\series bold
|
|
|
|
equation
|
|
|
|
\series default
|
|
|
|
merkt, gibt man im Vorspann
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
c@org@eq}{}
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@org@eq
|
|
|
|
\backslash
|
|
|
|
c@equation
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
org@theeq}{}
|
2008-06-04 22:22:42 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-01-27 20:58:45 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
org@theeq
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
ein.
|
|
|
|
Um im Dokument zwischen den beiden Nummerierungen umschalten zu können,
|
|
|
|
werden folgende beiden Befehle im Vorspann definiert:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
setroem}{
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@equation
|
|
|
|
\backslash
|
|
|
|
c@roem
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\backslash
|
|
|
|
theroem}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
für römische Nummerierung und
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
setarab}{
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@equation
|
|
|
|
\backslash
|
|
|
|
c@org@eq
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\backslash
|
|
|
|
org@theeq}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
für arabische.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Jede Formel im Dokument wird standardmäßig arabisch nummeriert.
|
|
|
|
Um auf römische Nummerierung umzuschalten, wird im TeX-Modus der Befehl
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setroem
|
|
|
|
\series default
|
|
|
|
eingegeben.
|
|
|
|
Auf arabische Nummerierung wird mit dem Befehl
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setarab
|
|
|
|
\series default
|
|
|
|
umgeschaltet.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
\end_document
|