I wrote a new manual "LyX's detailed math manual". See the announcement on the list.

The file examples/mathed.lyx is no longer needed as its content is part of the new manual.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22691 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-01-27 20:58:45 +00:00
parent a0cf89394c
commit cfdad9946d
13 changed files with 67778 additions and 27696 deletions

View File

@ -1 +1 @@
call scons install prefix=..\..\build-msvc use_vc=yes frontend=qt4 mode=release version_suffix=16 gettext=system nls=yes extra_inc_path=..\..\lyx-windows-deps-msvc2008\include extra_lib_path=..\..\lyx-windows-deps-msvc2008\lib extra_bin_path=..\..\lyx-windows-deps-msvc2008\bin qt_dir=..\..\lyx-windows-deps-msvc2008\qt-4
call scons install prefix=..\..\build-msvc use_vc=yes frontend=qt4 mode=release version_suffix=16 gettext=system nls=yes extra_inc_path=..\..\lyx-windows-deps-msvc-qt4\include extra_lib_path=..\..\lyx-windows-deps-msvc-qt4\lib extra_bin_path=..\..\lyx-windows-deps-msvc-qt4\bin qt_dir=..\..\lyx-windows-deps-msvc-qt4\qt-4

View File

@ -2024,8 +2024,10 @@ lib_doc_files = Split('''
EmbeddedObjects.lyx
Extended.lyx
FAQ.lyx
Formula-numbering.lyx
Intro.lyx
LaTeXConfig.lyx
Math.lyx
Reference.lyx
Shortcuts.lyx
Tutorial.lyx
@ -2095,7 +2097,9 @@ lib_doc_de_files = Split('''
EmbeddedObjects.lyx
Extended.lyx
FAQ.lyx
Formelnummerierung.lyx
Intro.lyx
Math.lyx
Tutorial.lyx
UserGuide.lyx
''')
@ -2308,7 +2312,6 @@ lib_examples_files = Split('''
linguistics.lyx
listerrors.lyx
listings.lyx
mathed.lyx
modernCV.lyx
multicol.lyx
noweb2lyx.lyx
@ -2341,7 +2344,6 @@ lib_examples_de_files = Split('''
Minipage.lyx
beispiel_gelyxt.lyx
beispiel_roh.lyx
mathed.lyx
multicol.lyx
splash.lyx
''')

View File

@ -90,7 +90,6 @@ dist_deexamples_DATA = \
examples/de/beispiel_roh.lyx \
examples/de/Dezimal.lyx \
examples/de/splash.lyx \
examples/de/mathed.lyx \
examples/de/multicol.lyx
esexamplesdir = $(pkgdatadir)/examples/es
@ -221,7 +220,6 @@ dist_examples_DATA = \
examples/linguistics.lyx \
examples/listerrors.lyx \
examples/listings.lyx \
examples/mathed.lyx \
examples/modernCV.lyx \
examples/multicol.lyx \
examples/noweb2lyx.lyx \

View File

@ -0,0 +1,374 @@
#LyX 1.5.4svn created this file. For more info see http://www.lyx.org/
\lyxformat 276
\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 numbering example},
pdfkeywords={LaTeX, numbering, LyX}]{hyperref}
\else % if DVI
\usepackage[colorlinks=true, hypertex]{hyperref}
\fi
% define Roman counter
\newcounter{rom}
\renewcommand{\therom}{\roman{rom}}
% remember the original counter
\newcommand{\c@org@eq}{}
\let\c@org@eq\c@equation
\newcommand{\org@theeq}{}
\let\org@theeq\theequation
% \setrom activates the Roman counter
\newcommand{\setrom}{
\let\c@equation\c@rom
\let\theequation\therom}
% \setarab activates the original Arabic counter
\newcommand{\setarab}{
\let\c@equation\c@org@eq
\let\theequation\org@theeq}
\end_preamble
\options fleqn
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 12
\spacing single
\papersize default
\use_geometry false
\use_amsmath 2
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 4
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle empty
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Standard
This document demonstrates the usage of two different formula categories.
One is Arabic, one is Roman numbered.
\end_layout
\begin_layout Standard
\begin_inset Formula \begin{equation}
A=B\label{eq:B}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=C\label{eq:C}\end{equation}
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
setrom
\end_layout
\end_inset
\begin_inset Formula \begin{equation}
A=D\label{eq:D}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=E\label{eq:E}\end{equation}
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
setarab
\end_layout
\end_inset
\begin_inset Formula \begin{equation}
A=F\label{eq:F}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=G\label{eq:G}\end{equation}
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
setrom
\end_layout
\end_inset
\begin_inset Formula \begin{equation}
A=H\label{eq:H}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=I\label{eq:I}\end{equation}
\end_inset
\end_layout
\begin_layout Standard
Cross-references:
\begin_inset LatexCommand eqref
reference "eq:B"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:C"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:F"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:G"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:D"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:E"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:H"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:I"
\end_inset
\end_layout
\begin_layout Standard
\lyxline
\begin_inset VSpace medskip
\end_inset
To create this example, first a counter must be defined for the Roman numbered
formulas.
To do this the following is inserted to the LaTeX-preamble:
\end_layout
\begin_layout Standard
\series bold
\backslash
newcounter{rom}
\newline
\backslash
renewcommand{
\backslash
therom}{
\backslash
roman{rom}}
\end_layout
\begin_layout Standard
\newpage
To save the value of the Arabic counter
\series bold
equation
\series default
, this is added to the preamble
\end_layout
\begin_layout Standard
\series bold
\backslash
newcommand{
\backslash
c@org@eq}{}
\newline
\backslash
let
\backslash
c@org@eq
\backslash
c@equation
\newline
\backslash
newcommand{
\backslash
org@theeq}{}
\newline
\backslash
let
\backslash
org@theeq
\backslash
theequation
\end_layout
\begin_layout Standard
To be able to switch in the document between the two numbering schemes,
the following commands are defined in the preamble:
\end_layout
\begin_layout Standard
\series bold
\backslash
newcommand{
\backslash
setrom}{
\backslash
let
\backslash
c@equation
\backslash
c@rom
\backslash
let
\backslash
theequation
\backslash
therom}
\end_layout
\begin_layout Standard
for Roman numbering and
\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
for Arabic numbering.
\end_layout
\begin_layout Standard
Every formula will be by default numbered Arabic.
To switch to Roman numbering, the command
\series bold
\backslash
setrom
\series default
is inserted in TeX-mode.
With the command
\series bold
\backslash
setarab
\series default
the numbering is switched to Arabic.
\end_layout
\end_body
\end_document

View File

@ -59,7 +59,9 @@ dist_dedoc_DATA = \
de/EmbeddedObjects.lyx \
de/Extended.lyx \
de/FAQ.lyx \
de/Formelnummerierung.lyx \
de/Intro.lyx \
de/Math.lyx \
de/Tutorial.lyx \
de/UserGuide.lyx
@ -217,8 +219,10 @@ dist_doc_DATA = \
EmbeddedObjects.lyx \
Extended.lyx \
FAQ.lyx \
Formula-numbering.lyx \
Intro.lyx \
LaTeXConfig.lyx \
Math.lyx \
Reference.lyx \
Shortcuts.lyx \
Tutorial.lyx \

View File

@ -4,64 +4,64 @@
# First come the rules for each xx/TOC.lyx file. Then comes the
# TOCs target, which prints all the TOC files.
cs/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Intro.lyx $(srcdir)/UserGuide.lyx $(srcdir)/cs/Tutorial.lyx
cs/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Intro.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/cs/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py cs .
da/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx $(srcdir)/da/Intro.lyx
da/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx $(srcdir)/da/Intro.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py da .
de/TOC.lyx: $(srcdir)/de/Customization.lyx $(srcdir)/de/EmbeddedObjects.lyx $(srcdir)/de/Extended.lyx $(srcdir)/de/FAQ.lyx $(srcdir)/de/Intro.lyx $(srcdir)/de/Tutorial.lyx $(srcdir)/de/UserGuide.lyx
de/TOC.lyx: $(srcdir)/de/Customization.lyx $(srcdir)/de/EmbeddedObjects.lyx $(srcdir)/de/Extended.lyx $(srcdir)/de/FAQ.lyx $(srcdir)/de/Intro.lyx $(srcdir)/de/Math.lyx $(srcdir)/de/Tutorial.lyx $(srcdir)/de/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py de .
TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Intro.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx
TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Intro.lyx $(srcdir)/Math.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py en .
es/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/es/EmbeddedObjects.lyx $(srcdir)/es/Extended.lyx $(srcdir)/es/FAQ.lyx $(srcdir)/es/Intro.lyx $(srcdir)/es/Tutorial.lyx $(srcdir)/es/UserGuide.lyx
es/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/es/EmbeddedObjects.lyx $(srcdir)/es/Extended.lyx $(srcdir)/es/FAQ.lyx $(srcdir)/es/Intro.lyx $(srcdir)/Math.lyx $(srcdir)/es/Tutorial.lyx $(srcdir)/es/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py es .
eu/TOC.lyx: $(srcdir)/eu/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/eu/Extended.lyx $(srcdir)/eu/FAQ.lyx $(srcdir)/eu/Intro.lyx $(srcdir)/eu/Tutorial.lyx $(srcdir)/eu/UserGuide.lyx
eu/TOC.lyx: $(srcdir)/eu/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/eu/Extended.lyx $(srcdir)/eu/FAQ.lyx $(srcdir)/eu/Intro.lyx $(srcdir)/Math.lyx $(srcdir)/eu/Tutorial.lyx $(srcdir)/eu/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py eu .
fr/TOC.lyx: $(srcdir)/fr/Customization.lyx $(srcdir)/fr/EmbeddedObjects.lyx $(srcdir)/fr/Extended.lyx $(srcdir)/fr/FAQ.lyx $(srcdir)/fr/Intro.lyx $(srcdir)/fr/Tutorial.lyx $(srcdir)/fr/UserGuide.lyx
fr/TOC.lyx: $(srcdir)/fr/Customization.lyx $(srcdir)/fr/EmbeddedObjects.lyx $(srcdir)/fr/Extended.lyx $(srcdir)/fr/FAQ.lyx $(srcdir)/fr/Intro.lyx $(srcdir)/Math.lyx $(srcdir)/fr/Tutorial.lyx $(srcdir)/fr/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py fr .
gl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/gl/Intro.lyx $(srcdir)/gl/Tutorial.lyx
gl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/gl/Intro.lyx $(srcdir)/gl/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py gl .
he/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/he/Intro.lyx $(srcdir)/he/Tutorial.lyx
he/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/he/Intro.lyx $(srcdir)/he/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py he .
hu/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/hu/Intro.lyx $(srcdir)/hu/Tutorial.lyx
hu/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/hu/Intro.lyx $(srcdir)/hu/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py hu .
it/TOC.lyx: $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/it/Customization.lyx $(srcdir)/it/Intro.lyx $(srcdir)/it/Tutorial.lyx $(srcdir)/it/UserGuide.lyx
it/TOC.lyx: $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/it/Customization.lyx $(srcdir)/it/Intro.lyx $(srcdir)/it/Tutorial.lyx $(srcdir)/it/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py it .
nb/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx $(srcdir)/nb/Intro.lyx
nb/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx $(srcdir)/nb/Intro.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py nb .
nl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/nl/Intro.lyx $(srcdir)/nl/Tutorial.lyx
nl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/nl/Intro.lyx $(srcdir)/nl/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py nl .
pl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/pl/Extended.lyx $(srcdir)/pl/Intro.lyx $(srcdir)/pl/Tutorial.lyx
pl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/pl/Extended.lyx $(srcdir)/pl/Intro.lyx $(srcdir)/pl/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py pl .
pt/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/pt/Intro.lyx $(srcdir)/pt/Tutorial.lyx
pt/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/pt/Intro.lyx $(srcdir)/pt/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py pt .
ro/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx $(srcdir)/ro/Intro.lyx
ro/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/Tutorial.lyx $(srcdir)/UserGuide.lyx $(srcdir)/ro/Intro.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py ro .
ru/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/UserGuide.lyx $(srcdir)/ru/FAQ.lyx $(srcdir)/ru/Intro.lyx $(srcdir)/ru/Tutorial.lyx
ru/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/ru/FAQ.lyx $(srcdir)/ru/Intro.lyx $(srcdir)/ru/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py ru .
sk/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Intro.lyx $(srcdir)/sk/Tutorial.lyx $(srcdir)/sk/UserGuide.lyx
sk/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Intro.lyx $(srcdir)/Math.lyx $(srcdir)/sk/Tutorial.lyx $(srcdir)/sk/UserGuide.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py sk .
sl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/sl/Intro.lyx $(srcdir)/sl/Tutorial.lyx
sl/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/sl/Intro.lyx $(srcdir)/sl/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py sl .
sv/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/UserGuide.lyx $(srcdir)/sv/Intro.lyx $(srcdir)/sv/Tutorial.lyx
sv/TOC.lyx: $(srcdir)/Customization.lyx $(srcdir)/EmbeddedObjects.lyx $(srcdir)/Extended.lyx $(srcdir)/FAQ.lyx $(srcdir)/Math.lyx $(srcdir)/UserGuide.lyx $(srcdir)/sv/Intro.lyx $(srcdir)/sv/Tutorial.lyx
PYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py sv .
tocfiles = cs/TOC.lyx da/TOC.lyx de/TOC.lyx TOC.lyx es/TOC.lyx eu/TOC.lyx fr/TOC.lyx gl/TOC.lyx he/TOC.lyx hu/TOC.lyx it/TOC.lyx nb/TOC.lyx nl/TOC.lyx pl/TOC.lyx pt/TOC.lyx ro/TOC.lyx ru/TOC.lyx sk/TOC.lyx sl/TOC.lyx sv/TOC.lyx

