]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
Inherit "Provides color" in *-article.layout
[lyx.git] / lib / doc / Math.lyx
index 7da3d18f7c085c113d68b3515c751d310c7e71b0..0a01a292b775ef7b791ac82cf05afa3f45086acc 100644 (file)
@@ -1,8 +1,9 @@
 #LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 499
+\lyxformat 506
 \begin_document
 \begin_header
-\origin unavailable
+\save_transient_properties true
+\origin /systemlyxdir/doc/
 \textclass scrartcl
 \begin_preamble
 % DO NOT ALTER THIS PREAMBLE!!!
 % the documentation team
 % email: lyx-docs@lists.lyx.org
 
-% if pdflatex is used
-\usepackage{ifpdf}
-\ifpdf
-
-% set fonts for nicer pdf view
-\IfFileExists{lmodern.sty}
- {\usepackage{lmodern}}{}
-
-\fi % end if pdflatex is used
-
 % solves the following problem:
 % If the dection number consits of too many numerals the section heading
 % will be printed in the TOC without a space between it and the section number.
 \language_package default
 \inputencoding auto
 \fontencoding global
-\font_roman default
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "lmodern" "default"
+\font_sans "lmss" "default"
+\font_typewriter "lmtt" "default"
+\font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
 \font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
 \graphics default
-\default_output_format default
+\default_output_format pdf2
 \output_sync 0
 \bibtex_command default
 \index_command default
@@ -277,7 +268,7 @@ author: Uwe Stöhr
 
 
 \family sans
-Version 2.1.x
+Version 2.2.x
 \end_layout
 
 \begin_layout Standard
@@ -1182,7 +1173,7 @@ pt)
 \begin_inset Text
 
 \begin_layout Plain Layout
-böp
+bp
 \end_layout
 
 \end_inset
@@ -3015,7 +3006,7 @@ arg   "newline-insert newline"
  or the table toolbar button 
 \begin_inset Info
 type  "icon"
-arg   "inset-modify tabular append-row"
+arg   "tabular-feature append-row"
 \end_inset
 
 .
@@ -3408,10 +3399,9 @@ arg   "math-insert \\space"
 \end_inset
 
  
-\begin_inset Graphics
-       filename ../images/math/phantom.png
-       scale 85
-
+\begin_inset Info
+type  "icon"
+arg   "math/phantom"
 \end_inset
 
  that creates one or more phantom characters.
@@ -3610,14 +3600,9 @@ vphantom
 \end_inset
 
  (toolbar button 
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset Graphics
-       filename ../images/math/vphantom.png
-       scale 85
-
+\begin_inset Info
+type  "icon"
+arg   "math/vphantom"
 \end_inset
 
 ) and 
@@ -3639,14 +3624,9 @@ hphantom
 \end_inset
 
  (toolbar button 
-\begin_inset space ~
-\end_inset
-
-
-\begin_inset Graphics
-       filename ../images/math/hphantom.png
-       scale 85
-
+\begin_inset Info
+type  "icon"
+arg   "math/hphantom"
 \end_inset
 
 ).
@@ -4806,13 +4786,13 @@ To add or delete rows and columns subsequently, the math toolbar buttons
  
 \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.
@@ -12831,8 +12811,8 @@ fbox
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="5" columns="2">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top">
 <row>
 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
@@ -12849,29 +12829,13 @@ Command
 
 \begin_layout Plain Layout
 Result
-\begin_inset Note Note
-status collapsed
-
-\begin_layout Plain Layout
-
-\series bold
-
-\backslash
-raisebox
-\series default
- is only used as spacer.
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
 </cell>
 </row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row topspace="1.5mm">
+<cell alignment="center" valignment="top" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -12896,11 +12860,11 @@ A=B
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}\fbox{\ensuremath{\int A=B}}\raisebox{-4mm}{}$
+\begin_inset Formula $\fbox{\ensuremath{\int A=B}}$
 \end_inset
 
 
@@ -12909,8 +12873,8 @@ A=B
 \end_inset
 </cell>
 </row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row topspace="1.5mm">
+<cell alignment="center" valignment="top" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -12931,11 +12895,11 @@ A=B
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{8.5mm}{}\boxed{\int A=B}\raisebox{-6.5mm}{}$
+\begin_inset Formula $\boxed{\int A=B}$
 \end_inset
 
 
@@ -12944,8 +12908,8 @@ A=B
 \end_inset
 </cell>
 </row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row topspace="1.5mm">
+<cell alignment="center" valignment="top" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}A+\fbox{B}\raisebox{-3mm}{}$
+\begin_inset Formula $A+\fbox{B}$
 \end_inset
 
 
 \end_inset
 </cell>
 </row>
