Difference between revisions of "Template:Math commands reference"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: == Unary / binary operators == {| class="wikitable" ! Operation || Command || Display |- | Positive (plus) || +1 || +1 |- | Negative (minus)||-1||−1 |- | Plus/minus||+-1||<math>\pm 1...)
 
(41 intermediate revisions by 8 users not shown)
Line 11: Line 11:
 
| Minus/plus||-+1||<math>\mp 1</math>
 
| Minus/plus||-+1||<math>\mp 1</math>
 
|-
 
|-
| Boolean 'not'||neg a||&not;a
+
| Boolean 'not'||neg a||''&not;a''
 
|-
 
|-
| Addition||a + b||a+b
+
| Addition||a + b||''a+b''
 
|-
 
|-
| Dot product||a cdot b||a&middot;b
+
| Dot product||a cdot b||''a&middot;b''
 
|-
 
|-
| Cross product||a times b||a&times;b
+
| Cross product||a times b||''a&times;b''
 
|-
 
|-
| Multiplication (asterisk)||a * b||
+
| Multiplication (asterisk)||a * b||''a * b''
 
|-
 
|-
| Boolean 'and'||a and b||a&and;b
+
| Boolean 'and'||a and b||''a''&and;''b''
 
|-
 
|-
| Subtraction||a - b||a&minus;b
+
| Subtraction||a - b||''a&minus;b''
 
|-
 
|-
 
| Division (as a fraction)||a over b||<math>\frac{a}{b}</math>
 
| Division (as a fraction)||a over b||<math>\frac{a}{b}</math>
 
|-
 
|-
| Division (as an operator)&nbsp;&nbsp;||a div b||a&divide;b
+
| Division (as an operator)&nbsp;&nbsp;||a div b||''a&divide;b''
 
|-
 
|-
| Division (with a slash)||a / b||a/b
+
| Division (with a slash)||a / b||''a/b''
 
|-
 
|-
 
| Boolean 'or'||a or b||<math>a \or b</math>
 
| Boolean 'or'||a or b||<math>a \or b</math>
 
|-
 
|-
| Concatenation||a circ b||
+
| Concatenation||a circ b||<math> a \circ b </math>
 
|-
 
|-
 
|}
 
|}
 
 
  
 
== Relational operators ==
 
== Relational operators ==
Line 49: Line 47:
 
| Approximately||a approx 2||a&asymp;b
 
| Approximately||a approx 2||a&asymp;b
 
|-
 
|-
| Divides||a divides b||
+
| Divides||a divides b||<math>a \mid b</math>
 
|-
 
|-
| Does not divide||a ndivides b||
+
| Does not divide||a ndivides b||<math>a \! \nmid \! b</math>
 
|-
 
|-
| Less than||a < 2||a&lt;b
+
| Less than||a < 2||a&lt;2
 
|-
 
|-
| Greater than||a > 2||a&gt;b
+
| Greater than||a > 2||a&gt;2
 
|-
 
|-
| Similar to or equal||a simeq b||
+
| Similar to or equal||a simeq b||<math>a\! \simeq\! b</math>
 
|-
 
|-
| Parallel||a parallel b||
+
| Parallel||a parallel b||<math>a \!\parallel\! b</math>
 
|-
 
|-
| Orthogonal to||a ortho b||
+
| Orthogonal to||a ortho b||<math>a \!\perp\! b</math>
 
|-
 
|-
| Less than or equal to||a leslant b||
+
| Less than or equal to||a leslant b||<math>a \!\leqslant\! b</math>
 
|-
 
|-
| Greater than or equal to||a geslant b||
+
| Greater than or equal to||a geslant b||<math>a \!\geqslant\! b</math>
 
|-
 
|-
| Similar to||a sim b||
+
| Similar to||a sim b||<math>a\!\sim\! b\,\!</math>
 
|-
 
|-
 
| Congruent||a equiv b||a&equiv;b
 
| Congruent||a equiv b||a&equiv;b
Line 75: Line 73:
 
| Greater than or equal to||a >= b||a&ge;b
 
| Greater than or equal to||a >= b||a&ge;b
 
|-
 
|-
| Proportional||a prop b||<math>a \propto b</math>
+
| Proportional||a prop b||<math>a\! \propto\! b</math>
 
|-
 
|-
 
