X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fdoc%2FMath.lyx;h=064438495e4c7d744e06b45e99e3a4f7ed7fb040;hb=5fd5b8be71515fcf56fca05ec2be6ef68cd1647d;hp=4498169c31129bbedb816e55a2f76cb3262e7331;hpb=61eeab74051b07565922ce4988441eaaf8fceaea;p=lyx.git diff --git a/lib/doc/Math.lyx b/lib/doc/Math.lyx index 4498169c31..064438495e 100644 --- a/lib/doc/Math.lyx +++ b/lib/doc/Math.lyx @@ -1,5 +1,5 @@ -#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/ -\lyxformat 410 +#LyX 2.0 created this file. For more info see http://www.lyx.org/ +\lyxformat 413 \begin_document \begin_header \textclass scrartcl @@ -149,6 +149,7 @@ \use_default_options false \maintain_unincluded_children false \language english +\language_package default \inputencoding auto \fontencoding global \font_roman default @@ -182,7 +183,7 @@ \pdf_colorlinks true \pdf_backref false \pdf_pdfusetitle false -\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" \papersize a4paper \use_geometry false \use_amsmath 2 @@ -214,6 +215,7 @@ \tracking_changes false \output_changes false \html_math_output 0 +\html_css_as_file 0 \html_be_strict false \end_header @@ -2071,7 +2073,8 @@ cfrac \end_layout \begin_layout Standard -\begin_inset Formula \begin{align*} +\begin_inset Formula +\begin{align*} \textrm{created with \textbf{\textbackslash frac}} & & \textrm{created with \textbf{\textbackslash cfrac}}\\ \frac{A}{B+\frac{C+\frac{E}{F}}{D}} & & \cfrac{A}{B+\cfrac{C+\cfrac{E}{F}}{D}} \end{align*} @@ -2259,7 +2262,8 @@ cfrac frac \series default : -\begin_inset Formula \[ +\begin_inset Formula +\[ \cfrac{A}{B+\cfrac{C+\frac{E}{F}}{D}} \] @@ -5033,7 +5037,8 @@ hdotsfor[2]{4} dots \series default : -\begin_inset Formula \[ +\begin_inset Formula +\[ \left(\begin{array}{cccc} A & B & C & D\\ \hdotsfor[2]{4}\\ @@ -5822,6 +5827,44 @@ vmatrix Note that decorated matrices ignore the vertical alignment. \end_layout +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + LaTeX limits the number of matrix columns with decorations to 10. + If you need more than 10 +\begin_inset space \thinspace{} +\end_inset + +columns, you have to add this line to the document preamble: +\end_layout + +\begin_layout Plain Layout + +\series bold + +\backslash +setcounter{MaxMatrixCols}{number} +\end_layout + +\begin_layout Plain Layout +where +\emph on +number +\emph default + is the number of columns between 11 and 99. +\end_layout + +\end_inset + + +\end_layout + \begin_layout Standard \begin_inset VSpace bigskip \end_inset @@ -7214,7 +7257,8 @@ spce ) \series default creates -\begin_inset Formula \[ +\begin_inset Formula +\[ \ln(\frac{A}{C}) \] @@ -7268,7 +7312,8 @@ spce right) \series default creates -\begin_inset Formula \[ +\begin_inset Formula +\[ \ln\left(\frac{A}{C}\right) \] @@ -7379,7 +7424,8 @@ right} creates: \series bold -\begin_inset Formula \[ +\begin_inset Formula +\[ \left.\frac{A}{B}\right\} \] @@ -7437,7 +7483,8 @@ g. \end_inset needed for physical vectors: -\begin_inset Formula \[ +\begin_inset Formula +\[ \left\langle \phi\:\middle|\: J=\frac{3}{2}\,,\, M_{J}\right\rangle \] @@ -7849,7 +7896,8 @@ reference "sec:Multiline-Formulas" \end_inset , must be used: -\begin_inset Formula \begin{eqnarray*} +\begin_inset Formula +\begin{eqnarray*} A & = & \underbrace{gggg+bbqq}_{r}+\: dddd\\ & & \hphantom{gggg+\:}\underbrace{\hphantom{bbqq+dddd}}_{s} \end{eqnarray*} @@ -7985,7 +8033,8 @@ jot}{-6pt} \end_inset -\begin_inset Formula \begin{eqnarray*} +\begin_inset Formula +\begin{eqnarray*} & & \hphantom{gggg+\:}\overbrace{\hphantom{bbqq+dddd}}^{s}\\ A & = & \underbrace{gggg+bbqq}_{r}+\: dddd \end{eqnarray*} @@ -8107,13 +8156,6 @@ Arrows can be inserted via the math toolbar button or the commands listed in the following subsections. \end_layout -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - \begin_layout Subsection Horizontal Arrows \begin_inset Index idx @@ -9462,13 +9504,6 @@ reference "sub:Automatic-Bracket-Size" . \end_layout -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - \begin_layout Section Accents \begin_inset CommandInset label @@ -10555,7 +10590,8 @@ spce n \series default produces: -\begin_inset Formula \[ +\begin_inset Formula +\[ \sideset{}{'}\sum_{k=1}^{n} \] @@ -10608,7 +10644,8 @@ spce a \series default produces: -\begin_inset Formula \[ +\begin_inset Formula +\[ \overset{a}{\maltese} \] @@ -11063,7 +11100,8 @@ widehat \series default will only be set in the output with a length of three characters, as shown in the following example: -\begin_inset Formula \[ +\begin_inset Formula +\[ \widetilde{A+B=C-D} \] @@ -11135,7 +11173,8 @@ A=B *** \series default creates: -\begin_inset Formula \[ +\begin_inset Formula +\[ \underset{***}{A=B} \] @@ -13169,7 +13208,8 @@ fboxsep 3mm \end_inset -\begin_inset Formula \[ +\begin_inset Formula +\[ \boxed{A+B=C} \] @@ -14027,7 +14067,8 @@ An example: \begin_layout Standard \color red -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} \int A=B\label{eq:red} \end{equation} @@ -14036,7 +14077,8 @@ An example: \color green -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} \textcolor{red}{\int A=B}\label{eq:redgreen} \end{equation} @@ -14150,7 +14192,8 @@ fboxsep 1mm \end_inset -\begin_inset Formula \[ +\begin_inset Formula +\[ \fcolorbox{cyan}{magenta}{A=B} \] @@ -14334,7 +14377,8 @@ darkgreen yellow \series default : -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} \colorbox{darkgreen}{\color{yellow}\boxed{\int A\,\mathrm{d}x=\frac{\sqrt[5]{B}}{\ln\left(\frac{1}{3}\right)}}} \end{equation} @@ -14757,7 +14801,8 @@ fboxrule}{ \end_inset -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} \int A\,\mathrm{d}x=\frac{\sqrt[5]{B}}{\ln\left(\frac{1}{3}\right)} \end{equation} @@ -14994,7 +15039,8 @@ commented \end_inset using the mathematical textmode: -\begin_inset Formula \[ +\begin_inset Formula +\[ 5x-7b=3b\textrm{This is a description. It is not separated from the formula ...} \] @@ -16226,7 +16272,8 @@ arg "math-limits" \begin_layout Standard The default limits type is this: -\begin_inset Formula \[ +\begin_inset Formula +\[ \sum_{x=0}^{\infty}\frac{1}{x^{2}} \] @@ -16239,7 +16286,8 @@ Inline \family default \series default : -\begin_inset Formula \[ +\begin_inset Formula +\[ \sum\nolimits _{x=0}^{\infty}\frac{1}{x^{2}} \] @@ -16268,7 +16316,8 @@ ointop Display \series default and so set below the integrals: -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} \iiint\limits _{V}X\,\mathrm{d}V=U\label{eq:VolInt} \end{equation} @@ -16319,7 +16368,8 @@ substack are used. To create for example this expression -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} \sum_{\begin{subarray}{c} 0} & \ce{Si(OH)4 + 4C2H4O}\label{eq:TEOS-reaction-1}\\ \ce{Si(OH)4} & \ce{->} & \ce{SiO2 + 2H2O}\label{eq:TEOS-reaction-2} \end{eqnarray} @@ -32469,13 +32579,6 @@ key "mhchem" . \end_layout -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - \begin_layout Section Diagrams \end_layout @@ -32509,7 +32612,8 @@ Diagrams ! amscd \begin_layout Standard Diagrams of this type visualize relations by vertical and horizontal lines or arrows: -\begin_inset Formula \[ +\begin_inset Formula +\[ \begin{CD}A@>>>B@>>>C\\ @AAA@.@VVV\\ F@<<j>>B@>>k>C@=F\\ @AmAA@.@VV{V}V@|\\ D@<k>>F@=C @@ -33540,14 +33645,16 @@ User-defined commands are especially convenient for complex expressions. When you are for example dealing in a document with quadratic equations, the same solution type occurs several times. The general form of a quadratic equation is -\begin_inset Formula \[ +\begin_inset Formula +\[ 0=\lambda^{2}+p\lambda+q \] \end_inset The general form of the solution is -\begin_inset Formula \[ +\begin_inset Formula +\[ \lambda_{1,2}=-\frac{p}{2}\pm\sqrt{\frac{p²}{4}-q} \] @@ -33878,7 +33985,8 @@ Here is our macro example with the arguments \end_layout \begin_layout Standard -\begin_inset Formula \[ +\begin_inset Formula +\[ \qG x{\ln(x)}B \] @@ -35050,7 +35158,8 @@ The command Braket \series default assures that all vertical bars are set in the size of the surrounding brackets: -\begin_inset Formula \[ +\begin_inset Formula +\[ \Braket{\phi|J=\frac{3}{2}\,,\, M_{J}} \] @@ -35431,7 +35540,8 @@ genfrac{}{}{#1}{}{#2}{#3}} \begin_layout Standard A test: -\begin_inset Formula \begin{align*} +\begin_inset Formula +\begin{align*} \text{Command} & & \mathrm{\backslash fracS[1mm]\backslash\{A\to\backslash\{B} & & \mathrm{\backslash fracS[5mm]\backslash\{A\to\backslash\{B}\\ \text{Result} & & \fracS[1mm]{A}{B} & & \fracS[5mm]{A}{B} \end{align*} @@ -35740,7 +35850,8 @@ A=B cancelto \series default is especially suitable to visualize the reduction of fractions within formulas: -\begin_inset Formula \[ +\begin_inset Formula +\[ \frac{\left(x_{0}+bB\right)^{2}}{\left(1+b^{2}\right)^{\cancelto{2}{3}}}=\frac{x_{0}^{2}+B^{2}-r_{g}^{2}}{\cancel{1+b^{2}}} \] @@ -36260,7 +36371,8 @@ end{multicols} \end_inset -\begin_inset Formula \begin{equation} +\begin_inset Formula +\begin{equation} S(t)=S_{0}(t)\int_{-\infty}^{\infty}P(\phi,t)\mathrm{e}^{\mathrm{i}\phi}\,\mathrm{d}\phi \end{equation} @@ -36495,7 +36607,8 @@ reference "eq:within" consists of five columns whereas in the first two columns contain the equation, the third the matrix and the last one an empty TeX-brace. -\begin_inset Formula \begin{flalign} +\begin_inset Formula +\begin{flalign} \hspace{30pt}F_{A} & =\rho·V·g & \footnotesize\begin{array}{ll} \rho & \textrm{density}\\ V & \textrm{volume}\\ @@ -36649,7 +36762,8 @@ uptau \begin_layout Standard With these commands reactions of elementary particles can be typeset: -\begin_inset Formula \[ +\begin_inset Formula +\[ \uppi^{+}\to\upmu^{+}+\upnu_{\upmu} \]