X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fdoc%2FMath.lyx;h=75af2ec5419aae92ef8e86dd0e15e2c60dc40041;hb=70167007e445c3a9d2ffa4716f5586ddd207195d;hp=ca1bb4dacded7b2ad77786f0b61eb5e26e0f1fe9;hpb=695399b062441aceb9c3a1fb29fbe18edf6ba55c;p=lyx.git diff --git a/lib/doc/Math.lyx b/lib/doc/Math.lyx index ca1bb4dacd..75af2ec541 100644 --- a/lib/doc/Math.lyx +++ b/lib/doc/Math.lyx @@ -1,8 +1,9 @@ -#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 -\origin unavailable +\save_transient_properties true +\origin /systemlyxdir/doc/ \textclass scrartcl \begin_preamble % DO NOT ALTER THIS PREAMBLE!!! @@ -14,16 +15,6 @@ % 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. @@ -96,8 +87,9 @@ \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 @@ -143,14 +135,17 @@ \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 -\inputencoding auto +\inputencoding utf8 \fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" +\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 @@ -158,8 +153,10 @@ \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 default +\default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default @@ -184,13 +181,13 @@ \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 @@ -201,6 +198,7 @@ \suppress_date false \justification true \use_refstyle 0 +\use_minted 0 \notefontcolor #0000ff \index Index \shortcut idx @@ -210,7 +208,10 @@ \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 @@ -249,6 +250,7 @@ LatexCommand href name "lyx-docs@lists.lyx.org" target "lyx-docs@lists.lyx.org?subject=LyX's Math manual" type "mailto:" +literal "false" \end_inset @@ -277,7 +279,7 @@ author: Uwe Stöhr \family sans -Version 2.2.x +Version 2.3.x \end_layout \begin_layout Standard @@ -320,7 +322,7 @@ The latest PDF-version of this document can be found here: \series bold -http://wiki.lyx.org/LyX/DocumentationDevelopment#Math +https://wiki.lyx.org/LyX/Manuals#Math \end_layout \end_inset @@ -468,8 +470,9 @@ AmS \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 @@ -1182,7 +1185,7 @@ pt) \begin_inset Text \begin_layout Plain Layout -böp +bp \end_layout \end_inset @@ -1502,270 +1505,262 @@ arg "math-superscript" \end_inset . -\begin_inset Separator parbreak -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -Command -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Result -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -B_V -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $B_{V}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -B^V -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $B^{V}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -B^ -\begin_inset space \textvisiblespace{} -\end_inset - -A -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $B^{A}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -As the caret is in some languages an accent, vowels will be accentuated - in this case and not set as exponents -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Depending on the used keyboard settings this can also happen for characters - other than vowels. -\end_layout - -\end_inset - -. - To get exponents in this case, press -\family sans -Space -\family default - after the caret as in the last example. -\end_layout - -\begin_layout Subsection -Fractions -\begin_inset CommandInset label -LatexCommand label -name "subsec:Fractions" - -\end_inset - - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Fractions -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Fractions are generated with the command -\series bold - -\backslash -frac -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Commands ! F ! -\backslash -frac -\end_layout - -\end_inset - - or via the math toolbar button -\begin_inset Info -type "icon" -arg "math-insert \\frac" -\end_inset - -. - The font size is adjusted automatically, depending on whether the fraction - is in an inline or display style formula. - With the math toolbar button -\begin_inset Info -type "icon" -arg "math-insert \\frac-square" -\end_inset - - you can select different fraction types. -\end_layout - -\begin_layout Standard -With the command -\series bold - -\backslash -dfrac -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Commands ! D ! -\backslash -dfrac -\end_layout - -\end_inset - - a fraction can be created that always has the size of a display style formula. - With -\series bold - -\backslash -tfrac -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Commands ! T ! -\backslash -tfrac -\end_layout - -\end_inset - - the fraction appears always with the size of an inline formula. - An example: -\end_layout - -\begin_layout Standard -A line with the fraction -\begin_inset Formula $\frac{1}{2}$ -\end_inset - - that was created with the command -\series bold - -\backslash -frac -\series default -. -\end_layout - -\begin_layout Standard -A line with the fraction -\begin_inset Formula $\dfrac{1}{2}$ -\end_inset - - that was created with the command -\series bold - -\backslash -dfrac -\series default -. -\begin_inset Separator parbreak +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Command +\end_layout + \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +Result +\end_layout +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +B_V +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $B_{V}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +B^V +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $B^{V}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +B^ +\begin_inset space \textvisiblespace{} +\end_inset + +A +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $B^{A}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +As the caret is in some languages an accent, vowels will be accentuated + in this case and not set as exponents +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Depending on the used keyboard settings this can also happen for characters + other than vowels. +\end_layout + +\end_inset + +. + To get exponents in this case, press +\family sans +Space +\family default + after the caret as in the last example. +\end_layout + +\begin_layout Subsection +Fractions +\begin_inset CommandInset label +LatexCommand label +name "subsec:Fractions" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Fractions +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Fractions are generated with the command +\series bold + +\backslash +frac +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Commands ! F ! +\backslash +frac +\end_layout + +\end_inset + + or via the math toolbar button +\begin_inset Info +type "icon" +arg "math-insert \\frac" +\end_inset + +. + The font size is adjusted automatically, depending on whether the fraction + is in an inline or display style formula. + With the math toolbar button +\begin_inset Info +type "icon" +arg "math-insert \\frac-square" +\end_inset + + you can select different fraction types. +\end_layout + +\begin_layout Standard +With the command +\series bold + +\backslash +dfrac +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Commands ! D ! +\backslash +dfrac +\end_layout + +\end_inset + + a fraction can be created that always has the size of a display style formula. + With +\series bold + +\backslash +tfrac +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Commands ! T ! +\backslash +tfrac +\end_layout + +\end_inset + + the fraction appears always with the size of an inline formula. + An example: +\end_layout + +\begin_layout Standard +A line with the fraction +\begin_inset Formula $\frac{1}{2}$ +\end_inset + + that was created with the command +\series bold + +\backslash +frac +\series default +. +\end_layout + +\begin_layout Standard +A line with the fraction +\begin_inset Formula $\dfrac{1}{2}$ +\end_inset + + that was created with the command +\series bold + +\backslash +dfrac +\series default +. \end_layout \begin_layout Standard @@ -2300,10 +2295,6 @@ arg "math-insert \\root" \end_inset . -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -2656,10 +2647,6 @@ brack \end_inset . -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -3015,7 +3002,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 . @@ -3072,10 +3059,6 @@ not 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 @@ -3300,10 +3283,6 @@ reference "subsec:Chemical-Symbols-and" \end_inset the following problem occurs: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -3408,10 +3387,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. @@ -3425,10 +3403,6 @@ phantom 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 @@ -3610,14 +3584,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 +3608,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 ). @@ -4149,10 +4113,6 @@ dots , \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 @@ -4806,13 +4766,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. @@ -6028,10 +5988,6 @@ Bigg \begin_layout Standard These commands are used to emphasize levels of brackets: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -6112,10 +6068,6 @@ C \begin_layout Standard Here is an overview about all bracket sizes: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -6239,10 +6191,6 @@ r \begin_layout Standard In the following table is a comparison of the variants: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -6498,10 +6446,6 @@ right \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 @@ -6979,10 +6923,6 @@ Load always \family default , you have access to square backets: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -7223,10 +7163,6 @@ underbracket \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 @@ -7560,7 +7496,8 @@ status collapsed \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 @@ -8635,10 +8572,6 @@ always \end_inset -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -9163,10 +9096,6 @@ xrightleftharpoons \begin_layout Standard The command scheme is for all these arrows: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -10432,10 +10361,6 @@ undertilde \end_inset -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -11064,10 +10989,6 @@ arg "math-insert \\space" Space \family default afterwards. -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -11541,10 +11462,6 @@ reference "subsec:Variable-Space" 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 @@ -11674,10 +11591,6 @@ g. \end_inset useful for summation operators: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -11792,10 +11705,6 @@ Relations like for example equal signs, are always surrounded by space. 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 @@ -12821,10 +12730,6 @@ framebox fbox \series default . -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -13321,12 +13226,6 @@ raisebox \end_inset -\series default - -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -13704,12 +13603,6 @@ white and \series bold yellow -\series default - -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -14566,26 +14459,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 @@ -16013,10 +15886,6 @@ Operators ! Limits \begin_layout Standard Limits are created by super- and subscripts: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -18266,15 +18135,12 @@ Latin letters in formulas can be set in one of the following font styles: \begin_layout Standard \align center -\begin_inset space \hfill{} -\end_inset - - \begin_inset Tabular - + + \begin_inset Text @@ -18292,6 +18158,15 @@ Command Result \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Shortcut +\end_layout + \end_inset @@ -18325,6 +18200,15 @@ ABC \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +- +\end_layout + \end_inset @@ -18356,6 +18240,20 @@ AbC \end_inset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Info +type "shortcut" +arg "font-bold" +\end_inset + + \end_layout \end_inset @@ -18389,6 +18287,20 @@ AbC \end_inset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Info +type "shortcut" +arg "font-boldsymbol" +\end_inset + + \end_layout \end_inset @@ -18424,6 +18336,15 @@ ABC \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +- +\end_layout + \end_inset @@ -18457,6 +18378,15 @@ AbC \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +- +\end_layout + \end_inset @@ -18465,15 +18395,16 @@ AbC \end_inset -\begin_inset space \hfill{} -\end_inset - +\end_layout +\begin_layout Standard +\align center \begin_inset Tabular - + + \begin_inset Text @@ -18491,6 +18422,15 @@ Command Result \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Shortcut +\end_layout + \end_inset @@ -18524,6 +18464,15 @@ AbC \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +- +\end_layout + \end_inset @@ -18555,6 +18504,20 @@ AbC \end_inset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Info +type "shortcut" +arg "font-roman" +\end_inset + + \end_layout \end_inset @@ -18588,6 +18551,20 @@ AbC \end_inset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Info +type "shortcut" +arg "font-sans" +\end_inset + + \end_layout \end_inset @@ -18621,6 +18598,20 @@ AbC \end_inset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Info +type "shortcut" +arg "font-typewriter" +\end_inset + + \end_layout \end_inset @@ -18658,13 +18649,18 @@ ABC \end_inset - - + +\begin_inset Text -\end_inset +\begin_layout Plain Layout +- +\end_layout +\end_inset + + + -\begin_inset space \hfill{} \end_inset @@ -18746,7 +18742,8 @@ status collapsed \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 @@ -19036,7 +19033,8 @@ status collapsed \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 @@ -19200,10 +19198,6 @@ arg "math-insert \\style" \end_inset : -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -20941,10 +20935,6 @@ boldsymbol \end_inset . -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -21063,6 +21053,7 @@ A list with all symbols of most of the \SpecialChar LaTeX \begin_inset CommandInset citation LatexCommand cite key "Symbols" +literal "true" \end_inset @@ -21972,13 +21963,6 @@ bot \end_inset -\end_layout - -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - \end_layout \begin_layout Subsection @@ -22957,10 +22941,6 @@ eurosym \begin_layout Standard An overview about the different Euro symbols: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -23209,13 +23189,6 @@ fi \end_inset -\end_layout - -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - \end_layout \begin_layout Section @@ -24643,10 +24616,6 @@ stackrel \end_inset : -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -24773,13 +24742,9 @@ italic \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 @@ -25463,10 +25428,6 @@ In \SpecialChar LyX \end_inset : -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -25608,10 +25569,6 @@ liminf limsup \series default the following functions are defined: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -25925,10 +25882,6 @@ The characters ^ and _ would normally create a superscript and subscript, To get these characters you have to insert them with a leading \backslash : -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -26175,7 +26128,7 @@ aa \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\textrm{\aa}$ +\begin_inset Formula $\textrm{å}$ \end_inset @@ -26192,33 +26145,6 @@ aa \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 @@ -26227,7 +26153,7 @@ AA} \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\textrm{Å}$ +\begin_inset Formula $\textrm{Å}$ \end_inset @@ -26512,11 +26438,11 @@ j \begin_layout Standard The characters -\begin_inset Formula $\textrm{\textrm{Å}}$ +\begin_inset Formula $\textrm{Å}$ \end_inset and -\begin_inset Formula $\textrm{\textrm{Ø}}$ +\begin_inset Formula $\textrm{Ø}$ \end_inset can also be inserted via the math toolbar button @@ -27594,34 +27520,26 @@ Formula ! styles \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 @@ -27629,98 +27547,38 @@ When \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, @@ -27775,27 +27633,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 @@ -27827,13 +27685,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 @@ -27892,7 +27750,8 @@ see \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 @@ -28279,6 +28138,13 @@ C & \ne & A \end_inset +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + \end_layout \begin_layout Subsubsection @@ -28461,7 +28327,8 @@ status collapsed \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 @@ -28836,13 +28703,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 @@ -30069,63 +29936,50 @@ Formula numbering ! subnumbering \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} @@ -30144,119 +29998,23 @@ C=A+B\label{eq:c} \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" @@ -30270,46 +30028,38 @@ 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 + 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 @@ -30330,47 +30080,104 @@ reference "sec:Formula-Styles" \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 @@ -30379,10 +30186,10 @@ end{subequations} \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 @@ -30391,28 +30198,27 @@ name "subsec:User-defined-Numbering" 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 @@ -30420,223 +30226,335 @@ With the standard numbering parentheses are set around the formula number. \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 @@ -30644,78 +30562,86 @@ makeatother \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 @@ -30723,222 +30649,215 @@ Packages ! carlisle 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 @@ -30946,134 +30865,114 @@ To go back to the standard numbering or to prevent this kind of numbering \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 @@ -31081,282 +30980,250 @@ Formulas can also be numbered with Roman numbers and Latin letters. \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 @@ -31364,11 +31231,7 @@ status collapsed \backslash -renewcommand{ -\backslash -theequation}{ -\backslash -alph{equation}} +numberwithin{equation}{section} \end_layout \end_inset @@ -31376,41 +31239,42 @@ alph{equation}} \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 @@ -31435,9 +31299,8 @@ arabic \end_inset -\end_layout +\series default -\begin_layout Standard \begin_inset ERT status collapsed @@ -31455,40 +31318,69 @@ arabic{equation}} \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 @@ -31638,10 +31530,6 @@ ce \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 @@ -32014,7 +31902,6 @@ status open \begin_layout Plain Layout \series bold -\color none Note: \series default It is not possible in \SpecialChar LyX @@ -32183,6 +32070,7 @@ mhchem \begin_inset CommandInset citation LatexCommand cite key "mhchem" +literal "true" \end_inset @@ -32553,13 +32441,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 @@ -32953,10 +32834,6 @@ white \begin_layout Standard A test of the new defined commands: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -33362,7 +33239,7 @@ arg "math-macro newmacroname_newcommand" \begin_inset Graphics filename clipart/macrobox.png - scale 75 + scale 95 \end_inset @@ -33517,7 +33394,7 @@ qG \begin_inset Graphics filename clipart/macrouse.png - scale 75 + scale 95 \end_inset @@ -34216,6 +34093,35 @@ Maxima \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 @@ -34234,6 +34140,20 @@ Maxima \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 @@ -34323,10 +34243,6 @@ Thus, the problem disappears when converting the minus sign to mathematical \begin_layout Standard An example to visualize the problem: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -34593,10 +34509,6 @@ braket \begin_layout Standard The following commands are defined: -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -34910,10 +34822,6 @@ The style is a number in the range of 0 \end_inset 3. -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -35185,10 +35093,6 @@ cancel \end_inset -\begin_inset Separator parbreak -\end_inset - - \end_layout \begin_layout Standard @@ -35525,6 +35429,7 @@ cancel \begin_inset CommandInset citation LatexCommand cite key "cancel" +literal "true" \end_inset @@ -36722,7 +36627,8 @@ status collapsed \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 @@ -36792,6 +36698,7 @@ Duden \begin_inset CommandInset citation LatexCommand cite key "Duden" +literal "true" \end_inset @@ -36800,6 +36707,7 @@ key "Duden" \begin_inset CommandInset citation LatexCommand cite key "Checklist" +literal "true" \end_inset @@ -37645,6 +37553,15 @@ Vert \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 @@ -37658,13 +37575,15 @@ Vert \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 @@ -37679,6 +37598,7 @@ The \SpecialChar LaTeX \begin_inset CommandInset bibitem LatexCommand bibitem key "Mathmode" +literal "true" \end_inset @@ -37686,7 +37606,8 @@ key "Mathmode" \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 @@ -37698,6 +37619,7 @@ target "ftp://ftp.dante.de/tex-archive/info/math/voss/mathmode/Mathmode.pdf" \begin_inset CommandInset bibitem LatexCommand bibitem key "AMS" +literal "true" \end_inset @@ -37705,7 +37627,8 @@ key "AMS" \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 @@ -37730,6 +37653,7 @@ AmS \begin_inset CommandInset bibitem LatexCommand bibitem key "Symbols" +literal "true" \end_inset @@ -37738,6 +37662,7 @@ key "Symbols" LatexCommand href name "List" target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf" +literal "false" \end_inset @@ -37749,6 +37674,7 @@ target "ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf \begin_inset CommandInset bibitem LatexCommand bibitem key "cancel" +literal "true" \end_inset @@ -37756,7 +37682,8 @@ key "cancel" \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 @@ -37782,6 +37709,7 @@ Packages ! cancel \begin_inset CommandInset bibitem LatexCommand bibitem key "hyperref" +literal "true" \end_inset @@ -37789,7 +37717,8 @@ key "hyperref" \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 @@ -37815,6 +37744,7 @@ Packages ! hyperref \begin_inset CommandInset bibitem LatexCommand bibitem key "mhchem" +literal "true" \end_inset @@ -37822,7 +37752,8 @@ key "mhchem" \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 @@ -37848,22 +37779,31 @@ Packages ! mhchem \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 @@ -37871,7 +37811,8 @@ key "Checklist" \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 @@ -37882,6 +37823,8 @@ target "http://physics.nist.gov/Document/checklist.pdf" \begin_inset CommandInset index_print LatexCommand printindex type "idx" +name "Index" +literal "false" \end_inset