| Toward||a toward b||a&rarr;b
 
| Toward||a toward b||a&rarr;b
Line 86: Line 84:
 
|-
 
|-
 
|}
 
|}
 
 
  
 
== Set operations ==
 
== Set operations ==
Line 97: Line 93:
 
||Is not in||a notin B||a&notin;B
 
||Is not in||a notin B||a&notin;B
 
|-
 
|-
||Owns||A owns b||
+
||Owns||A owns b||<math>A\!\ni\! b</math>
 
|-
 
|-
||Empty set||emptyset||
+
||Empty set||emptyset||<math>\emptyset</math>
 
|-
 
|-
 
||Intersection||A intersection B||A&cap;B
 
||Intersection||A intersection B||A&cap;B
Line 105: Line 101:
 
||Union||A union B||A&cup;B
 
||Union||A union B||A&cup;B
 
|-
 
|-
||Difference||A setminus B||
+
||Difference||A setminus B||<math>A\!\setminus\! B</math>
 
|-
 
|-
||Quotient||A slash B||
+
||Quotient||A slash B||<math>A\!/\! B</math>
 
|-
 
|-
 
||Aleph||aleph||&alefsym;
 
||Aleph||aleph||&alefsym;
Line 130: Line 126:
 
|-
 
|-
 
|-
 
|-
||Set of natural numbers||setN||
+
||Set of natural numbers||setN||<math>\mathbb{N}</math>
 
|-
 
|-
||Set of integers||setZ||
+
||Set of integers||setZ||<math>\mathbb{Z}</math>
 
|-
 
|-
||Set of rational numbers||setQ||
+
||Set of rational numbers||setQ||<math>\mathbb{Q}</math>
 
|-
 
|-
||Set of real numbers||setR||
+
||Set of real numbers||setR||<math>\mathbb{R}</math>
 
|-
 
|-
||Set of complex numbers||setC||
+
||Set of complex numbers||setC||<math>\mathbb{C}</math>
 
|-
 
|-
 
|}
 
|}
 
 
 
  
 
== Functions ==
 
== Functions ==
Line 149: 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)||
+
| Natural logarithm||ln(a)||<math>\ln(a)</math>
 
|-
 
|-
| Exponential function||exp(a)||
+
| Exponential function||exp(a)||<math>\exp(a)</math>
 
|-
 
|-
| Logarithm||log(a)||
+
| Logarithm||log(a)||<math>\log(a)</math>
 
|-
 
|-
| Power||a^{b}||
+
| Power||a^{b}||<math>a^b\,\!</math>
 
|-
 
|-
| Sine||sin(a)||
+
| Sine||sin(a)||<math>\sin(a)</math>
 
|-
 
|-
| Cosine||cos(a)||
+
| Cosine||cos(a)||<math>\cos(a)</math>
 
|-
 
|-
| Tangent||tan(a)||
+
| Tangent||tan(a)||<math>\tan(a)</math>
 
|-
 
|-
| Cotangent||cot(a)||
+
| Cotangent||cot(a)||<math>\cot(a)</math>
 
|-
 
|-
| Square root||sqrt{a}||
+
| Square root||sqrt{a}||<math>\sqrt{a}</math>
 
|-
 
|-
| Arcsine||arcsin(a)||
+
| Arcsine||arcsin(a)||<math>\arcsin(a)</math>
 
|-
 
|-
| Arccosine||arccos(a)||
+
| Arccosine||arccos(a)||<math>\arccos(a)</math>
 
|-
 
|-
| Arctangent||arctan(a)||
+
| Arctangent||arctan(a)||<math>\arctan(a)</math>
 
|-
 
|-
| Arc cotangent||arccot(a)||
+
| Arc cotangent||arccot(a)||<math>\arccot(a)</math>
 
|-
 
|-
| n<sup>th</sup> root||nroot{a}{b}||
+
| n<sup>th</sup> root||nroot{a}{b}||<math>\sqrt[a]{b}</math>
 
|-
 
|-
| Hyperbolic sine||sinh(a)||
+
| Hyperbolic sine||sinh(a)||<math>\sinh(a)</math>
 
|-
 
|-
| Hyperbolic cosine||cosh(a)||
+
| Hyperbolic cosine||cosh(a)||<math>\cosh(a)</math>
 
|-
 
