This site is supported by donations to The OEIS Foundation.

Template:Overbrace

From OeisWiki
Jump to: navigation, search

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

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


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

Usage

{{overbrace|overbraced expression|label = superscripted label|size = size|format}}

where

  • superscripted 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|{{overbrace|''a''|label = ''n''}}|&&}}

yields the display style HTML+CSS

     
n
a  

The code

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

yields the display style LaTeX

     

The code

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

yields the display style HTML+CSS

     
n
a + a  

The code

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

yields the display style LaTeX

     

The code

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

yields the display style HTML+CSS

     
n
a + a + + a  

The code

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

yields the display style LaTeX

The code

{{indent}}{{math|{{overbrace|''a'', ''b'', ''c'', ''d'', ''e'', ''f'', ''g'', ''h'', ''i'', ''j'', ''k'', ''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, l   

The code

{{indent}}{{math|{{overbrace|''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

     

See also