-<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<row topspace="1.5mm" bottomspace="1mm">
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}$
-\end_inset
-
-
 \begin_inset Formula $\framebox[20mm][]{\ensuremath{\frac{A}{B}}}$
 \end_inset
 
 
-\begin_inset Formula $\raisebox{-4mm}{}$
-\end_inset
-
-
 \end_layout
 
 \end_inset
@@ -13357,8 +13313,8 @@ raisebox
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top">
 <row>
 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
@@ -13381,7 +13337,7 @@ Result
 </cell>
 </row>
 <row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13402,7 +13358,7 @@ raisebox{2mm
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13416,7 +13372,7 @@ raisebox{2mm
 </cell>
 </row>
 <row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13437,7 +13393,7 @@ lo
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13740,8 +13696,8 @@ yellow
 \align center
 \begin_inset Tabular
 <lyxtabular version="3" rows="4" columns="2">
-<features tabularvalignment="middle">
-<column alignment="center" valignment="top">
+<features booktabs="true" tabularvalignment="middle">
+<column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="top">
 <row>
 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
@@ -13758,29 +13714,13 @@ Command
 
 \begin_layout Plain Layout
 Result
-\begin_inset Note Note
-status collapsed
-
-\begin_layout Plain Layout
-
-\series bold
-
-\backslash
-raisebox
-\series default
- is only used as spacer.
-\end_layout
-
-\end_inset
-
-
 \end_layout
 
 \end_inset
 </cell>
 </row>
 <row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13797,11 +13737,11 @@ colorbox{yellow
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}\colorbox{yellow}{A=B}\raisebox{-3mm}{}$
+\begin_inset Formula $\colorbox{yellow}{A=B}$
 \end_inset
 
 
@@ -13810,8 +13750,8 @@ colorbox{yellow
 \end_inset
 </cell>
 </row>
-<row>
-<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+<row topspace="1.5mm">
+<cell alignment="center" valignment="top" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13834,11 +13774,11 @@ A=B
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}\colorbox{green}{\fbox{A=B}}\raisebox{-3mm}{}$
+\begin_inset Formula $\colorbox{green}{\fbox{A=B}}$
 \end_inset
 
 
@@ -13847,8 +13787,8 @@ A=B
 \end_inset
 </cell>
 </row>
-<row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<row topspace="1.5mm" bottomspace="1mm">
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -13885,11 +13825,11 @@ C=D
 
 \end_inset
 </cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{7mm}{}\fbox{\colorbox{green}{\mbox{\ensuremath{\int C=D}}}}\raisebox{-5mm}{}$
+\begin_inset Formula $\fbox{\colorbox{green}{\mbox{\ensuremath{\int C=D}}}}$
 \end_inset
 
 
@@ -14606,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
@@ -26215,7 +26135,7 @@ aa
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\textrm{\aa}$
+\begin_inset Formula $\textrm{å}$
 \end_inset
 
 
@@ -27815,27 +27735,27 @@ arg   "newline-insert newline"
  inside a formula.
  This creates either an 
 \series bold
-eqnarray environment
+align environment
 \series default
  that is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "subsec:Eqnarray-Environment"
+reference "subsec:Standard-align-Environment"
 
 \end_inset
 
- or, when the option 
+ or, when automatically loading the package
 \family sans
-Use AMS math package
+ AMS math
 \family default
- in the document settings is selected, an 
+ is disabled in the document settings, an 
 \series bold
-align environment
+eqnarray environment
 \series default
  that is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "subsec:Standard-align-Environment"
+reference "subsec:Eqnarray-Environment"
 
 \end_inset
 
@@ -27867,13 +27787,13 @@ arg   "newline-insert newline"
  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 
@@ -28876,13 +28796,13 @@ Change Formula Type
 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 
@@ -30130,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
 
@@ -30186,7 +30093,7 @@ C=A+B\label{eq:c}
 
 \begin_layout Standard
 \begin_inset ERT
-status collapsed
+status open
 
 \begin_layout Plain Layout
 
@@ -30212,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
 
@@ -30267,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"
@@ -30310,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
@@ -30378,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
 
@@ -30393,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
@@ -31089,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
 
@@ -32593,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
@@ -37911,7 +37851,7 @@ key "Checklist"
 \begin_inset CommandInset href
 LatexCommand href
 name "Check list"
-target "http://physics.nist.gov/Document/checklist.pdf"
+target "http://physics.nist.gov/Pubs/SP811/sec11.html"
 
 \end_inset