|-
| Hyperbolic tangent||tanh(a)||
+
| Hyperbolic tangent||tanh(a)||<math>\tanh(a)</math>
 
|-
 
|-
| Hyperbolic cotangent||coth(a)||
+
| Hyperbolic cotangent||coth(a)||<math>\coth(a)</math>
 
|-
 
|-
| Absolute value||abs{a}||
+
| Absolute value||abs{a}||<math>|\,a\,|</math>
 
|-
 
|-
| Arc hyperbolic sine||arsinh(a)||
+
| Arc hyperbolic sine||arsinh(a)||<math>\operatorname{arsinh}(a)</math>
 
|-
 
|-
| Arc hyperbolic cosine||arccosh(a)||
+
| Arc hyperbolic cosine||arcosh(a)||<math>\operatorname{arcosh}(a)</math>
 
|-
 
|-
| Arc hyperbolic tangent||arctanh(a)||
+
| Arc hyperbolic tangent||artanh(a)||<math>\operatorname{artanh}(a)</math>
 
|-
 
|-
| Arc hyperbolic cotangent||arccoth(a)||
+
| Arc hyperbolic cotangent||arcoth(a)||<math>\operatorname{arcoth}(a)</math>
 
|-
 
|-
| Factorial||fact{a}||
+
| Factorial||fact{a}||<math>a!\!\,</math>
 
|}
 
|}
 
 
  
 
== Operators ==
 
== Operators ==
Line 216: 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>\int_{r_0}^{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 224: Line 215:
 
| Triple integral||iiint{a}||<math>\iiint{a}</math>
 
| Triple integral||iiint{a}||<math>\iiint{a}</math>
 
|-
 
|-
| Lower bound shown with summation symbol||sum from{3}b||<math>\sum_3{a}</math>
+
| Lower bound shown with summation symbol||sum from{3}b||<math>\sum_3{b}\,\!</math>
 
|-
 
|-
 
| Contour integral||lint a||<math>\oint{a}</math>
 
| Contour integral||lint a||<math>\oint{a}</math>
 
|-
 
|-
| Double curved integral||llint a||
+
| Double curved integral||llint a||[[Image:Math_l2inta.png]]
 
|-
 
|-
| Triple curved integral||lllint a||
+
| Triple curved integral||lllint a||[[Image:Math_l3inta.png]]
 
|-
 
|-
 
| Product with range||prod from {i=1} to {n} {(i+1)}||<math>\prod_{i=1}^{n}{(i+1)}</math>
 
| Product with range||prod from {i=1} to {n} {(i+1)}||<math>\prod_{i=1}^{n}{(i+1)}</math>
 
|-
 
|-
 
|}
 
|}
 
 
 
  
 
== Attributes ==
 
== Attributes ==
Line 243: Line 231:
 
! Operation || Command || Display
 
! Operation || Command || Display
 
|-
 
|-
| Acute accent||acute a||á
+
| Acute accent||acute a||''á''
 
|-
 
|-
| Grave accent||grave a||à
+
| Grave accent||grave a||''à''
 
|-
 
|-
 
| Reverse circumflex||check a||<math>\check{a}</math>
 
| Reverse circumflex||check a||<math>\check{a}</math>
Line 251: Line 239:
 
| Breve||breve a||<math>\breve{a}</math>
 
| Breve||breve a||<math>\breve{a}</math>
 
|-
 
|-
| Circle||circle a||
+
| Circle||circle a||''å''
 
|-
 
|-
 
| Vector arrow||vec a||<math>\vec{a}</math>
 
| Vector arrow||vec a||<math>\vec{a}</math>
 
|-
 
|-
| Tilde||tilde a||ã
+
| Tilde||tilde a||''ã''
 
|-
 
|-
| Circumflex||hat a||â
+
| Circumflex||hat a||''â''
 
|-
 
|-
 
| Line above||bar a||<math>\bar{a}</math>
 
| Line above||bar a||<math>\bar{a}</math>
Line 263: Line 251:
 
| Dot||dot a||<math>\dot{a}</math>
 
| Dot||dot a||<math>\dot{a}</math>
 
|-
 
|-
| Wide vector arrow||widevec abc||
+
| Wide vector arrow||widevec abc||<math>\overrightarrow{a b c}</math>
 
|-
 
