]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / lib / doc / Math.lyx
index bdde4b3b2cbaa57798cd852576046dad52d6dd6e..0a01a292b775ef7b791ac82cf05afa3f45086acc 100644 (file)
@@ -14546,26 +14546,6 @@ linewidth
 
 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
@@ -30070,27 +30050,14 @@ end{subequations}
 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
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
+status open
 
 \begin_layout Plain Layout
 
@@ -30126,7 +30093,7 @@ C=A+B\label{eq:c}
 
 \begin_layout Standard
 \begin_inset ERT
-status collapsed
+status open
 
 \begin_layout Plain Layout
 
@@ -30152,22 +30119,8 @@ first formula is inserted
 
 \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
 
@@ -30207,36 +30160,13 @@ begin
 \backslash
 end
 \series default
- is subnumbered as a, b, 
-\begin_inset Newline linebreak
-\end_inset
-
-c, \SpecialChar ldots
+ will be subnumbered with a, b, c, \SpecialChar ldots
+ in the output.
  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
+\end_layout
 
-, 
+\begin_layout Standard
+Referencing subequations work like for normal equations: 
 \begin_inset CommandInset ref
 LatexCommand eqref
 reference "eq:b"
@@ -30250,34 +30180,29 @@ reference "eq:c"
 
 \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
+ directly after
+\series bold
+\backslash
+begin{subequations}
+\series default
+ and reference it.
+ Formula 
 \begin_inset CommandInset ref
 LatexCommand eqref
-reference "eq:f"
+reference "eq:Here-is-an"
 
 \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.
+By inserting commands in \SpecialChar TeX
+ mode, a space is created between the first two
+ formulas.
  To revert this -5
 \begin_inset space \thinspace{}
 \end_inset
@@ -30318,8 +30243,57 @@ mm space is inserted instead.
 \end_layout
 
 \begin_layout Standard
-Here is an example for a multiline formula where the numbering was turned
- off for the second line:
+To get another subnumber instead of small Latin letters, insert this command
+ as TeX code after 
+\series bold
+
+\backslash
+begin{subequations}
+\series default
+:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+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_layout Standard
+Here is an example for a multiline formula where the numbering is customized
+ and turned off for the second line:
 \begin_inset ERT
 status collapsed
 
@@ -30333,11 +30307,37 @@ begin{subequations}
 \end_inset
 
 
+\begin_inset CommandInset label
+LatexCommand label
+name "eq:Here-is-an"
+
+\end_inset
+
+
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+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)\label{eq:d}\\
+A & = & (B-Z)^{2}=(B-Z)(B-Z)\\
  & = & B^{2}-ZB-BZ+Z^{2}\nonumber \\
- & = & B^{2}-2BZ+Z^{2}\label{eq:f}
+ & = & B^{2}-2BZ+Z^{2}
 \end{eqnarray}
 
 \end_inset
@@ -31029,6 +31029,13 @@ makeatother
 
 \begin_layout Subsection
 Numbering with Roman Numbers and Letters
+\begin_inset CommandInset label
+LatexCommand label
+name "subsec:Numbering-with-Roman"
+
+\end_inset
+
+
 \begin_inset Index idx
 status collapsed
 
@@ -32533,13 +32540,6 @@ Manuals
 .
 \end_layout
 
-\begin_layout Standard
-\begin_inset Newpage newpage
-\end_inset
-
-
-\end_layout
-
 \begin_layout Section
 User-defined Commands
 \begin_inset Index idx