Difference between revisions of "Template:Intmath/sandbox"
Jump to navigation
Jump to search
imported>Renamed user mou89p43twvqcvm8ut9w3 |
imported>Renamed user mou89p43twvqcvm8ut9w3 (fix orphaning) |
||
| Line 6: | Line 6: | ||
--><span style{{=}}"vertical-align: -0.075em; font-style: italic; font-size: 1.4em; line-height: 0.715em; height: 0.715em; margin-top: -1.0em; padding-top: 0; margin-right: -0.15em;"><!-- | --><span style{{=}}"vertical-align: -0.075em; font-style: italic; font-size: 1.4em; line-height: 0.715em; height: 0.715em; margin-top: -1.0em; padding-top: 0; margin-right: -0.15em;"><!-- | ||
-->{{#switch: {{{1|int}}} | -->{{#switch: {{{1|int}}} | ||
| − | | iint = | + | | iint = ∬ |
| − | | iiint = | + | | iiint = ∭ |
| − | | iiiint = | + | | iiiint = ⨌ |
| − | | oint = | + | | oint = ∮ |
| − | | varointclockwise = | + | | varointclockwise = ∲ |
| − | | ointctrclockwise = | + | | ointctrclockwise = ∳ |
| − | | oiint = | + | | oiint = ∯ |
| − | | oiiint = | + | | oiiint = ∰ |
}}<!-- | }}<!-- | ||
--></span><!-- | --></span><!-- | ||
| Line 33: | Line 33: | ||
--><span style{{=}}"display: inline-block; position: relative; line-height: 0.715em; height: 0.715em; margin-top: -1.0em; padding: 0; font-size: {{#ifeq: {{{4|}}} |tiny|0.75|1.0}}em; {{#ifeq: {{{4|}}} |tiny|vertical-align: 0.3em;}}"><!-- | --><span style{{=}}"display: inline-block; position: relative; line-height: 0.715em; height: 0.715em; margin-top: -1.0em; padding: 0; font-size: {{#ifeq: {{{4|}}} |tiny|0.75|1.0}}em; {{#ifeq: {{{4|}}} |tiny|vertical-align: 0.3em;}}"><!-- | ||
--><span style{{=}}"display: inline-block; vertical-align: -0.11em; line-height: 0.715em; height: 0.715em; padding-top: 0; margin-right: -0.15em;"><!-- | --><span style{{=}}"display: inline-block; vertical-align: -0.11em; line-height: 0.715em; height: 0.715em; padding-top: 0; margin-right: -0.15em;"><!-- | ||
| − | --><span style{{=}}"font-size: 1.4em; line-height: 0.715em; height: 0.715em; {{transform-rotate|18.5}} vertical-align: -0.13em; margin-top: -1.0em; padding-top: 0; margin-right: -0.25em;"> | + | --><span style{{=}}"font-size: 1.4em; line-height: 0.715em; height: 0.715em; {{transform-rotate|18.5}} vertical-align: -0.13em; margin-top: -1.0em; padding-top: 0; margin-right: -0.25em;">∫</span><!-- |
-->{{su | -->{{su | ||
| b = <span style{{=}}"vertical-align: 0.0em; font-size: 0.9em; margin-left: 0.3em;">{{{2|}}}</span> | | b = <span style{{=}}"vertical-align: 0.0em; font-size: 0.9em; margin-left: 0.3em;">{{{2|}}}</span> | ||
| Line 46: | Line 46: | ||
| #default = <!-- | | #default = <!-- | ||
--><span style{{=}}"display: inline-block; position: relative; font-size: {{#ifeq: {{{4|}}} |tiny|0.75|1.0}}em; {{#ifeq: {{{4|}}} |tiny|vertical-align: 0.3em;}} line-height: 0.715em; height: 0.715em; margin-top: -1.0em; padding: 0;"><!-- | --><span style{{=}}"display: inline-block; position: relative; font-size: {{#ifeq: {{{4|}}} |tiny|0.75|1.0}}em; {{#ifeq: {{{4|}}} |tiny|vertical-align: 0.3em;}} line-height: 0.715em; height: 0.715em; margin-top: -1.0em; padding: 0;"><!-- | ||
| − | --><span style{{=}}"vertical-align: -0.15em; font-style: italic; font-size: 1.35em; margin-right: -0.06em;"> | + | --><span style{{=}}"vertical-align: -0.15em; font-style: italic; font-size: 1.35em; margin-right: -0.06em;">∫</span><!-- |
-->{{su | -->{{su | ||
| b = <span style{{=}}"vertical-align: -0.1em; font-size: 0.9em; margin-left: 0.1em;">{{{2|}}}</span> | | b = <span style{{=}}"vertical-align: -0.1em; font-size: 0.9em; margin-left: 0.1em;">{{{2|}}}</span> | ||
Latest revision as of 08:36, 30 April 2016
| This is the template sandbox page for Template:Intmath (diff). See also the companion subpage for test cases. |
This template generates integral symbols using unicode, for inline {{math}} formulae as an alternative to LaTeX generated in <math>.
Parameters
The template has three parameters, applicable one by one:
- Integral sign: Choose one of:
- int for ∫ symbol is U+222B
- iint for ∬ (double integral, U+222C),
- iiint for ∭ (triple integral, U+222D),
- oint for ∮ (contour integral, U+222E),
- varointclockwise for ∲ (clockwise contour integral, U+2232)
- ointctrclockwise for ∳ (anticlockwise contour integral, U+2233),
- oiint for ∯ (closed surface integral, U+222F),
- oiiint for ∰ (closed volume integral, U+2230).
- Subscript: Enter the subscript (symbol or short expression), for the lower limit or denoting an n-dimensional space or the (n − 1)- dimensional boundary.
- Superscript: Enter the superscript (symbol or short expression) for the upper limit.
NB:
- Applying
font-style: italic;orfont-style: oblique;to the integral symbol has no effect in Firefox, it remains upright. E.g.<span style="font-style: italic;">∫</span>yields ∫;<span style="font-style: oblique;">∫</span>yields ∫.
- This template already includes {{su}}.
Examples
No {{math}}
- Γ(z) = ∫∞
0 e−ttz − 1dt
Γ(''z'') = {{intmath|int|0|∞}} ''e''<sup>−''t''</sup>''t''<sup>''z'' − 1</sup>''dt''
- ∲
C F(x) ∙ dx = −∳
C F(x) ∙ dx
{{intmath|varointclockwise|''C''}} ''F''('''x''') ∙ ''d'''''x''' = −{{intmath|ointctrclockwise|''C''}} ''F''('''x''') ∙ ''d'''''x'''
- ∯
∂V E ∙ dS = Template:Sfrac∭
V ρ dV
- ∯
∂V B ∙ dS = 0
- ∮
∂S E ∙ dx = −∬
S Template:Sfrac ∙ dS
- ∮
∂S B ∙ dx = ∬
S (μ0J + Template:SfracTemplate:Sfrac) ∙ dS
{{intmath|oiint|∂''V''}} '''E''' ∙ ''d'''''S''' = {{sfrac|1|''ε''<sub>0</sub>}}{{intmath|iiint|''V''}} ''ρ'' ''dV''
{{intmath|oiint|∂''V''}} '''B''' ∙ ''d'''''S''' = 0
{{intmath|oint|∂''S''}} '''E''' ∙ ''d'''''x''' = −{{intmath|iint|''S''}} {{sfrac|∂'''B'''|∂''t''}} ∙ ''d'''''S'''
{{intmath|oint|∂''S''}} '''B''' ∙ ''d'''''x''' = {{intmath|iint|''S''}} (''μ''<sub>0</sub>'''J''' + {{sfrac|1|''c''<sup>2</sup>}}{{sfrac|∂'''E'''|∂''t''}}) ∙ ''d'''''S'''
{{math}}
- Γ(z) = ∫∞
0 e−ttz − 1dt
{{math|Γ(''z'') {{=}} {{intmath|int|0|∞}} ''e''<sup>−''t''</sup>''t''<sup>''z'' − 1</sup>''dt''}}
- ∲
CF(x) ∙ dx = −∳
C F(x) ∙ dx
{{math|{{intmath|varointclockwise|''C''}} ''F''('''x''') ∙ ''d'''''x''' {{=}} −{{intmath|ointctrclockwise|''C''}} ''F''('''x''') ∙ ''d'''''x'''}}
- ∯
∂V E ∙ dS = Template:Sfrac∭
V ρ dV
- ∯
∂V B ∙ dS = 0
- ∮
∂S E ∙ dx = −∬
S Template:Sfrac ∙ dS
- ∮
∂S B ∙ dx = ∬
S (μ0J + Template:SfracTemplate:Sfrac) ∙ dS
{{math|{{intmath|oiint|∂''V''}} '''E''' ∙ ''d'''''S''' {{=}} {{sfrac|1|''ε''<sub>0</sub>}}{{intmath|iiint|''V''}} ''ρ'' ''dV''}}
{{math|{{intmath|oiint|∂''V''}} '''B''' ∙ ''d'''''S''' {{=}} 0}}
{{math|{{intmath|oint|∂''S''}} '''E''' ∙ ''d'''''x''' {{=}} −{{intmath|iint|''S''}} {{sfrac|∂'''B'''|∂''t''}} ∙ ''d'''''S'''}}
{{math|{{intmath|oint|∂''S''}} '''B''' ∙ ''d'''''x''' {{=}} {{intmath|iint|''S''}} (''μ''<sub>0</sub>'''J''' + {{sfrac|1|''c''<sup>2</sup>}}{{sfrac|∂'''E'''|∂''t''}}) ∙ ''d'''''S'''}}
See also
- {{Intorient}}
- {{oiiint}}
- {{oiint}}
- Wikipedia:Rendering math
| The above documentation is transcluded from Template:Intmath/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |