This site is supported by donations to The OEIS Foundation.

Template:Underoverset

From OeisWiki
(Redirected from Template:Underover)
Jump to: navigation, search

The {{underover}} mathematical formatting template is used to get an HTML+CSS or a LaTeX formatted underset text and overset text centered under and over the base text.

Usage

{{underover|base text|underset text|overset text}}

or

{{underover|base text|underset text|overset text|format}}

where format is either

  • htm: HTML+CSS markup (default);
  • tex: LaTeX markup.

Examples

The code

: before {{underover|base text|underscript|overscript}} after

yields the text style HTML+CSS

before after

The code

: before {{math|{{underover|\text{base text}|\text{underscript}|\text{overscript}|tex}}|$}} after

yields the text style LaTeX

before after

The code

{{indent}}{{math|{{underover|lim|<span style{{=}}"margin: 0; padding: 0;">''n''{{sp|1}}{{-)|to}}{{sp|1}}<span style{{=}}"font-size: 1.1em; margin: -0.1em;">{{sym|infty}}</span></span>|<span style{{=}}"visibility: hidden;">''n''{{sp|1}}{{-)|to}}{{sp|1}}<span style{{=}}"font-size: 1.1em;">{{sym|infty}}</span></span>|nopadding = yes}}{{sp|3}}1 {{op|+}} {{frac|1|''n''}} {{=}} 1.|&&}}

yields the display style HTML+CSS

     
 1 +
1
n
= 1.

The code

{{indent}}{{math|{{underover|\operatorname{lim}|''n'' {{-)|to|tex}} {{sym|infty|tex}}||tex}} \, 1 + {{frac|1|''n''|tex}} {{=}} 1.|$$}}

yields the display style LaTeX

     

Examples of summations

The code

{{indent}}before {{math|{{underover|<span style{{=}}"font-size: 1.25em;">{{sym|sum}}</span>|''i''{{sp|1}}{{=}}1|''n''|bigop|nopadding = yes}} ''i''{{^|3}}|&}} after

yields the text style HTML+CSS

     before 
n
i =1
i 3
after

The code

{{indent}}before {{math|{{underover|{{sym|sum|tex}}|''i''{{=}}1|''n''|bigop|tex}} \, ''i''{{^|3|tex}}|$}} after 

yields the text style LaTeX

     before after

The code

{{indent}}{{math|{{underover|<span style{{=}}"font-size: 1.45em;">{{sym|sum}}</span>|''i''{{sp|1}}{{=}}1|''n''|bigop|HTM|nopadding = yes}} ''i''{{^|3}}|&&}} 

yields the display style HTML+CSS

     
n
i =1
i 3

The code

{{indent}}{{math|{{underover|{{sym|sum|tex}}|''i''{{=}}1|''n''|bigop|TEX}} \, ''i''{{^|3|tex}}|$$}}

yields the display style LaTeX

     

Examples of products

The code

{{indent}}before {{math|{{underover|<span style{{=}}"font-size: 1.25em;">{{sym|prod}}</span>|''i''{{sp|1}}{{=}}1|''n''|bigop|nopadding = yes}} ''i''{{^|3}}|&}} after

yields the text style HTML+CSS

     before 
n
i =1
i 3
after

The code

{{indent}}before {{math|{{underover|{{sym|prod|tex}}|''i''{{=}}1|''n''|bigop|tex}} \, ''i''{{^|3|tex}}|$}} after 

yields the text style LaTeX

     before after

The code

{{indent}}{{math|{{underover|<span style{{=}}"font-size: 1.45em;">{{sym|prod}}</span>|''i''{{sp|1}}{{=}}1|''n''|bigop|HTM|nopadding = yes}} ''i''{{^|3}}|&&}} 

yields the display style HTML+CSS

     
n
i =1
i 3

The code

{{indent}}{{math|{{underover|{{sym|prod|tex}}|''i''{{=}}1|''n''|bigop|TEX}} \, ''i''{{^|3|tex}}|$$}}

yields the display style LaTeX

     

Examples of integrals

The code

{{indent}}before {{math|<span style{{=}}"vertical-align: 0.3ex; {{transform-scale|0.75|0.75}}">{{underover|<span style{{=}}"font-size: 1.75em; {{transform-rotate|8}} vertical-align: -0.55ex;">{{sym|int}}</span>|{{sp|-9}}0|{{sp|9}}1|bigop}}</span>{{sp|3}}''x''{{^|3}}{{sp|3}}{{d|''x''}}|&}} after 

yields the text style HTML+CSS

     before 
 1
0
x 3dx
after

The code

{{indent}}before {{math|{{underover|{{sym|int|tex}}|0|1|bigop|tex}} ''x''{{^|3|tex}} {{d|''x''|tex}}|$}} after

yields the text style LaTeX

     before after

The code

{{indent}}{{math|<span style{{=}}"vertical-align: 0.5ex;">{{underover|<span style{{=}}"font-size: 1.75em; {{transform-rotate|8}} vertical-align: -0.6ex;">{{sym|int}}</span>|{{sp|-9}}0|{{sp|9}}1|bigop|HTM}}</span>{{sp|3}}''x''{{^|3}}{{sp|3}}{{d|''x''}}|&&}} 

yields the display style HTML+CSS

     
 1
0
x 3dx

The code

{{indent}}{{math|{{underover|{{sym|int|tex}}|0|1|bigop|TEX}} ''x''{{^|3|tex}} {{d|''x''|tex}}|$$}}

yields the display style LaTeX

     

The code

{{indent}}before {{math|<span style{{=}}"vertical-align: 0.3ex; {{transform-scale|0.75|0.75}}">{{underover|<span style{{=}}"font-size: 1.75em; {{transform-rotate|8}} vertical-align: -0.25ex;">{{sym|oint}}</span>|{{sp|-9}}0|{{sp|9}}1|bigop}}</span>{{sp|1}}''x''{{^|3}}{{sp|3}}{{d|''x''}}|&}} after

yields the text style HTML+CSS

     before 
 1
0
x 3dx
after

The code

{{indent}}before {{math|{{underover|{{sym|oint|tex}}|0|1|bigop|tex}} ''x''{{^|3|tex}} {{d|''x''|tex}}|$}} after

yields the text style LaTeX

     before after

The code

{{indent}}{{math|<span style{{=}}"vertical-align: 0.3ex;">{{underover|<span style{{=}}"font-size: 1.75em; {{transform-rotate|8}} vertical-align: -0.25ex;">{{sym|oint}}</span>|{{sp|-9}}0|{{sp|9}}1|bigop|HTM}}</span>{{sp|3}}''x''{{^|3}}{{sp|3}}{{d|''x''}}|&&}}

yields the display style HTML+CSS

     
 1
0
x 3dx

The code

{{indent}}{{math|{{underover|{{sym|oint|tex}}|0|1|bigop|TEX}} ''x''{{^|3|tex}} {{d|''x''|tex}}|$$}}

yields the display style LaTeX

     

See also