33322
lib/doc/Math.lyx Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,376 @@
#LyX 1.5.4svn created this file. For more info see http://www.lyx.org/
\lyxformat 276
\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
\usepackage[colorlinks=true, hypertex]{hyperref}
\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
\language ngerman
\inputencoding auto
\font_roman ae
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 12
\spacing single
\papersize default
\use_geometry false
\use_amsmath 2
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 4
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\papercolumns 1
\papersides 1
\paperpagestyle empty
\tracking_changes false
\output_changes false
\author ""
\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
\begin_inset Formula \begin{equation}
A=B\label{eq:B}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=C\label{eq:C}\end{equation}
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
setroem
\end_layout
\end_inset
\begin_inset Formula \begin{equation}
A=D\label{eq:D}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=E\label{eq:E}\end{equation}
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
setarab
\end_layout
\end_inset
\begin_inset Formula \begin{equation}
A=F\label{eq:F}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=G\label{eq:G}\end{equation}
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
setroem
\end_layout
\end_inset
\begin_inset Formula \begin{equation}
A=H\label{eq:H}\end{equation}
\end_inset
\begin_inset Formula \begin{equation}
A=I\label{eq:I}\end{equation}
\end_inset
\end_layout
\begin_layout Standard
Querverweise:
\begin_inset LatexCommand eqref
reference "eq:B"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:C"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:F"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:G"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:D"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:E"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:H"
\end_inset
,
\begin_inset LatexCommand eqref
reference "eq:I"
\end_inset
\end_layout
\begin_layout Standard
\lyxline
\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}
\newline
\backslash
renewcommand{
\backslash
theroem}{
\backslash
roman{roem}}
\end_layout
\begin_layout Standard
\newpage
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}{}
\newline
\backslash
let
\backslash
c@org@eq
\backslash
c@equation
\newline
\backslash
newcommand{
\backslash
org@theeq}{}
\newline
\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

33674
lib/doc/de/Math.lyx Normal file

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@ import os
import re
possible_documents = ("Intro", "FAQ", "Tutorial", "UserGuide", "EmbeddedObjects", "Extended", "Customization")
possible_documents = ("Customization", "EmbeddedObjects", "Extended", "FAQ", "Intro", "Math", "Tutorial", "UserGuide")
def documents(srcdir, lang, dir_prefix = None):
'''Return documents for specified language. Translated files are in lang

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -510,7 +510,8 @@ Menuset
Item "Tutorial|T" "help-open Tutorial"
Item "User's Guide|U" "help-open UserGuide"
Item "Extended Features|E" "help-open Extended"
Item "Embedded Objects|m" "help-open EmbeddedObjects"
Item "Embedded Objects|m" "help-open EmbeddedObjects"
Item "Math|h" "help-open Math"
Item "Customization|C" "help-open Customization"
Item "Shortcuts|S" "help-open Shortcuts"
Item "FAQ|F" "help-open FAQ"