|-
| Wide tilde||widetilde abc||
+
| 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 275: Line 263:
 
| Line under||underline abc||<math>\underline{abc}</math>
 
| Line under||underline abc||<math>\underline{abc}</math>
 
|-
 
|-
| Line through||overstrike abc||
+
| Line through||overstrike abc||''<s>abc</s>''
 
|-
 
|-
| Triple dot||dddot a||
+
| Triple dot||dddot a||[[Image:Math_3dota.png]]
 
|-
 
|-
 
| Transparent (useful to get a placeholder of a given size)||phantom a||
 
| Transparent (useful to get a placeholder of a given size)||phantom a||
Line 283: Line 271:
 
| Bold font||bold a||<math>\bold{a}</math>
 
| Bold font||bold a||<math>\bold{a}</math>
 
|-
 
|-
| Italic font (see Note 1)||ital “a"||
+
| Italic font (see Note 1)||ital a||<math>\mathit{a}</math>
 
|-
 
|-
| Resize font||size 16 qv||
+
| Roman (non-italic) font||nitalic a OR "a"||<math>\mathrm{a}</math>
 
|-
 
|-
| Following item in sans serif font (see Note 2)||font sans qv||
+
| Resize font||size 16 qv||<span style="font-size:16pt">''qv''</span>
 
|-
 
|-
| Following item in serif font||font serif qv||
+
| Following item in sans serif font (see Note 2)||font sans qv||<span style="font-family:Arial, sans-serif">''qv''</span>
 
|-
 
|-
| Following item in fixed font||font fixed qv||
+
| Following item in serif font||font serif qv||''<math>\mathrm{q}\mathrm{v}</math>''
 
|-
 
|-
| Make color of following text cyan (see Note 3)||color cyan qv||
+
| Following item in fixed font||font fixed qv||''<tt>qv</tt>''
 
|-
 
|-
| Make color of following text yellow||color yellow qv||
+
| Make color of following text cyan (see Note 3)||color cyan qv||<math>\color{Cyan}qv</math>
 
|-
 
|-
| Make color of following text white||color white qv||
+
| Make color of following text yellow||color yellow qv||<math>\color{Yellow}qv</math>
 
|-
 
|-
| Make color of following text green||color green qv||
+
| Make color of following text white||color white qv||<math>\color{White}qv</math>
 
|-
 
|-
| Make color of following text blue||color blue qv||
+
| Make color of following text green||color green qv||<math>\color{Green}qv</math>
 
|-
 
|-
| Make color of following text red||color red qv||
+
| Make color of following text blue||color blue qv||<math>\color{Blue}qv</math>
 
|-
 
|-
| Make color green returns to default color black||color green X qv||
+
| Make color of following text red||color red qv||<math>\color{Red}qv</math>
 
|-
 
|-
| Brace items to change color of more than one item||color green {X qv}||
+
| Make color green returns to default color black||color green X qv||<math>{\color{Green}{X}} \ qv</math>
 +
|-
 +
| Brace items to change color of more than one item||color green {X qv}||<math>\color{Green}{X\ qv}</math>
 
|}
 
|}
  
Line 315: Line 305:
  
 
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.
 
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 ==
 
== Miscellaneous ==
Line 333: Line 320:
 
||For all||forall||<math>\forall</math>
 
||For all||forall||<math>\forall</math>
 
|-
 
|-
||H bar||hbar||
+
||H bar||hbar||<math>\hbar</math>
 
|-
 
|-
||Lambda bar||lambdabar||
+
||Lambda bar||lambdabar||[[Image:Math_lambdabar.png]]
 
|-
 
|-
 
||Real part||re||<math>\Re</math>
 
||Real part||re||<math>\Re</math>
Line 341: Line 328:
 
||Imaginary part||im||<math>\Im</math>
 
||Imaginary part||im||<math>\Im</math>
 
|-
 
|-
||Weierstrass p||wp||
+
||Weierstrass p||wp||<math>\wp</math>
 
|-
 
|-
 
||Left arrow||leftarrow||<math>\leftarrow</math>
 
||Left arrow||leftarrow||<math>\leftarrow</math>
Line 347: Line 334:
 
||Right arrow||rightarrow||<math>\rightarrow</math>
 
||Right arrow||rightarrow||<math>\rightarrow</math>
 
|-
 
