-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 503
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
\begin_document
\begin_header
+\save_transient_properties true
\origin /systemlyxdir/doc/
\textclass scrartcl
\begin_preamble
\newcommand{\fracS}[3][]{\genfrac{}{}{#1}{}{#2}{#3}}
% example macro from sec. 19.4
+%\AtBeginDocument{
%\def\tagform@#1{\maketag@@@{|#1|}}
-
+%}
% ------------------------------------
% used to check for needed LaTeX packages
\end_preamble
\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
\use_default_options false
+\begin_modules
+subequations
+\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
\graphics default
\default_output_format pdf2
\output_sync 0
\use_geometry false
\use_package amsmath 2
\use_package amssymb 2
-\use_package cancel 0
+\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 2
\use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
+\use_package stackrel 1
+\use_package stmaryrd 1
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\suppress_date false
\justification true
\use_refstyle 0
+\use_minted 0
\notefontcolor #0000ff
\index Index
\shortcut idx
\tocdepth 3
\paragraph_separation skip
\defskip medskip
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle plain
\bullet 1 0 6 -1
\bullet 2 2 35 -1
\bullet 3 2 7 -1
-\tracking_changes true
+\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
-\author 2047637253 "Guillaume Munch"
\end_header
\begin_body
name "lyx-docs@lists.lyx.org"
target "lyx-docs@lists.lyx.org?subject=LyX's Math manual"
type "mailto:"
+literal "false"
\end_inset
\family sans
-Version 2.2.x
+Version 2.3.x
\end_layout
\begin_layout Standard
\series bold
-http://wiki.lyx.org/LyX/DocumentationDevelopment#Math
+https://wiki.lyx.org/LyX/Manuals#Math
\end_layout
\end_inset
\begin_inset CommandInset href
LatexCommand href
-name "amsguide.ps"
-target "ftp://ftp.ams.org/pub/tex/doc/amstex/amsguide.pdf"
+name "amsguide.pdf"
+target "https://www.ctan.org/tex-archive/macros/amstex/doc/amsguide.pdf"
+literal "false"
\end_inset
\begin_inset Text
\begin_layout Plain Layout
-böp
+bp
\end_layout
\end_inset
\end_inset
.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
dfrac
\series default
.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
or the table toolbar button
\begin_inset Info
type "icon"
-arg "inset-modify tabular append-row"
+arg "tabular-feature append-row"
\end_inset
.
every character can be displayed canceled.
The characters are quasi accentuated by a slash.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
the following problem occurs:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
The arrows indicate that the complete width and height of the box content
will be created as placeholder.
Phantom characters are accordingly placeholders with the size of the characters.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
, \SpecialChar LaTeX
decides on the basis of the next character what type is used.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Info
type "icon"
-arg "inset-modify tabular append-row"
+arg "tabular-feature append-row"
\end_inset
,
\begin_inset Info
type "icon"
-arg "inset-modify tabular delete-row"
+arg "tabular-feature delete-row"
\end_inset
, etc.
\begin_layout Standard
These commands are used to emphasize levels of brackets:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
Here is an overview about all bracket sizes:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
In the following table is a comparison of the variants:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\series default
the wanted bracket must be inserted.
The bracket size will then automatically be calculated for the output.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
always
\family default
, you have access to square backets:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\series default
you can change the thickness of the bracket's stroke by specifying the
desired thickness in square brackets behind the command:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset CommandInset href
LatexCommand href
name "LyX-bug #1505"
-target "http://www.lyx.org/trac/ticket/1505"
+target "https://www.lyx.org/trac/ticket/1505"
+literal "false"
\end_inset
\end_inset
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
The command scheme is for all these arrows:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
Space
\family default
afterwards.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
contrary to the other sizes, because it is a negative
space.
There are two more negative spaces:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
useful for summation operators:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
To suppress this, the equal sign is placed into a \SpecialChar TeX
brace.
The following example demonstrates this:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
fbox
\series default
.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
-\series default
-
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
and
\series bold
yellow
-\series default
-
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
times the frame separation and the frame thickness must be subtracted from
the line width.
- As this is not automatically done by \SpecialChar LyX
- due to a bug
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-\begin_inset CommandInset href
-LatexCommand href
-name "LyX-bug #4483"
-target "http://www.lyx.org/trac/ticket/4483"
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-, \SpecialChar TeX
- mode has to be used.
To be able to multiply and subtract in arguments, the \SpecialChar LaTeX
-package
\series bold
\begin_layout Standard
Limits are created by super- and subscripts:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
\align center
-\begin_inset space \hfill{}
-\end_inset
-
-
\begin_inset Tabular
-<lyxtabular version="3" rows="6" columns="2">
+<lyxtabular version="3" rows="6" columns="3">
<features booktabs="true" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
Result
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Shortcut
+\end_layout
+
\end_inset
</cell>
</row>
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "shortcut"
+arg "font-bold"
+\end_inset
+
+
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "shortcut"
+arg "font-boldsymbol"
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
-\begin_inset space \hfill{}
-\end_inset
-
+\end_layout
+\begin_layout Standard
+\align center
\begin_inset Tabular
-<lyxtabular version="3" rows="6" columns="2">
+<lyxtabular version="3" rows="6" columns="3">
<features booktabs="true" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
Result
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Shortcut
+\end_layout
+
\end_inset
</cell>
</row>
\end_layout
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+-
+\end_layout
+
\end_inset
</cell>
</row>
\end_inset
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "shortcut"
+arg "font-roman"
+\end_inset
+
+
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "shortcut"
+arg "font-sans"
+\end_inset
+
+
\end_layout
\end_inset
\end_inset
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "shortcut"
+arg "font-typewriter"
+\end_inset
+
+
\end_layout
\end_inset
\end_inset
</cell>
-</row>
-</lyxtabular>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
-\end_inset
+\begin_layout Plain Layout
+-
+\end_layout
+\end_inset
+</cell>
+</row>
+</lyxtabular>
-\begin_inset space \hfill{}
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "LyX-bug #4629"
-target "http://www.lyx.org/trac/ticket/4629"
+target "https://www.lyx.org/trac/ticket/4629"
+literal "false"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "LyX-bug #5269"
-target "http://www.lyx.org/trac/ticket/5269"
+target "https://www.lyx.org/trac/ticket/5269"
+literal "false"
\end_inset
\end_inset
:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset CommandInset citation
LatexCommand cite
key "Symbols"
+literal "true"
\end_inset
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Subsection
\begin_layout Standard
An overview about the different Euro symbols:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
-
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
\end_layout
\begin_layout Section
\end_inset
:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
.
- Therefore there are predefined functionswhich are additionally a bit separated
+ Therefore there are predefined functions which are additionally a bit separated
from prefactors.
They are inserted as commands starting with a backslash before their name.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
limsup
\series default
the following functions are defined:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
To get these characters you have to insert them with a leading
\backslash
:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Text
\begin_layout Plain Layout
-\begin_inset Formula $\textrm{\aa}$
+\begin_inset Formula $\textrm{å}$
\end_inset
\backslash
AA
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-@
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-textrm{
-\backslash
-AA}
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
-\end_inset
-
-
\end_layout
\end_inset
\begin_layout Itemize
There are two different alignment styles:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_deeper
\begin_layout Description
-Centered is the predefined standard
+Centered is the predefined standard.
\end_layout
\begin_layout Description
-Indented for this the option
-\series bold
-fleqn
-\series default
- must be inserted in the menu
+Indented this can be set using the menu
\family sans
Document\SpecialChar menuseparator
Settings
\family default
under
\family sans
-Document
+Math
\begin_inset space ~
\end_inset
-Class
+Options.
\end_layout
\begin_layout Standard
\series bold
Indented
\series default
- is used, the indentation can be adjusted with the length
-\series bold
-
-\backslash
-mathindent
-\series default
-
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! M !
-\backslash
-mathindent
-\end_layout
-
-\end_inset
-
-.
- Should the distance be 15
-\begin_inset space \thinspace{}
-\end_inset
-
-mm, the following command line is inserted in the \SpecialChar LaTeX
--preamble
-\end_layout
-
-\begin_layout Standard
-
-\series bold
-
-\backslash
-setlength{
-\backslash
-mathindent}{15mm}
-\end_layout
-
-\begin_layout Standard
-When no length is specified, the predefined value of 30
-\begin_inset space \thinspace{}
-\end_inset
-
-pt will be used.
+ is used, the indentation can be adjusted.
+ The default value depends on the used document class.
\end_layout
\end_deeper
\begin_layout Itemize
-And two different numbering styles:
-\begin_inset Separator parbreak
-\end_inset
-
-
-\end_layout
-
-\begin_deeper
-\begin_layout Description
-Right is the predefined standard
-\end_layout
-
-\begin_layout Description
-Left for this the option
-\series bold
-leqno
-\series default
- must be inserted in the menu
+And two different numbering styles that can be set in the menu
\family sans
Document\SpecialChar menuseparator
Settings
\family default
under
\family sans
-Document
+Math
\begin_inset space ~
\end_inset
-Class
+Options
+\family default
+:
\end_layout
-\end_deeper
-\begin_layout Standard
+\begin_deeper
+\begin_layout Description
+Right is in most cases the default.
+\end_layout
-\series bold
-fleqn
-\series default
- and
-\series bold
-leqno
-\series default
- can also be used together.
- In this case both options are inserted, separated by a comma.
+\begin_layout Description
+Left
\end_layout
+\end_deeper
\begin_layout Standard
The chosen styles are used for all displayed formulas of the document.
When both, centered and indented formulas should be created in a document,
\end_inset
inside a formula.
-
-\change_deleted 2047637253 1449850740
-This creates either an
-\series bold
-eqnarray environment
-\series default
- that is described in
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "subsec:Eqnarray-Environment"
-
-\end_inset
-
- or, when the option
-\family sans
-Use AMS math package
-\family default
- in the document settings is selected, an
-\series bold
-align environment
-\series default
- that is described in
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "subsec:Standard-align-Environment"
-
-\end_inset
-
-.
-
-\change_inserted 2047637253 1449851860
-This creates either an
+ This creates either an
\series bold
align environment
\series default
\end_inset
.
-
-\change_unchanged
-The align environment is recommended because it provides in any case a typograph
-ically correct output.
+ The align environment is recommended because it provides in any case a
+ typographically correct output.
\end_layout
\begin_layout Standard
To add or delete lines, the math toolbar buttons
\begin_inset Info
type "icon"
-arg "inset-modify tabular append-row"
+arg "tabular-feature append-row"
\end_inset
or
\begin_inset Info
type "icon"
-arg "inset-modify tabular delete-row"
+arg "tabular-feature delete-row"
\end_inset
, respectively, or the menu
\begin_inset CommandInset href
LatexCommand href
name "LyX-bug #1505"
-target "http://www.lyx.org/trac/ticket/1505"
+target "https://www.lyx.org/trac/ticket/1505"
+literal "false"
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
\end_layout
\begin_layout Subsubsection
\begin_inset CommandInset href
LatexCommand href
name "LyX-bug #1429"
-target "http://www.lyx.org/trac/ticket/1429"
+target "https://www.lyx.org/trac/ticket/1429"
+literal "false"
\end_inset
To add or delete columns, the math toolbar buttons
\begin_inset Info
type "icon"
-arg "inset-modify tabular append-column"
+arg "tabular-feature append-column"
\end_inset
or
\begin_inset Info
type "icon"
-arg "inset-modify tabular delete-column"
+arg "tabular-feature delete-column"
\end_inset
, respectively, or the menu
\end_layout
\begin_layout Standard
-With the help of the commands
-\series bold
-
-\backslash
-begin{subequations}
-\series default
- and
-\series bold
-
-\backslash
-end{subequations}
-\series default
- formulas can be subnumbered.
- Both commands are inserted in \SpecialChar TeX
- mode.
+Formulas can be numbered as subequations.
+ To activate this feature, add the module
+\family sans
+Subequations
+\family default
+ to the document in the menu
+\family sans
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
+Modules
+\family default
+.
+ To insert subequations use the menu
+\family sans
+Insert\SpecialChar menuseparator
+Custom Insets\SpecialChar menuseparator
+Subequations
+\family default
+.
\end_layout
\begin_layout Standard
-An example:
+The equations to be subnumbered are put into the
+\family sans
+Subequations
+\family default
+ inset.
+ An example:
\begin_inset Formula
\begin{equation}
-A=C-B\label{eq:a}
+A=C-B
\end{equation}
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-addtocounter{equation}{-1}
-\end_layout
-
+\begin_inset VSpace -5mm
\end_inset
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Subequations
+status open
\begin_layout Plain Layout
-
-
-\backslash
-begin{subequations}
-\end_layout
-
-\end_inset
-
-
-\begin_inset VSpace -5mm
-\end_inset
-
-
\begin_inset Formula
\begin{equation}
B=C-A\label{eq:b}
\end_layout
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-end{subequations}
-\end_layout
-
\end_inset
\end_layout
\begin_layout Standard
-To create the example, the following is done:
-\end_layout
-
-\begin_layout Enumerate
-first formula is inserted
-\end_layout
-
-\begin_layout Enumerate
-
-\series bold
-
-\backslash
-addtocounter{equation}{-1}
-\backslash
-begin{subequations}
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! A !
-\backslash
-addtocounter
-\end_layout
-
-\end_inset
-
-
-\begin_inset Newline newline
-\end_inset
-
-
-\series default
-is inserted after the first formula
-\end_layout
-
-\begin_layout Enumerate
-second formula is inserted
-\end_layout
-
-\begin_layout Enumerate
-third formula is inserted
-\end_layout
-
-\begin_layout Enumerate
-
-\series bold
-
-\backslash
-end{subequations}
-\series default
- is inserted after the third formula
+Every formula in the
+\family sans
+Subequations
+\family default
+ inset will be subnumbered with a, b, c, \SpecialChar ldots
+ in the output.
+ For multiline formulas every line will be subnumbered.
\end_layout
\begin_layout Standard
-Every formula between the commands
-\series bold
-
-\backslash
-begin
-\series default
- and
-\series bold
-
-\backslash
-end
-\series default
- is subnumbered as a, b,
-\begin_inset Newline linebreak
-\end_inset
-
-c, \SpecialChar ldots
- For multiline formulas every line will be subnumbered.
- All subnumbered formulas are treated as
-\emph on
-one
-\emph default
- numbered formula.
- But as every numbered formula increases the counter
-\series bold
-equation
-\series default
- by one, the command
-\series bold
-
-\backslash
-addtocounter
-\series default
- is needed to decrease it.
- Otherwise the formulas
-\begin_inset CommandInset ref
-LatexCommand eqref
-reference "eq:a"
-
-\end_inset
-
-,
+Referencing subequations work like for normal equations:
\begin_inset CommandInset ref
LatexCommand eqref
reference "eq:b"
\end_inset
- would be numbered as
-\begin_inset CommandInset ref
-LatexCommand eqref
-reference "eq:a"
-
-\end_inset
-
-,
-\begin_inset CommandInset ref
-LatexCommand eqref
-reference "eq:d"
-
-\end_inset
-
-,
+.
+ If you want to reference the subequations collectively, insert a label
+ as first thing in the
+\family sans
+Subequations
+\family default
+ inset.
+ Formula
\begin_inset CommandInset ref
LatexCommand eqref
-reference "eq:f"
+reference "eq:Here-is-an"
+plural "false"
+caps "false"
+noprefix "false"
\end_inset
-.
+ is an example.
\end_layout
\begin_layout Standard
-By inserting the commands in \SpecialChar TeX
- mode, a space is created between the first
- two formulas.
- To revert this -5
+By inserting subequations vertical space is added before it.
+ To remove this, insert -5
\begin_inset space \thinspace{}
\end_inset
-mm vertical space is inserted after the command
-\series bold
-
-\backslash
-begin{subequations}
-\series default
-.
- When the formula style
+mm vertical space right before the
+\family sans
+Subequations
+\family default
+ inset.
+ If the formula style
\series bold
Indented
\begin_inset Foot
\series default
- is used, -7
+ is used, insert -7
\begin_inset space \thinspace{}
\end_inset
-mm space is inserted instead.
+mm space instead.
\end_layout
\begin_layout Standard
-Here is an example for a multiline formula where the numbering was turned
- off for the second line:
-\begin_inset ERT
-status collapsed
+To get another subnumber instead of small Latin letters, insert this command
+ as \SpecialChar TeX
+ code before the equations in the
+\family sans
+Subequations
+\family default
+ inset:
+\end_layout
-\begin_layout Plain Layout
+\begin_layout Standard
+\series bold
\backslash
-begin{subequations}
+renewcommand{
+\backslash
+theequation}{
+\backslash
+theparentequation -
+\backslash
+roman{equation}}
\end_layout
+\begin_layout Standard
+
+\series bold
+
+\backslash
+theparentequation
+\series default
+ creates hereby the parent number and
+\series bold
+
+\backslash
+roman{equation}
+\series default
+ adds a small Roman number as subnumber.
+ For more information about the customization of the numbering, see
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:Numbering-with-Roman"
+
\end_inset
+.
+\end_layout
-\begin_inset Formula
-\begin{eqnarray}
-A & = & (B-Z)^{2}=(B-Z)(B-Z)\label{eq:d}\\
- & = & B^{2}-ZB-BZ+Z^{2}\nonumber \\
- & = & B^{2}-2BZ+Z^{2}\label{eq:f}
-\end{eqnarray}
+\begin_layout Standard
+Here is an example for a multiline formula where the numbering is customized
+ and turned off for the second line:
+\begin_inset Flex Subequations
+status open
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "eq:Here-is-an"
\end_inset
\begin_inset ERT
-status collapsed
+status open
\begin_layout Plain Layout
\backslash
-end{subequations}
+renewcommand{
+\backslash
+theequation}{
+\backslash
+theparentequation -
+\backslash
+roman{equation}}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Formula
+\begin{eqnarray}
+A & = & (B-Z)^{2}=(B-Z)(B-Z)\\
+ & = & B^{2}-ZB-BZ+Z^{2}\nonumber \\
+ & = & B^{2}-2BZ+Z^{2}
+\end{eqnarray}
+
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Subsection
-User-defined Numbering
+Numbering with Roman Numbers and Letters
\begin_inset CommandInset label
LatexCommand label
-name "subsec:User-defined-Numbering"
+name "subsec:Numbering-with-Roman"
\end_inset
status collapsed
\begin_layout Plain Layout
-Formula numbering ! user-defined
+Formula numbering ! with letters
\end_layout
\end_inset
-\end_layout
-
-\begin_layout Standard
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Formula numbering ! self-defined delimiters
+Formula numbering ! with Roman numbers
\end_layout
\end_inset
-With the standard numbering parentheses are set around the formula number.
- To replace the parentheses for example by vertical bars, the following
- line is added to the \SpecialChar LaTeX
--preamble:
+
+\end_layout
+
+\begin_layout Standard
+Formulas can also be numbered with Roman numbers and Latin letters.
+ To number for example with small Roman numbers, the command
\end_layout
\begin_layout Standard
\series bold
\backslash
-def
+renewcommand{
\backslash
-tagform@#1{
+theequation}{
\backslash
-maketag@@@{|#1|}}
+roman{equation}}
+\end_layout
+
+\begin_layout Standard
+is inserted before the formula in \SpecialChar TeX
+ mode.
+
+\series bold
+
+\backslash
+renewcommand
\series default
-\begin_inset Note Note
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-This macro is already declared in the \SpecialChar LaTeX
--preamble for testing.
- To activate it, remove the percent sign at the beginning.
+Commands ! R !
+\backslash
+renewcommand
\end_layout
\end_inset
+ redefines the predefined command
+\series bold
-\end_layout
+\backslash
+theequation
+\series default
+ to the command
+\series bold
-\begin_layout Standard
-To use other characters, the vertical bars besides the
+\backslash
+roman{equation}
+\series default
+.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+The command
\series bold
-#1
+
+\backslash
+renewcommand
\series default
- are replaced by one ore more characters.
- To get only the formula number the vertical bars are omitted.
+ has the same scheme like the command
+\series bold
+
+\backslash
+newcommand
+\series default
+ that is described in
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "subsec:The-Command-newcommand"
+
+\end_inset
+
+.
\end_layout
-\begin_layout Standard
-\begin_inset VSpace bigskip
\end_inset
-When there should be an expression of your choice instead of the consecutive
- formula number in parentheses behind the formula, the command
+
+\series bold
+equation
+\series default
+ is the formula counter.
+ When the command
\series bold
\backslash
-tag
+the
\series default
+ is used as prefix for a counter, the value of the counter is output as
+ Arabic number.
+ When a formula is numbered, \SpecialChar LaTeX
+ sets internally the command
+\series bold
+\backslash
+theequation
+\series default
+ behind the formula.
+
+\series bold
+
+\backslash
+roman{equation}
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Commands ! T !
+Commands ! R !
\backslash
-tag
+roman
\end_layout
\end_inset
- is used:
-\begin_inset Formula
-\begin{equation}
-A+B=C\tag{something}\label{eq:tag}
-\end{equation}
-\end_inset
+\series default
+ outputs the counter as small Roman number.
+\end_layout
-In this example the command
+\begin_layout Standard
+All formulas behind the command
\series bold
\backslash
-tag
-\begin_inset space \textvisiblespace{}
-\end_inset
-
-something
+renew
\series default
- was inserted in the formula.
-\end_layout
+c
+\series bold
+ommand
+\series default
+ are now numbered Roman.
+ To switch to numbering with big Roman numbers, the command is inserted
+ again, but
+\series bold
-\begin_layout Standard
-When the command
+\backslash
+roman
+\series default
+ is replaced by
\series bold
\backslash
-tag*
-\begin_inset space \textvisiblespace{}
+Roman
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Commands ! R !
+\backslash
+roman@
+\backslash
+Roman
+\end_layout
+
\end_inset
-something
-\series default
- is inserted instead, the star prevents the parentheses around the expression:
-\begin_inset Formula
-\[
-A+B=C\tag*{something}
-\]
+.
+ To
+\begin_inset Quotes eld
+\end_inset
+number
+\begin_inset Quotes erd
\end_inset
+ with small Latin letters there is the command
+\series bold
-\end_layout
+\backslash
+alph
+\series default
-\begin_layout Standard
-\begin_inset VSpace bigskip
-\end_inset
+\begin_inset Index idx
+status collapsed
-To restart the formula numbering with new document parts or sections, the
- following command is used:
+\begin_layout Plain Layout
+Commands ! A !
+\backslash
+alph
\end_layout
-\begin_layout Standard
+\end_inset
+, for big ones there is the command
\series bold
\backslash
-@addtoreset{equation}{part}
+Alph
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Commands !
-\begin_inset ERT
-status collapsed
+Commands ! A !
+\backslash
+alph@
+\backslash
+Alph
+\end_layout
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
\begin_layout Plain Layout
-"
+\series bold
+Note:
+\series default
+ Only maximal 26
+\begin_inset space ~
+\end_inset
+
+formulas can be numbered with Latin letters in one document.
\end_layout
\end_inset
-@
+
+\end_layout
+
+\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-"
+
+\backslash
+renewcommand{
+\backslash
+theequation}{
+\backslash
+roman{equation}}
\end_layout
\end_inset
- !
-\backslash
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset Formula
+\begin{equation}
+A=\textrm{small roman}
+\end{equation}
+
+\end_inset
+
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-"
+
+\backslash
+renewcommand{
+\backslash
+theequation}{
+\backslash
+Roman{equation}}
\end_layout
\end_inset
-@
+
+\begin_inset Formula
+\begin{equation}
+B=\textrm{big Roman}\label{eq:Rom}
+\end{equation}
+
+\end_inset
+
+
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-"
-\end_layout
-\end_inset
-
-addtoreset
+\backslash
+renewcommand{
+\backslash
+theequation}{
+\backslash
+alph{equation}}
\end_layout
\end_inset
-\begin_inset Newline newline
-\end_inset
+\begin_inset Formula
+\begin{equation}
+C=\textrm{small Latin}
+\end{equation}
-resp.
-\begin_inset Newline newline
\end_inset
-\series bold
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
\backslash
-@addtoreset{equation}{section}
+renewcommand{
+\backslash
+theequation}{
+\backslash
+Alph{equation}}
\end_layout
-\begin_layout Standard
-To be able to use these commands in \SpecialChar TeX
- mode, the
-\begin_inset Quotes eld
\end_inset
-@
-\begin_inset Quotes erd
-\end_inset
- character has to be made
-\begin_inset Quotes eld
-\end_inset
+\begin_inset Formula
+\begin{equation}
+D=\textrm{big Latin}\label{eq:Lat}
+\end{equation}
-active
-\begin_inset Quotes erd
\end_inset
- for \SpecialChar LaTeX
- using the command
-\series bold
-
-\backslash
-makeatletter.
-\series default
- The command
-\series bold
+\end_layout
-\backslash
-makeatother
-\series default
- reverts this.
- So the command sequence in \SpecialChar TeX
- mode is:
+\begin_layout Standard
+To switch back to the default numbering, insert the command:
\end_layout
\begin_layout Standard
\series bold
\backslash
-makeatletter
-\begin_inset Newline newline
-\end_inset
-
+renewcommand{
+\backslash
+theequation}{
+\backslash
+arabic{equation}}
+\begin_inset Index idx
+status collapsed
+\begin_layout Plain Layout
+Commands ! A !
\backslash
-@addtoreset{equation}{section}
-\begin_inset Newline newline
+arabic
+\end_layout
+
\end_inset
-\backslash
-makeatother
\end_layout
\begin_layout Standard
-In the \SpecialChar LaTeX
--preamble
-\series bold
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
-\backslash
-makeatletter
-\series default
- and
-\series bold
\backslash
-makeatother
-\series default
- can be omitted as they are automatically internally inserted by \SpecialChar LyX
-.
+renewcommand{
+\backslash
+theequation}{
+\backslash
+arabic{equation}}
\end_layout
-\begin_layout Standard
-To revert
-\series bold
-
-\backslash
-@addtoreset
-\series default
-, the file
-\series bold
-remreset.sty
-\series default
+\end_inset
-\begin_inset Foot
-status collapsed
-\begin_layout Plain Layout
+\begin_inset Formula
+\begin{equation}
+E=\textrm{Arabic}
+\end{equation}
-\series bold
-remreset
-\series default
- is part of the \SpecialChar LaTeX
--package
-\series bold
-carlisle
-\series default
+\end_inset
-\begin_inset Index idx
-status collapsed
-\begin_layout Plain Layout
-Packages ! carlisle
\end_layout
+\begin_layout Standard
+\begin_inset VSpace medskip
\end_inset
- that is part of every \SpecialChar LaTeX
- standard installation.
+As you see, formulas are numbered serially independent from the numbering
+ style.
+ When then numbering should start with
+\begin_inset Quotes eld
+\end_inset
+
+1
+\begin_inset Quotes erd
+\end_inset
+
+ when the style is changed, new equation counters have to be defined.
+ A description about this can be found in the file
+\begin_inset CommandInset href
+LatexCommand href
+name "Formula-numbering.lyx"
+target "run:Formula-numbering.lyx"
+literal "false"
+
+\end_inset
+
+.
\end_layout
+\begin_layout Subsection
+User-defined Numbering
+\begin_inset CommandInset label
+LatexCommand label
+name "subsec:User-defined-Numbering"
+
\end_inset
status collapsed
\begin_layout Plain Layout
-Packages ! remreset
+Formula numbering ! user-defined
\end_layout
\end_inset
- has to be loaded in the \SpecialChar LaTeX
--preamble with the line
+
\end_layout
\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
\series bold
+Note:
+\series default
+ If the document language is a right-to-left language such as Arabic, you
+ must add this to the to the \SpecialChar LaTeX
+-preamble to be able to use the commands described
+ in this section:
+\begin_inset Newline newline
+\end_inset
-\backslash
-usepackage{remreset}
-\end_layout
-\begin_layout Standard
-Then the command
\series bold
\backslash
-@removefromreset
-\series default
+AtBeginDocument{
+\begin_inset Newline newline
+\end_inset
-\begin_inset Index idx
-status collapsed
-\begin_layout Plain Layout
-Commands !
-\begin_inset ERT
-status collapsed
+\begin_inset Phantom HPhantom
+status open
\begin_layout Plain Layout
-"
-\end_layout
-
+\series bold
+\begin_inset space ~
\end_inset
-@
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-"
\end_layout
\end_inset
- !
+
+\backslash
+def
+\backslash
+tagform@#1{
+\backslash
+maketag@@@{(
\backslash
+ignorespaces#1
+\backslash
+unskip)}} }
+\end_layout
-\begin_inset ERT
-status collapsed
+\end_inset
-\begin_layout Plain Layout
-"
\end_layout
-\end_inset
-
-@
-\begin_inset ERT
+\begin_layout Standard
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-
-"
+Formula numbering ! self-defined delimiters
\end_layout
\end_inset
-removefromreset
+With the standard numbering parentheses are set around the formula number.
+ To replace the parentheses for example by vertical bars, the following
+ line is added to the \SpecialChar LaTeX
+-preamble:
\end_layout
-\end_inset
+\begin_layout Standard
- can be used with the same scheme as
\series bold
\backslash
-@addtoreset
-\series default
-.
-\end_layout
-
-\begin_layout Standard
-\begin_inset VSpace bigskip
+AtBeginDocument{
+\begin_inset Newline newline
\end_inset
-Sometimes formulas should be numbered in the following form:
-\end_layout
-\begin_layout Standard
+\begin_inset Phantom HPhantom
+status open
-\family typewriter
-(section number.formula number)
-\end_layout
+\begin_layout Plain Layout
-\begin_layout Standard
-The formula number should start with every section with
-\begin_inset Quotes eld
+\series bold
+\begin_inset space ~
\end_inset
-1
-\begin_inset Quotes erd
-\end_inset
-.
\end_layout
-\begin_layout Standard
-For this case there is the command
-\series bold
+\end_inset
+
\backslash
-numberwithin
+def
+\backslash
+tagform@#1{
+\backslash
+maketag@@@{|#1|}} }
\series default
-\begin_inset Index idx
+\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
-Commands ! N !
-\backslash
-numberwithin
+This macro is already declared in the \SpecialChar LaTeX
+-preamble for testing.
+ To activate it, remove the percent signs at the beginning.
\end_layout
\end_inset
-, which is used with the following scheme:
-\end_layout
-\begin_layout Standard
-
-\series bold
-
-\backslash
-numberwithin{counter}{sectioning}
\end_layout
\begin_layout Standard
-Counter denotes what kind of numbering is affected, sectioning denotes what
- number is before the dot.
-\end_layout
-
-\begin_layout Standard
-Thus in our case the following \SpecialChar LaTeX
- preamble or \SpecialChar TeX
- code line is used:
+To use other characters, the vertical bars besides the
+\series bold
+#1
+\series default
+ are replaced by one ore more characters.
+ To get only the formula number the vertical bars are omitted.
\end_layout
\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+When there should be an expression of your choice instead of the consecutive
+ formula number in parentheses behind the formula, the command
\series bold
\backslash
-numberwithin{equation}{section}
-\end_layout
+tag
+\series default
-\begin_layout Standard
-This is the result:
-\begin_inset ERT
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-
-
+Commands ! T !
\backslash
-numberwithin{equation}{section}
+tag
\end_layout
\end_inset
-
+ is used:
\begin_inset Formula
\begin{equation}
-A+B=C
+A+B=C\tag{something}\label{eq:tag}
\end{equation}
\end_inset
+In this example the command
+\series bold
+\backslash
+tag
+\begin_inset space \textvisiblespace{}
+\end_inset
+
+something
+\series default
+ was inserted in the formula.
\end_layout
\begin_layout Standard
-To number e.
-\begin_inset space \thinspace{}
-\end_inset
+When the command
+\series bold
-g.
-\begin_inset space \space{}
+\backslash
+tag*
+\begin_inset space \textvisiblespace{}
\end_inset
-tables so that the number of the part is the sectioning,
-\begin_inset Newline newline
-\end_inset
+something
+\series default
+ is inserted instead, the star prevents the parentheses around the expression:
+\begin_inset Formula
+\[
+A+B=C\tag*{something}
+\]
+\end_inset
-\series bold
-\backslash
-numberwithin{table}{part}
-\series default
- is used.
\end_layout
\begin_layout Standard
-To go back to the standard numbering or to prevent this kind of numbering
- when it is defined by the document class, the following command is inserted
- as \SpecialChar TeX
- code or to the \SpecialChar LaTeX
- preamble:
+\begin_inset VSpace bigskip
+\end_inset
+
+To restart the formula numbering with new document parts or sections, the
+ following command is used:
\end_layout
\begin_layout Standard
\series bold
\backslash
-renewcommand{
-\backslash
-theequation}{
-\backslash
-arabic{equation}}
+@addtoreset{equation}{part}
+\series default
+
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Commands ! A !
-\backslash
-arabic
-\end_layout
-
-\end_inset
-
-
-\series default
-
+Commands !
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-
-\backslash
-renewcommand{
-\backslash
-theequation}{
-\backslash
-arabic{equation}}
+"
\end_layout
\end_inset
+@
+\begin_inset ERT
+status collapsed
-\series bold
-
-\begin_inset Newline newline
-\end_inset
-
+\begin_layout Plain Layout
-\series default
-or
-\series bold
+"
+\end_layout
-\begin_inset Newline newline
\end_inset
-
-\backslash
-renewcommand{
-\backslash
-thetable}{
+ !
\backslash
-arabic{table}}
-\end_layout
-\begin_layout Standard
+\begin_inset ERT
+status collapsed
-\series bold
+\begin_layout Plain Layout
-\backslash
-numberwithin
-\series default
- uses internally the command
-\series bold
+"
+\end_layout
-\backslash
-@addtoreset
-\series default
-, described above, that also needs to be reverted.
+\end_inset
+
+@
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-
-\backslash
-makeatletter
+"
\end_layout
-\begin_layout Plain Layout
-
+\end_inset
-\backslash
-@removefromreset{equation}{section}
+addtoreset
\end_layout
-\begin_layout Plain Layout
+\end_inset
-\backslash
-makeatother
-\end_layout
-
+\begin_inset Newline newline
\end_inset
+resp.
+\begin_inset Newline newline
+\end_inset
-\end_layout
-\begin_layout Subsection
-Numbering with Roman Numbers and Letters
-\begin_inset Index idx
-status collapsed
+\series bold
-\begin_layout Plain Layout
-Formula numbering ! with letters
+\backslash
+@addtoreset{equation}{section}
\end_layout
+\begin_layout Standard
+To be able to use these commands in \SpecialChar TeX
+ mode, the
+\begin_inset Quotes eld
\end_inset
+@
+\begin_inset Quotes erd
+\end_inset
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Formula numbering ! with Roman numbers
-\end_layout
+ character has to be made
+\begin_inset Quotes eld
+\end_inset
+active
+\begin_inset Quotes erd
\end_inset
+ for \SpecialChar LaTeX
+ using the command
+\series bold
-\end_layout
+\backslash
+makeatletter.
-\begin_layout Standard
-Formulas can also be numbered with Roman numbers and Latin letters.
- To number for example with small Roman numbers, the command
+\series default
+ The command
+\series bold
+
+\backslash
+makeatother
+\series default
+ reverts this.
+ So the command sequence in \SpecialChar TeX
+ mode is:
\end_layout
\begin_layout Standard
\series bold
\backslash
-renewcommand{
+makeatletter
+\begin_inset Newline newline
+\end_inset
+
+
\backslash
-theequation}{
+@addtoreset{equation}{section}
+\begin_inset Newline newline
+\end_inset
+
+
\backslash
-roman{equation}}
+makeatother
\end_layout
\begin_layout Standard
-is inserted before the formula in \SpecialChar TeX
- mode.
-
+In the \SpecialChar LaTeX
+-preamble
\series bold
\backslash
-renewcommand
+makeatletter
\series default
+ and
+\series bold
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Commands ! R !
\backslash
-renewcommand
+makeatother
+\series default
+ can be omitted as they are automatically internally inserted by \SpecialChar LyX
+.
\end_layout
-\end_inset
-
- redefines the predefined command
+\begin_layout Standard
+To revert
\series bold
\backslash
-theequation
+@addtoreset
\series default
- to the command
+, the file
\series bold
-
-\backslash
-roman{equation}
+remreset.sty
\series default
-.
+
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
-The command
-\series bold
-\backslash
-renewcommand
+\series bold
+remreset
\series default
- has the same scheme like the command
+ is part of the \SpecialChar LaTeX
+-package
\series bold
-
-\backslash
-newcommand
+carlisle
\series default
- that is described in
-\begin_inset CommandInset ref
-LatexCommand ref
-reference "subsec:The-Command-newcommand"
-\end_inset
+\begin_inset Index idx
+status collapsed
-.
+\begin_layout Plain Layout
+Packages ! carlisle
\end_layout
\end_inset
-
-\series bold
-equation
-\series default
- is the formula counter.
- When the command
-\series bold
+ that is part of every \SpecialChar LaTeX
+ standard installation.
+\end_layout
-\backslash
-the
-\series default
- is used as prefix for a counter, the value of the counter is output as
- Arabic number.
- When a formula is numbered, \SpecialChar LaTeX
- sets internally the command
-\series bold
+\end_inset
-\backslash
-theequation
-\series default
- behind the formula.
-
-\series bold
-\backslash
-roman{equation}
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Commands ! R !
-\backslash
-roman
+Packages ! remreset
\end_layout
\end_inset
-
-\series default
- outputs the counter as small Roman number.
+ has to be loaded in the \SpecialChar LaTeX
+-preamble with the line
\end_layout
\begin_layout Standard
-All formulas behind the command
-\series bold
-\backslash
-renew
-\series default
-c
-\series bold
-ommand
-\series default
- are now numbered Roman.
- To switch to numbering with big Roman numbers, the command is inserted
- again, but
\series bold
\backslash
-roman
-\series default
- is replaced by
+usepackage{remreset}
+\end_layout
+
+\begin_layout Standard
+Then the command
\series bold
\backslash
-Roman
+@removefromreset
\series default
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
-Commands ! R !
-\backslash
-roman@
-\backslash
-Roman
-\end_layout
+Commands !
+\begin_inset ERT
+status collapsed
-\end_inset
+\begin_layout Plain Layout
-.
- To
-\begin_inset Quotes eld
-\end_inset
+"
+\end_layout
-number
-\begin_inset Quotes erd
\end_inset
- with small Latin letters there is the command
-\series bold
-
-\backslash
-alph
-\series default
-
-\begin_inset Index idx
+@
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-Commands ! A !
-\backslash
-alph
+
+"
\end_layout
\end_inset
-, for big ones there is the command
-\series bold
-
+ !
\backslash
-Alph
-\series default
-\begin_inset Index idx
+\begin_inset ERT
status collapsed
\begin_layout Plain Layout
-Commands ! A !
-\backslash
-alph@
-\backslash
-Alph
+
+"
\end_layout
\end_inset
-.
-\end_layout
-
-\begin_layout Standard
-\begin_inset Note Greyedout
-status open
+@
+\begin_inset ERT
+status collapsed
\begin_layout Plain Layout
-\series bold
-\color none
-Note:
-\series default
- Only maximal 26
-\begin_inset space ~
+"
+\end_layout
+
\end_inset
-formulas can be numbered with Latin letters in one document.
+removefromreset
\end_layout
\end_inset
+ can be used with the same scheme as
+\series bold
+\backslash
+@addtoreset
+\series default
+.
\end_layout
\begin_layout Standard
-\begin_inset ERT
-status collapsed
+\begin_inset VSpace bigskip
+\end_inset
-\begin_layout Plain Layout
+Sometimes formulas should be numbered in the following form:
+\end_layout
+\begin_layout Standard
-\backslash
-renewcommand{
-\backslash
-theequation}{
-\backslash
-roman{equation}}
+\family typewriter
+(section number.formula number)
\end_layout
+\begin_layout Standard
+The formula number should start with every section with
+\begin_inset Quotes eld
\end_inset
+1
+\begin_inset Quotes erd
+\end_inset
+.
\end_layout
\begin_layout Standard
-\begin_inset Formula
-\begin{equation}
-A=\textrm{small roman}
-\end{equation}
-
-\end_inset
+For this case there is the command
+\series bold
+\backslash
+numberwithin
+\series default
-\begin_inset ERT
+\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
+Commands ! N !
+\backslash
+numberwithin
+\end_layout
+\end_inset
+
+, which is used with the following scheme:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
\backslash
-renewcommand{
-\backslash
-theequation}{
-\backslash
-Roman{equation}}
+numberwithin{counter}{sectioning}
\end_layout
-\end_inset
+\begin_layout Standard
+Counter denotes what kind of numbering is affected, sectioning denotes what
+ number is before the dot.
+\end_layout
+\begin_layout Standard
+Thus in our case the following \SpecialChar LaTeX
+ preamble or \SpecialChar TeX
+ code line is used:
+\end_layout
-\begin_inset Formula
-\begin{equation}
-B=\textrm{big Roman}\label{eq:Rom}
-\end{equation}
+\begin_layout Standard
-\end_inset
+\series bold
+\backslash
+numberwithin{equation}{section}
+\end_layout
+\begin_layout Standard
+This is the result:
\begin_inset ERT
status collapsed
\backslash
-renewcommand{
-\backslash
-theequation}{
-\backslash
-alph{equation}}
+numberwithin{equation}{section}
\end_layout
\end_inset
\begin_inset Formula
\begin{equation}
-C=\textrm{small Latin}
+A+B=C
\end{equation}
\end_inset
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-
-\backslash
-renewcommand{
-\backslash
-theequation}{
-\backslash
-Alph{equation}}
\end_layout
+\begin_layout Standard
+To number e.
+\begin_inset space \thinspace{}
\end_inset
+g.
+\begin_inset space \space{}
+\end_inset
-\begin_inset Formula
-\begin{equation}
-D=\textrm{big Latin}\label{eq:Lat}
-\end{equation}
-
+tables so that the number of the part is the sectioning,
+\begin_inset Newline newline
\end_inset
+\series bold
+
+\backslash
+numberwithin{table}{part}
+\series default
+ is used.
\end_layout
\begin_layout Standard
-To switch back to the default numbering, insert the command:
+To go back to the standard numbering or to prevent this kind of numbering
+ when it is defined by the document class, the following command is inserted
+ as \SpecialChar TeX
+ code or to the \SpecialChar LaTeX
+ preamble:
\end_layout
\begin_layout Standard
\end_inset
-\end_layout
+\series default
-\begin_layout Standard
\begin_inset ERT
status collapsed
\end_inset
-\begin_inset Formula
-\begin{equation}
-E=\textrm{Arabic}
-\end{equation}
+\series bold
+
+\begin_inset Newline newline
+\end_inset
+
+
+\series default
+or
+\series bold
+\begin_inset Newline newline
\end_inset
+\backslash
+renewcommand{
+\backslash
+thetable}{
+\backslash
+arabic{table}}
\end_layout
\begin_layout Standard
-\begin_inset VSpace medskip
-\end_inset
-As you see, formulas are numbered serially independent from the numbering
- style.
- When then numbering should start with
-\begin_inset Quotes eld
-\end_inset
+\series bold
-1
-\begin_inset Quotes erd
-\end_inset
+\backslash
+numberwithin
+\series default
+ uses internally the command
+\series bold
- when the style is changed, new equation counters have to be defined.
- A description about this can be found in the file
-\begin_inset CommandInset href
-LatexCommand href
-name "Formula-numbering.lyx"
-target "run:Formula-numbering.lyx"
+\backslash
+@addtoreset
+\series default
+, described above, that also needs to be reverted.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+makeatletter
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+@removefromreset{equation}{section}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+makeatother
+\end_layout
\end_inset
-.
+
\end_layout
\begin_layout Section
\series default
to a formula a new blue box appears where chemical formulas can be inserted
in an intuitive way.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Plain Layout
\series bold
-\color none
Note:
\series default
It is not possible in \SpecialChar LyX
\begin_inset CommandInset citation
LatexCommand cite
key "mhchem"
+literal "true"
\end_inset
.
\end_layout
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
\begin_layout Section
User-defined Commands
\begin_inset Index idx
\begin_layout Standard
A test of the new defined commands:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset Graphics
filename clipart/macrobox.png
- scale 75
+ scale 95
\end_inset
\begin_inset Graphics
filename clipart/macrouse.png
- scale 75
+ scale 95
\end_inset
\end_inset
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Formula $\int\left(\frac{1}{1+x^{3}}\right)dx=-\frac{\log\left(x^{2}-x+1\right)}{6}+\frac{\arctan\left(\frac{2\,x-1}{\sqrt{3}}\right)}{\sqrt{3}}+\frac{\log\left(x+1\right)}{3}$
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ One needs to use proper delimiter insets
+\begin_inset Formula $\left(\right)$
+\end_inset
+
+ instead of simple '(' ')' characters.
+\end_layout
+
+\end_inset
+
+
\end_layout
\begin_layout Itemize
\end_inset
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Formula $powerseries\left(-\log\left(5-x\right),x,1\right)=\sum_{{\mathit{i}_{2}}=0}^{\infty}{\frac{4^{-{\mathit{i}_{2}}-1}\,\left(x-1\right)^{{\mathit{i}_{2}}+1}}{{\mathit{i}_{2}}+1}}-\log4$
+\end_inset
+
+
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Formula $solve\left(x_{1}+y_{1}^{3}=y_{1}+x_{1}^{2},x_{1}\right)=\left[x_{1}=-\frac{\sqrt{4\,y_{1}^{3}-4\,y_{1}+1}-1}{2},x_{1}=\frac{\sqrt{4\,y_{1}^{3}-4\,y_{1}+1}+1}{2}\right]$
+\end_inset
+
+
\end_layout
\begin_layout Subsection
\begin_layout Standard
An example to visualize the problem:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_layout Standard
The following commands are defined:
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
3.
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\end_inset
-\begin_inset Separator parbreak
-\end_inset
-
-
\end_layout
\begin_layout Standard
\begin_inset CommandInset citation
LatexCommand cite
key "cancel"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "LyX-bug #9002"
-target "http://www.lyx.org/trac/ticket/9002"
+target "https://www.lyx.org/trac/ticket/9002"
+literal "false"
\end_inset
\begin_inset CommandInset citation
LatexCommand cite
key "Duden"
+literal "true"
\end_inset
\begin_inset CommandInset citation
LatexCommand cite
key "Checklist"
+literal "true"
\end_inset
\end_inset
+\begin_inset CommandInset href
+LatexCommand href
+name "List"
+target "https://ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf"
+literal "false"
+
+\end_inset
+
+
\end_layout
\begin_layout Standard
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "TLC2"
+literal "true"
\end_inset
\shape smallcaps
-Mittelbach, F.
- ; Goossens, M.
+F.
+ Mittelbach; M.
+ Goossens
\shape default
:
\shape italic
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "Mathmode"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Description"
-target "ftp://ftp.dante.de/tex-archive/info/math/voss/mathmode/Mathmode.pdf"
+target "https://www.tug.org/~hvoss/PDF/mathmode.pdf"
+literal "false"
\end_inset
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "AMS"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Description"
-target "http://mirrors.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf"
+target "https://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/amsldoc.pdf"
+literal "false"
\end_inset
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "Symbols"
+literal "true"
\end_inset
LatexCommand href
name "List"
target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf"
+literal "false"
\end_inset
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "cancel"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentation"
-target "http://mirrors.ctan.org/macros/latex/contrib/cancel/cancel.pdf"
+target "https://www.ctan.org/tex-archive/macros/latex/contrib/cancel/cancel.pdf"
+literal "false"
\end_inset
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "hyperref"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentation"
-target "http://www.tug.org/applications/hyperref/ftp/doc/manual.pdf"
+target "https://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf"
+literal "false"
\end_inset
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "mhchem"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentation"
-target "http://www.ctan.org/tex-archive/macros/latex/contrib/mhchem/mhchem.pdf"
+target "https://www.ctan.org/tex-archive/macros/latex/contrib/mhchem/mhchem.pdf"
+literal "false"
\end_inset
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "Duden"
+literal "true"
\end_inset
\emph on
-Duden Band 1
+Duden Band
+\begin_inset space ~
+\end_inset
+
+1
\emph default
.
22.
- Auflage, Duden 2001
+\begin_inset space ~
+\end_inset
+
+Auflage, Dudenverlag, 2000
\end_layout
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "Checklist"
+literal "true"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Check list"
-target "http://physics.nist.gov/Document/checklist.pdf"
+target "https://www.nist.gov/physical-measurement-laboratory/special-publication-811"
+literal "false"
\end_inset
\begin_inset CommandInset index_print
LatexCommand printindex
type "idx"
+name "Index"
+literal "false"
\end_inset