Difference between revisions of "Template:Math commands reference"
m (→Brackets: clean up "display" values. Section complete.) |
|||
(20 intermediate revisions by 7 users not shown) | |||
Line 142: | Line 142: | ||
! Operation || Command || Display | ! Operation || Command || Display | ||
|- | |- | ||
− | | Exponential||func e^{a}|| | + | | Exponential||func e^{a}||<math>\operatorname{e}^a</math> |
|- | |- | ||
| Natural logarithm||ln(a)||<math>\ln(a)</math> | | Natural logarithm||ln(a)||<math>\ln(a)</math> | ||
Line 150: | Line 150: | ||
| Logarithm||log(a)||<math>\log(a)</math> | | Logarithm||log(a)||<math>\log(a)</math> | ||
|- | |- | ||
− | | Power||a^{b}||<math>a^b</math> | + | | Power||a^{b}||<math>a^b\,\!</math> |
|- | |- | ||
| Sine||sin(a)||<math>\sin(a)</math> | | Sine||sin(a)||<math>\sin(a)</math> | ||
Line 184: | Line 184: | ||
| Arc hyperbolic sine||arsinh(a)||<math>\operatorname{arsinh}(a)</math> | | Arc hyperbolic sine||arsinh(a)||<math>\operatorname{arsinh}(a)</math> | ||
|- | |- | ||
− | | Arc hyperbolic cosine|| | + | | Arc hyperbolic cosine||arcosh(a)||<math>\operatorname{arcosh}(a)</math> |
|- | |- | ||
− | | Arc hyperbolic tangent|| | + | | Arc hyperbolic tangent||artanh(a)||<math>\operatorname{artanh}(a)</math> |
|- | |- | ||
− | | Arc hyperbolic cotangent|| | + | | Arc hyperbolic cotangent||arcoth(a)||<math>\operatorname{arcoth}(a)</math> |
|- | |- | ||
− | | Factorial||fact{a}|| | + | | Factorial||fact{a}||<math>a!\!\,</math> |
|} | |} | ||
Line 207: | Line 207: | ||
| Coproduct||coprod{a}||<math>\coprod{a}</math> | | Coproduct||coprod{a}||<math>\coprod{a}</math> | ||
|- | |- | ||
− | | Upper and lower bounds shown with integral||int from {r_0} to {r_t} a||<math>\ | + | | Upper and lower bounds shown with integral||int from {r_0} to {r_t} a||<math>\int\limits_{r_0}^{r_t}{a}</math> |
|- | |- | ||
| Integral||int{a}||<math>\int{a}</math> | | Integral||int{a}||<math>\int{a}</math> | ||
Line 253: | Line 253: | ||
| Wide vector arrow||widevec abc||<math>\overrightarrow{a b c}</math> | | Wide vector arrow||widevec abc||<math>\overrightarrow{a b c}</math> | ||
|- | |- | ||
− | | Wide tilde||widetilde abc||<!-- TeX function not available in WM 1.15 --> | + | | Wide tilde||widetilde abc||[[image:Math Widetilde.png|x28px|bottom]]<!-- TeX function not available in WM 1.15 --> |
|- | |- | ||
| Wide circumflex||widehat abc||<math>\widehat{abc}</math> | | Wide circumflex||widehat abc||<math>\widehat{abc}</math> | ||
Line 271: | Line 271: | ||
| Bold font||bold a||<math>\bold{a}</math> | | Bold font||bold a||<math>\bold{a}</math> | ||
|- | |- | ||
− | | Italic font (see Note 1)||ital | + | | Italic font (see Note 1)||ital a||<math>\mathit{a}</math> |
+ | |- | ||
+ | | Roman (non-italic) font||nitalic a OR "a"||<math>\mathrm{a}</math> | ||
|- | |- | ||
| Resize font||size 16 qv||<span style="font-size:16pt">''qv''</span> | | Resize font||size 16 qv||<span style="font-size:16pt">''qv''</span> | ||
Line 352: | Line 354: | ||
! Operation || Command || Display | ! Operation || Command || Display | ||
|- | |- | ||
− | ||Round Brackets||(a)|| | + | ||Round Brackets||(a)||<math>(a)</math> |
|- | |- | ||
− | ||Square Brackets||[b]|| | + | ||Square Brackets||[b]||<math>[b]</math> |
|- | |- | ||
||Double Square Brackets||ldbracket c rdbracket||<math>[\![ c ]\!]</math> | ||Double Square Brackets||ldbracket c rdbracket||<math>[\![ c ]\!]</math> | ||
|- | |- | ||
− | ||Single line||lline a rline||<math>\vert a \vert</math> | + | ||Single line||lline a rline OR abs a||<math>\vert a \vert</math> |
|- | |- | ||
||Double line||ldline a rdline||<math>\Vert a \Vert</math> | ||Double line||ldline a rdline||<math>\Vert a \Vert</math> | ||
|- | |- | ||
− | ||Braces||lbrace w rbrace|| | + | ||Braces||lbrace w rbrace||<math>\{w\}</math> |
|- | |- | ||
||Braces||left lbrace stack{0, n <> 0 # 1, n = 1} right none|| [[Image:lbrace.png]] | ||Braces||left lbrace stack{0, n <> 0 # 1, n = 1} right none|| [[Image:lbrace.png]] | ||
Line 370: | Line 372: | ||
||Operator Brackets||langle a mline b rangle||<math>\langle a|b \rangle</math> | ||Operator Brackets||langle a mline b rangle||<math>\langle a|b \rangle</math> | ||
|- | |- | ||
− | ||Group brackets (used for program control)||{a}|| | + | ||Group brackets (used for program control)||{a}||<math>a</math> |
|- | |- | ||
||Scalable round brackets (add the word "left" before a left bracket and "right" before a right bracket)||left ( stack{a # b # z} right )||<math>\begin{pmatrix} a \\ b \\ z \end{pmatrix}</math> | ||Scalable round brackets (add the word "left" before a left bracket and "right" before a right bracket)||left ( stack{a # b # z} right )||<math>\begin{pmatrix} a \\ b \\ z \end{pmatrix}</math> | ||
Line 391: | Line 393: | ||
|- | |- | ||
||Under brace scalable||{the brace is below}underbrace {f}||<math>\underbrace{}_{f}</math> | ||Under brace scalable||{the brace is below}underbrace {f}||<math>\underbrace{}_{f}</math> | ||
+ | |- | ||
+ | ||Floor Brackets||lfloor a rfloor||<math>\lfloor a \rfloor</math> | ||
+ | |- | ||
+ | ||Ceil Brackets||lceil a rceil||<math>\lceil a \rceil</math> | ||
|- | |- | ||
|} | |} | ||
Line 402: | Line 408: | ||
||Center superscript||a csup{b}||<math>\overset{b}{a}</math> | ||Center superscript||a csup{b}||<math>\overset{b}{a}</math> | ||
|- | |- | ||
− | ||Right superscript||a^{b}||<math>a^b</math> | + | ||Right superscript||a^{b}||<math>a^b\,\!</math> |
|- | |- | ||
− | ||Left subscript||a lsub{b}||<math>{}_b\! | + | ||Left subscript||a lsub{b}||<math>{}_b a \,\!</math> |
|- | |- | ||
||Center subscript||a csub{b}||<math>\underset{b}{a}</math> | ||Center subscript||a csub{b}||<math>\underset{b}{a}</math> | ||
|- | |- | ||
− | ||Right subscript||a_{b}||<math>a_b</math> | + | ||Right subscript||a_{b}||<math>a_b\,\!</math> |
|- | |- | ||
− | ||Align character to left (text is aligned center by default)||stack { Hello world # alignl (a) }<br | + | ||Align character to left (text is aligned center by default)||stack { Hello world # alignl (a) }|| |
+ | {| | ||
+ | |- | ||
+ | |align="left"|''Hello world<br>(a)'' | ||
+ | |} | ||
|- | |- | ||
||Align character to center||stack{Hello world # alignc(a)}|| | ||Align character to center||stack{Hello world # alignc(a)}|| | ||
+ | {| | ||
+ | |- | ||
+ | |align="center"|''Hello world<br>(a)'' | ||
+ | |} | ||
|- | |- | ||
||Align character to right||stack { Hello world # alignr(a)}|| | ||Align character to right||stack { Hello world # alignr(a)}|| | ||
+ | {| | ||
+ | |- | ||
+ | |align="right"|''Hello world<br>(a)'' | ||
+ | |} | ||
|- | |- | ||
− | ||Vertical stack of 2||binom{a}{b}||<math>\ | + | ||Vertical stack of 2||binom{a}{b}||<math>\begin{matrix} a \\ b \end{matrix}</math> |
|- | |- | ||
||Vertical stack, more than 2||stack{a # b # z}||<math>\begin{matrix}a \\ b \\ z \end{matrix}</math> | ||Vertical stack, more than 2||stack{a # b # z}||<math>\begin{matrix}a \\ b \\ z \end{matrix}</math> | ||
Line 426: | Line 444: | ||
||Equations aligned at '=' (using 'phantom') ||stack{<br>alignl{a} = b #<br> alignl{phantom{a} = c+1}<br>}||<math>\begin{align}a & = b \\ {} & = c+1 \end{align}</math> | ||Equations aligned at '=' (using 'phantom') ||stack{<br>alignl{a} = b #<br> alignl{phantom{a} = c+1}<br>}||<math>\begin{align}a & = b \\ {} & = c+1 \end{align}</math> | ||
|- | |- | ||
− | ||New line||asldkfjo newline sadkfj|| | + | ||New line||asldkfjo newline sadkfj||''asldkfjo <br> sadkfj'' |
|- | |- | ||
− | ||Small gap (grave)||stuff `stuff|| | + | ||Small gap (grave)||stuff `stuff||<math>{stu\!f\!\!f} ~ {stu\!f\!\!f}</math> |
|- | |- | ||
− | ||Large gap (tilde)||stuff~stuff|| | + | ||Large gap (tilde)||stuff~stuff||<math>{stu\!f\!\!f} \quad {stu\!f\!\!f}</math> |
|- | |- | ||
|} | |} | ||
− | |||
− | |||
== Characters – Greek == | == Characters – Greek == | ||
+ | {{Warn|In localized versions of Writer, the markup names of Greek and special characters are localized. If this document is not localized to the same language, then the names below ''may not work'' for input. You may still use the [[Documentation/OOo3_User_Guides/Math_Guide/Entering_a_formula#Greek characters|Symbol catalog]] to select the desired character by its glyph. This will also display the character's localized markup name.<br /> | ||
+ | Once entered, the characters will display properly in any language.}} | ||
{| class="wikitable" | {| class="wikitable" | ||
!Code || Display || Code || Display || Code || Display || Code || Display || Code || Display | !Code || Display || Code || Display || Code || Display || Code || Display || Code || Display | ||
|- | |- | ||
− | | %ALPHA||''Α''||%BETA||''Β''||% | + | | %ALPHA||''Α''||%BETA||''Β''||%GAMMA||''Γ''||%DELTA||''Δ''||%EPSILON||''Ε'' |
|- | |- | ||
− | | % | + | | %ZETA||''Ζ''||%ETA||''Η''||%THETA||''Θ''||%IOTA||''Ι''||%KAPPA||''Κ'' |
|- | |- | ||
− | | % | + | | %LAMBDA||''Λ''||%MU||''Μ''||%NU||''Ν''||%XI||''Ξ''||%OMICRON||''Ο'' |
|- | |- | ||
− | | %PI||''Π''||% | + | | %PI||''Π''||%RHO||''Ρ''||%SIGMA||''Σ''||%TAU||''Τ''||%UPSILON||''Υ'' |
|- | |- | ||
− | | % | + | | %PHI||''Φ''||%CHI||''Χ''||%PSI||''Ψ''||%OMEGA||''Ω''|||| |
|- | |- | ||
− | | %alpha||''α''||%beta||''β''||% | + | | %alpha||''α''||%beta||''β''||%gamma||''γ''||%delta||''δ''||%epsilon||''ε'' |
|- | |- | ||
− | | % | + | | %varepsilon||<math>\varepsilon</math>||%zeta||''ζ''||%eta||''η''||%theta||''θ''||%vartheta||<math>\vartheta</math> |
|- | |- | ||
− | | % | + | | %iota||''ι''||%kappa||''κ''||%lambda||''λ''||%mu||''μ''||%nu||''ν'' |
|- | |- | ||
− | | % | + | | %xi||''ξ''||%omicron||''ο''||%pi||''π''||%varpi||<math>\varpi</math>||%rho||''ρ'' |
|- | |- | ||
− | | % | + | | %varrho||<math>\varrho</math>||%sigma||''σ''||%varsigma||<math>\varsigma</math>||%tau||''τ''||%upsilon||''υ'' |
|- | |- | ||
− | | % | + | | %phi||''φ''||%varphi||<math>\varphi</math>||%chi||''χ''||%psi||''ψ''||%omega||''ω'' |
|} | |} | ||
− | |||
− | |||
== Characters – Special == | == Characters – Special == | ||
{| class="wikitable" | {| class="wikitable" | ||
− | | %and <math>\and</math>||%angle <math>\angle</math>||%element <math>\in</math>||%identical <math>\equiv</math> | + | | %and <math>\and</math>||%angle <math>\angle</math>||%element <math>\in</math>||%identical <math>\equiv\,\!</math> |
|- | |- | ||
− | | %infinite <math>\infin</math>||%noelement <math>\notin</math>||%notequal <math>\ne</math>||%or <math>\or</math> | + | | %infinite <math>\infin\,\!</math>||%noelement <math>\notin</math>||%notequal <math>\ne\,\!</math>||%or <math>\or</math> |
|- | |- | ||
− | | %perthousand ‰ || %strictlygreaterthan <math>\gg</math> ||%strictlylessthan <math>\ll</math> ||%tendto <math>\to</math> | + | | %perthousand '''‰''' || %strictlygreaterthan <math>\gg</math> ||%strictlylessthan <math>\ll</math> ||%tendto <math>\to\,\!</math> |
|- | |- | ||
|} | |} | ||
Line 477: | Line 493: | ||
{{CCBY}} | {{CCBY}} | ||
+ | <noinclude>[[Category:Wiki Templates]]</noinclude> |
Revision as of 07:14, 12 July 2018
Contents
Unary / binary operators
Operation | Command | Display |
---|---|---|
Positive (plus) | +1 | +1 |
Negative (minus) | -1 | −1 |
Plus/minus | +-1 | |
Minus/plus | -+1 | |
Boolean 'not' | neg a | ¬a |
Addition | a + b | a+b |
Dot product | a cdot b | a·b |
Cross product | a times b | a×b |
Multiplication (asterisk) | a * b | a * b |
Boolean 'and' | a and b | a∧b |
Subtraction | a - b | a−b |
Division (as a fraction) | a over b | |
Division (as an operator) | a div b | a÷b |
Division (with a slash) | a / b | a/b |
Boolean 'or' | a or b | |
Concatenation | a circ b |
Relational operators
Operation | Command | Display |
---|---|---|
Is equal | a = b | a=b |
Is not equal | a <> b | a≠b |
Approximately | a approx 2 | a≈b |
Divides | a divides b | |
Does not divide | a ndivides b | |
Less than | a < 2 | a<2 |
Greater than | a > 2 | a>2 |
Similar to or equal | a simeq b | |
Parallel | a parallel b | |
Orthogonal to | a ortho b | |
Less than or equal to | a leslant b | |
Greater than or equal to | a geslant b | |
Similar to | a sim b | |
Congruent | a equiv b | a≡b |
Less than or equal to | a <= b | a≤b |
Greater than or equal to | a >= b | a≥b |
Proportional | a prop b | |
Toward | a toward b | a→b |
Arrow left | a dlarrow b | a⇐b |
Double arrow left and right | a dlrarrow b | a⇔b |
Arrow right | a drarrow b | a⇒b |
Set operations
Operation | Command | Display |
---|---|---|
Is in | a in B | a∈B |
Is not in | a notin B | a∉B |
Owns | A owns b | |
Empty set | emptyset | |
Intersection | A intersection B | A∩B |
Union | A union B | A∪B |
Difference | A setminus B | |
Quotient | A slash B | |
Aleph | aleph | ℵ |
Subset | A subset B | A⊂B |
Subset or equal to | A subseteq B | A⊆B |
Superset | A supset B | A⊃B |
Superset or equal to | A supseteq B | A⊇B |
Not subset | A nsubset B | A⊂ / B |
Not subset or equal | A nsubseteq B | A⊆ / B |
Not superset | A nsupset B | A⊃ / B |
Not superset or equal | A nsupseteq B | A⊇ / B |
Set of natural numbers | setN | |
Set of integers | setZ | |
Set of rational numbers | setQ | |
Set of real numbers | setR | |
Set of complex numbers | setC |
Functions
Operation | Command | Display |
---|---|---|
Exponential | func e^{a} | |
Natural logarithm | ln(a) | |
Exponential function | exp(a) | |
Logarithm | log(a) | |
Power | a^{b} | |
Sine | sin(a) | |
Cosine | cos(a) | |
Tangent | tan(a) | |
Cotangent | cot(a) | |
Square root | sqrt{a} | |
Arcsine | arcsin(a) | |
Arccosine | arccos(a) | |
Arctangent | arctan(a) | |
Arc cotangent | arccot(a) | |
nth root | nroot{a}{b} | |
Hyperbolic sine | sinh(a) | |
Hyperbolic cosine | cosh(a) | |
Hyperbolic tangent | tanh(a) | |
Hyperbolic cotangent | coth(a) | |
Absolute value | abs{a} | |
Arc hyperbolic sine | arsinh(a) | |
Arc hyperbolic cosine | arcosh(a) | |
Arc hyperbolic tangent | artanh(a) | |
Arc hyperbolic cotangent | arcoth(a) | |
Factorial | fact{a} |
Operators
All operators can be used with the limit functions (“from" and “to").
Attributes
Note 1: Unquoted text that is not a command is considered to be a variable. Variables are, by default, italicized.
Note 2: There are three custom fonts: serif (with serifs), sans (sans serif, meaning without serifs), and fixed (monospaced). To change the actual fonts used for custom fonts and the fonts used for variables (unquoted text), numbers and functions, use Format > Fonts.
Note 3: For all coloring, the color will apply only to the text immediately following the command until the next space is encountered. In order to have the color apply to more characters, place the text you want in color in curly brackets.
Miscellaneous
Brackets
Formats
Operation | Command | Display | |
---|---|---|---|
Left superscript | a lsup{b} | ||
Center superscript | a csup{b} | ||
Right superscript | a^{b} | ||
Left subscript | a lsub{b} | ||
Center subscript | a csub{b} | ||
Right subscript | a_{b} | ||
Align character to left (text is aligned center by default) | stack { Hello world # alignl (a) } |
| |
Align character to center | stack{Hello world # alignc(a)} |
| |
Align character to right | stack { Hello world # alignr(a)} |
| |
Vertical stack of 2 | binom{a}{b} | ||
Vertical stack, more than 2 | stack{a # b # z} | ||
Matrix | matrix{ a # b ## c # d } |
||
Equations aligned at '=' (using 'matrix') | matrix{ a # "=" # alignl{b} ## {} # "=" # alignl{c+1} } |
||
Equations aligned at '=' (using 'phantom') | stack{ alignl{a} = b # alignl{phantom{a} = c+1} } |
||
New line | asldkfjo newline sadkfj | asldkfjo sadkfj | |
Small gap (grave) | stuff `stuff | ||
Large gap (tilde) | stuff~stuff |
Characters – Greek
In localized versions of Writer, the markup names of Greek and special characters are localized. If this document is not localized to the same language, then the names below may not work for input. You may still use the Symbol catalog to select the desired character by its glyph. This will also display the character's localized markup name. Once entered, the characters will display properly in any language. |
Code | Display | Code | Display | Code | Display | Code | Display | Code | Display |
---|---|---|---|---|---|---|---|---|---|
%ALPHA | Α | %BETA | Β | %GAMMA | Γ | %DELTA | Δ | %EPSILON | Ε |
%ZETA | Ζ | %ETA | Η | %THETA | Θ | %IOTA | Ι | %KAPPA | Κ |
%LAMBDA | Λ | %MU | Μ | %NU | Ν | %XI | Ξ | %OMICRON | Ο |
%PI | Π | %RHO | Ρ | %SIGMA | Σ | %TAU | Τ | %UPSILON | Υ |
%PHI | Φ | %CHI | Χ | %PSI | Ψ | %OMEGA | Ω | ||
%alpha | α | %beta | β | %gamma | γ | %delta | δ | %epsilon | ε |
%varepsilon | %zeta | ζ | %eta | η | %theta | θ | %vartheta | ||
%iota | ι | %kappa | κ | %lambda | λ | %mu | μ | %nu | ν |
%xi | ξ | %omicron | ο | %pi | π | %varpi | %rho | ρ | |
%varrho | %sigma | σ | %varsigma | %tau | τ | %upsilon | υ | ||
%phi | φ | %varphi | %chi | χ | %psi | ψ | %omega | ω |
Characters – Special
%and | %angle | %element | %identical |
%infinite | %noelement | %notequal | %or |
%perthousand ‰ | %strictlygreaterthan | %strictlylessthan | %tendto |
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY). |