|-
||Up arrow||uparrow||
+
||Up arrow||uparrow||<math>\uparrow</math>
 
|-
 
|-
||Down arrow||downarrow||
+
||Down arrow||downarrow||<math>\downarrow</math>
 
|-
 
|-
||Dots at bottom||dotslow||
+
||Dots at bottom||dotslow||<math>\ldots</math>
 
|-
 
|-
||Dots at middle||dotsaxis||
+
||Dots at middle||dotsaxis||<math>\cdots</math>
 
|-
 
|-
||Dots vertical||dotsvert||
+
||Dots vertical||dotsvert||<math>\vdots</math>
 
|-
 
|-
||Dots diagonal upward||dotsup||
+
||Dots diagonal upward||dotsup||[[Image:Math_dotsup.png]]
 
|-
 
|-
||Dots diagonal downward||dotsdown||
+
||Dots diagonal downward||dotsdown||<math>\ddots</math>
 
|-
 
|-
 
|}
 
|}
 
 
  
 
== Brackets ==
 
== Brackets ==
Line 369: Line 354:
 
! Operation || Command || Display
 
! Operation || Command || Display
 
|-
 
|-
||Round Brackets||(a)||(<i>a</i>)
+
||Round Brackets||(a)||<math>(a)</math>
 
|-
 
|-
||Square Brackets||[b]||[<i>b</i>]
+
||Square Brackets||[b]||<math>[b]</math>
 
|-
 
|-
||Double Square Brackets||ldbracket c rdbracket||
+
||Double Square Brackets||ldbracket c rdbracket||<math>[\![ c ]\!]</math>
 
|-
 
|-
||Single line||lline a rline||
+
||Single line||lline a rline OR abs a||<math>\vert a \vert</math>
 
|-
 
|-
||Double line||ldline a rdline||
+
||Double line||ldline a rdline||<math>\Vert a \Vert</math>
 
|-
 
|-
||Braces||lbrace w rbrace||{<i>w</i>}
+
||Braces||lbrace w rbrace||<math>\{w\}</math>
 
|-
 
