This site is supported by donations to The OEIS Foundation.

Template:Underbrace/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Underbrace. [<Edit> Template:Underbrace]

[⧼Purge⧽ Template:Underbrace/doc]

alt = This template is under construction...
This template is under construction.            

Please do not use this unfinished and/or still unreliable template.            


The {{underbrace}} mathematical formatting template shows a brace under the first argument with an optional subscripted label in either HTML+CSS or LaTeX.

Usage

{{underbrace|underbraced expression|label = subscripted label|size = size|format}}

where

  • subscripted label is optional;
  • size is a positive real number ≥ 1 (default 1) (ignored with the tex option);

and where the optional format (last argument) is from

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

Examples

The code

{{indent}}{{math|{{underbrace|''a''|label = ''n''}}|&&}}

yields the display style HTML+CSS

     
a  
n

The code

{{indent}}{{math|{{underbrace|''a''|label = ''n''|tex}}|$$}}

yields the display style LaTeX

     

The code

{{indent}}{{math|{{underbrace|''a'' {{op|+}} ''a''|label = ''n''|size = 3}}|&&}}

yields the display style HTML+CSS

     
a + a  
n

The code

{{indent}}{{math|{{underbrace|''a'' {{op|+}} ''a''|label = ''n''|size = 3|tex}}|$$}}

yields the display style LaTeX

     

The code

{{indent}}{{math|{{underbrace|''a'' {{op|+}} ''a'' {{op|+}} {{...|cdots}} {{op|+}} ''a''|label = ''n''|size = 7}}|&&}}

yields the display style HTML+CSS

     
a + a + + a  
n

The code

: {{math|{{underbrace|''a'' {{op|+}} ''a'' {{op|+}} {{...|cdots|tex}} {{op|+}} ''a''|label {{=}} ''n''|size = 7|tex}}|$$}}

yields the display style LaTeX

The code

{{indent}}{{math|{{underbrace|''a'', ''b'', ''c'', ''d'', ''e'', ''f'', ''g'', ''h'', ''i'', ''j'', ''k'', ''l''
|label = first 12 letters|size = 13}}|&&}}

yields the display style HTML+CSS

     
a, b, c, d, e, f, g, h, i, j, k, l   
first 12 letters

The code

{{indent}}{{math|{{underbrace|''a'', ''b'', ''c'', ''d'', ''e'', ''f'', ''g'', ''h'', ''i'', ''j'', ''k'', ''l''
|label = \text{first 12 letters}|size = 13|tex}}|$$}}

yields the display style LaTeX

     

With both overbrace and underbrace

The code

{{indent}}{{math|
{{overbrace|''a'', ''b'', ''c'', ''d'', ''e'', ''f'', ''g'', ''h'', {{underbrace|''i'', ''j'', ''k''|label = 3 letters|size = 3}}, ''l''
|label = first 12 letters|size = 13}}
|&&}}

yields the display style HTML+CSS

     
first 12 letters
a, b, c, d, e, f, g, h,
i, j, k  
3 letters
, l   

The code

{{indent}}{{math|
{{overbrace|''a'', ''b'', ''c'', ''d'', ''e'', ''f'', ''g'', ''h'', {{underbrace|''i'', ''j'', ''k''|label = \text{3 letters}|size = 3|tex}}, ''l''
|label = \text{first 12 letters}|size = 13|tex}}
|$$}}

yields the display style LaTeX

     

The code

{{indent}}{{math|
{{overbrace
|''{{Greek|rho}}'' {{(|<!--
-->{{underbrace|{{frac|{{sym|partial}}{{sp|1}}{{vec|v|b}}|{{sym|partial}}''t''}}<!--
-->|label = Unsteady{{nl}}acceleration|size = 2}}<!--
--> {{op|+}} <!--
-->{{underbrace|{{vec|v|b}}{{op|sdot}}{{sym|nabla}}{{vec|v|b}}<!--
-->|label = Convective{{nl}}acceleration|size = 4}}<!--
-->|)|Bigg}}<!--
-->|label = Inertia|size = 11}} {{=}} <!--
-->{{underbrace|{{op|-}}{{sym|nabla}}''p''<!--
-->|label = Pressure{{nl}}gradient|size = 3.25}}<!--
--> {{op|+}} <!--
-->{{underbrace|''{{Greek|mu}}''{{sym|nabla}}{{^|2}}{{sp|1}}{{vec|v|b}}<!--
-->|label = Viscosity|size = 3.65}}<!--
--> {{op|+}} <!--
-->{{underbrace|{{vec|f|b}}<!--
-->|label = Other{{nl}}forces|size = 1}}
|&&}}

yields the display style HTML+CSS

     
Error: String exceeds 10,000 character limit.

The code

{{indent}}{{math|
{{overbrace
|''{{Greek|rho|tex}}'' {{(|<!--
-->{{underbrace|{{frac|{{sym|partial|tex}}{{sp|1|tex}}{{vec|v|b|tex}}|{{sym|partial|tex}}''t''|tex}}<!--
-->|label = \stackrel{\scriptstyle \rm Unsteady}{\rm acceleration}|size = 2|tex}}<!--
--> {{op|+}} <!--
-->{{underbrace|{{vec|v|b|tex}}{{op|sdot|tex}}{{sym|nabla|tex}}{{vec|v|b|tex}}<!--
-->|label = \stackrel{\scriptstyle \rm Convective}{\rm acceleration}|size = 4|tex}}<!--
-->|)|Bigg|tex}}<!--
-->|label = \text{Inertia}|size = 11|tex}} {{=}} <!--
-->{{underbrace|{{op|-}}{{sym|nabla|tex}}''p''<!--
-->|label = \stackrel{\scriptstyle \rm Pressure}{\rm gradient}|size = 3.25|tex}}<!--
--> {{op|+}} <!--
-->{{underbrace|''{{Greek|mu|tex}}''{{sym|nabla|tex}}{{^|2|tex}}{{sp|1|tex}}{{vec|v|b|tex}}<!--
-->|label = {\rm Viscosity}|size = 3.65|tex}}<!--
--> {{op|+}} <!--
-->{{underbrace|{{vec|f|b|tex}}<!--
-->|label = \stackrel{\scriptstyle \rm Other}{\rm forces}|size = 1|tex}}
|$$}}

yields the display style LaTeX

     

The code

{{indent}}{{math|
{{overbrace|<span style{{=}}"height: 0px; visibility: collapse;">neutrons + protons</span>|label = nucleons|size = 9.5}}{{clear}}
neutrons + {{underbrace|protons + electrons|label = charged|size = 9.5}}
|&&}}

yields the display style HTML+CSS

     
nucleons
neutrons + protons  

neutrons +
 protons + electrons  
charged

See also