|-
||Angle Brackets||langle d rangle||
+
||Braces||left lbrace stack{0, n <> 0 # 1, n = 1} right none|| [[Image:lbrace.png]]
 
|-
 
|-
||Operator Brackets||langle a mline b rangle||
+
||Angle Brackets||langle d rangle||<math>\langle d \rangle</math>
 
|-
 
|-
||Group brackets (used for program control)||{a}||
+
||Operator Brackets||langle a mline b rangle||<math>\langle a|b \rangle</math>
 
|-
 
|-
||Scalable round brackets (add the word "left" before a left bracket and "right" before a right bracket)||left ( stack{a # b # z} right )||
+
||Group brackets (used for program control)||{a}||<math>a</math>
 
|-
 
|-
||Square brackets scalable<br/>(as above)||left [ stack{ x # y} right ]||
+
||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>
 
|-
 
|-
||Double square brackets scalable||left ldbracket c right rdbracket||
+
||Square brackets scalable<br/>(as above)||left [ stack{ x # y} right ]||<math>\begin{bmatrix} x \\ y \end{bmatrix}</math>
 
|-
 
|-
||Line scalable||left lline a right rline||
+
||Double square brackets scalable||left ldbracket c right rdbracket||<math>[ \! [ c ] \! ]</math>
 
|-
 
|-
||Double line scalable||left ldline d right rdline||
+
||Line scalable||left lline a right rline||<math>\vert a \vert</math>
 
|-
 
|-
||Brace scalable||left lbrace e right rbrace||
+
||Double line scalable||left ldline d right rdline||<math>\Vert a \Vert</math>
 
|-
 
|-
||Angle bracket scalable||left langle f right rangle||
+
||Brace scalable||left lbrace e right rbrace||<math>\{ a \}</math>
 
|-
 
|-
||Operator brackets scalable||left langle g mline h right rangle||
+
||Angle bracket scalable||left langle f right rangle||<math>\langle f \rangle</math>
 
|-
 
|-
||Over brace scalable||{The brace is above} overbrace a||
+
||Operator brackets scalable||left langle g mline h right rangle||<math>\langle g|h \rangle</math>
 
|-
 
|-
||Under brace scalable||{the brace is below}underbrace {f}||
+
||Over brace scalable||{The brace is above} overbrace a||<math>\overbrace{}^{a}</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>
 
|-
 
|-
 
|}
 
|}
 
 
 
  
 
== Formats ==
 
== Formats ==
Line 420: 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\!a</math>
+
||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)}||
 +
{|
 
|-
 
|-
||Vertical stack of 2||binom{a}{b}||<math>\stackrel{a}{b}</math>
+
|align="right"|''Hello world<br>(a)''
 +
|}
 +
|-
 +
||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 444: 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||''&Alpha;''||%BETA||''&Beta;''||%CHI||''&Chi;''||%DELTA||''&Delta;''||%EPSILON||''&Epsilon;''
+
| %ALPHA||''&Alpha;''||%BETA||''&Beta;''||%GAMMA||''&Gamma;''||%DELTA||''&Delta;''||%EPSILON||''&Epsilon;''
 
|-
 
|-
| %ETA||''&Eta;''||%GAMMA||''&Gamma;''||%IOTA||''&Iota;''||%KAPPA||''&Kappa;''||%LAMBDA||''&Lambda;''
+
| %ZETA||''&Zeta;''||%ETA||''&Eta;''||%THETA||''&Theta;''||%IOTA||''&Iota;''||%KAPPA||''&Kappa;''
 
|-
 
|-
| %MU||''&Mu;''||%NU||''&Nu;''||%OMEGA||''&Omega;''||%OMICRON||''&Omicron;''||%PHI||''&Phi;''
+
| %LAMBDA||''&Lambda;''||%MU||''&Mu;''||%NU||''&Nu;''||%XI||''&Xi;''||%OMICRON||''&Omicron;''
 
|-
 
|-
| %PI||''&Pi;''||%PSI||''&Psi;''||%RHO||''&Rho;''||%SIGMA||''&Sigma;''||%THETA||''&Theta;''
+
| %PI||''&Pi;''||%RHO||''&Rho;''||%SIGMA||''&Sigma;''||%TAU||''&Tau;''||%UPSILON||''&Upsilon;''
 
|-
 
|-
| %UPSILON||''&Upsilon;''||%XI||''&Xi;''||%ZETA||''&Zeta;''||||||||
+
| %PHI||''&Phi;''||%CHI||''&Chi;''||%PSI||''&Psi;''||%OMEGA||''&Omega;''||||
 
|-
 
|-
| %alpha||''&alpha;''||%beta||''&beta;''||%chi||''&chi;''||%delta||''&delta;''||%epsilon||&epsilon;
+
| %alpha||''&alpha;''||%beta||''&beta;''||%gamma||''&gamma;''||%delta||''&delta;''||%epsilon||''&epsilon;''
 
|-
 
|-
| %eta||''&eta;''||%gamma||''&gamma;''||%iota||''&iota;''||%kappa||''&kappa;''||%lambda||''&lambda;''
+
| %varepsilon||<math>\varepsilon</math>||%zeta||''&zeta;''||%eta||''&eta;''||%theta||''&theta;''||%vartheta||<math>\vartheta</math>
 
|-
 
|-
| %mu||''&mu;''||%nu||''&nu;''||%omega||''&omega;''||%omicron||''&omicron;''||%phi||''&phi;''
+
| %iota||''&iota;''||%kappa||''&kappa;''||%lambda||''&lambda;''||%mu||''&mu;''||%nu||''&nu;''
 
|-
 
|-
| %pi||''&pi;''||%rho||''&rho;''||%sigma||''&sigma;''||%tau||''&tau;''||%theta||''&theta;''
+
| %xi||''&xi;''||%omicron||''&omicron;''||%pi||''&pi;''||%varpi||<math>\varpi</math>||%rho||''&rho;''
 
|-
 
|-
| %upsilon||''&upsilon;''||%varepsilon||<math>\varepsilon</math>||%varphi||<math>\varphi</math>||%varpi||<math>\varpi</math>||%varrho||<math>\varrho</math>
+
| %varrho||<math>\varrho</math>||%sigma||''&sigma;''||%varsigma||<math>\varsigma</math>||%tau||''&tau;''||%upsilon||''&upsilon;''
 
|-
 
|-
| %varsigma||<math>\varsigma</math>||%vartheta||<math>\vartheta</math>||%xi||''&xi;''||%zeta||''&zeta;''
+
| %phi||''&phi;''||%varphi||<math>\varphi</math>||%chi||''&chi;''||%psi||''&psi;''||%omega||''&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 ||%strictlylessthan ||%tendto  
+
| %perthousand '''&permil;''' || %strictlygreaterthan <math>\gg</math> ||%strictlylessthan <math>\ll</math> ||%tendto <math>\to\,\!</math>
 
|-
 
|-
 
|}
 
|}
Line 495: Line 493:
  
 
{{CCBY}}
 
{{CCBY}}
[[Category: Writer Guide (Documentation)]]
+
<noinclude>[[Category:Wiki Templates]]</noinclude>
[[Category:Documentation/Reference]]
+

Revision as of 07:14, 12 July 2018

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 ab
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").

Operation Command Display
Limit lim{a}
Sum sum{a}
Product prod{a}
Coproduct coprod{a}
Upper and lower bounds shown with integral int from {r_0} to {r_t} a
Integral int{a}
Double integral iint{a}
Triple integral iiint{a}
Lower bound shown with summation symbol sum from{3}b
Contour integral lint a
Double curved integral llint a Math l2inta.png
Triple curved integral lllint a Math l3inta.png
Product with range prod from {i=1} to {n} {(i+1)}

Attributes

Operation Command Display
Acute accent acute a á
Grave accent grave a à
Reverse circumflex check a
Breve breve a
Circle circle a å
Vector arrow vec a
Tilde tilde a ã
Circumflex hat a â
Line above bar a
Dot dot a
Wide vector arrow widevec abc
Wide tilde widetilde abc Math Widetilde.png
Wide circumflex widehat abc
Double dot ddot a
Line over overline abc
Line under underline abc
Line through overstrike abc abc
Triple dot dddot a Math 3dota.png
Transparent (useful to get a placeholder of a given size) phantom a
Bold font bold a
Italic font (see Note 1) ital a
Roman (non-italic) font nitalic a OR "a"
Resize font size 16 qv qv
Following item in sans serif font (see Note 2) font sans qv qv
Following item in serif font font serif qv
Following item in fixed font font fixed qv qv
Make color of following text cyan (see Note 3) color cyan qv
Make color of following text yellow color yellow qv
Make color of following text white color white qv
Make color of following text green color green qv
Make color of following text blue color blue qv
Make color of following text red color red qv
Make color green returns to default color black color green X qv
Brace items to change color of more than one item color green {X qv}

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

Operation Command Display
Infinity infinity
Partial partial
Nabla nabla
There exists exists
For all forall
H bar hbar
Lambda bar lambdabar Math lambdabar.png
Real part re
Imaginary part im
Weierstrass p wp
Left arrow leftarrow
Right arrow rightarrow
Up arrow uparrow
Down arrow downarrow
Dots at bottom dotslow
Dots at middle dotsaxis
Dots vertical dotsvert
Dots diagonal upward dotsup Math dotsup.png
Dots diagonal downward dotsdown

Brackets

Operation Command Display
Round Brackets (a)
Square Brackets [b]
Double Square Brackets ldbracket c rdbracket
Single line lline a rline OR abs a
Double line ldline a rdline
Braces lbrace w rbrace
Braces left lbrace stack{0, n <> 0 # 1, n = 1} right none Lbrace.png
Angle Brackets langle d rangle
Operator Brackets langle a mline b rangle
Group brackets (used for program control) {a}
Scalable round brackets (add the word "left" before a left bracket and "right" before a right bracket) left ( stack{a # b # z} right )
Square brackets scalable
(as above)
left [ stack{ x # y} right ]
Double square brackets scalable left ldbracket c right rdbracket
Line scalable left lline a right rline
Double line scalable left ldline d right rdline
Brace scalable left lbrace e right rbrace
Angle bracket scalable left langle f right rangle
Operator brackets scalable left langle g mline h right rangle
Over brace scalable {The brace is above} overbrace a
Under brace scalable {the brace is below}underbrace {f}
Floor Brackets lfloor a rfloor
Ceil Brackets lceil a rceil

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) }
Hello world
(a)
Align character to center stack{Hello world # alignc(a)}
Hello world
(a)
Align character to right stack { Hello world # alignr(a)}
Hello world
(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

Documentation caution.png 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).
Personal tools