This template is under construction.
Please do not use this unfinished and/or still unreliable template.
The {{parenthesis}} template ({{paren}} for short) makes large left or right parentheses in HTML+CSS or LaTeX and is used by the {{(|...|)}} template to parenthesize expressions in HTML+CSS or LaTeX. The {{parenthesis}} template uses the {{parenthesis/glyph}} helper template ({{paren/glyph}} for short).
Usage
-
{{parenthesis|type|format}}
or
-
{{paren|type|format}}
or
-
{{paren|type}}
where the first argument (type
) is from
-
l
: (
-
r
: )
-
big l
: corresponds to \big(
in LaTeX;
-
big r
: corresponds to \big)
in LaTeX;
-
Big l
: corresponds to \Big(
in LaTeX;
-
Big r
: corresponds to \Big)
in LaTeX;
-
bigg l
: corresponds to \bigg(
in LaTeX;
-
bigg r
: corresponds to \bigg)
in LaTeX;
-
Bigg l
: corresponds to \Bigg(
in LaTeX;
-
Bigg r
: corresponds to \Bigg)
in LaTeX;
-
L
or left
: corresponds to \left(
in LaTeX;
-
R
or right
: corresponds to \right)
in LaTeX;
and the [optional] second argument (format
) is from
-
htm
: HTML+CSS (default);
-
tex
: LaTeX.
Tests
The code
{{indent}}{{math|
{{paren|l}}{{sp|1}}{{frac|''x''{{^|2}} {{op|+}} 1|''x''{{^|2}} {{op|-}} 1}}{{sp|1}}{{paren|r}}{{^|''k''}},
{{paren|big l}}{{sp|2}}{{frac|''x''{{^|2}} {{op|+}} 1|''x''{{^|2}} {{op|-}} 1}}{{sp|2}}{{paren|big r}}{{^|''k''}},
{{paren|Big l}}{{sp|2}}{{frac|''x''{{^|2}} {{op|+}} 1|''x''{{^|2}} {{op|-}} 1}}{{sp|2}}{{paren|Big r}}{{^|''k''}},
{{paren|bigg l}}{{sp|3}}{{frac|''x''{{^|2}} {{op|+}} 1|''x''{{^|2}} {{op|-}} 1}}{{sp|3}}{{paren|bigg r}}{{^|''k''}},
{{paren|Bigg l}}{{sp|4}}{{frac|''x''{{^|2}} {{op|+}} 1|''x''{{^|2}} {{op|-}} 1}}{{sp|4}}{{paren|Bigg r}}{{^|''k''}}.
|&&}}
yields the display style HTML+CSS (TODO: raise exponent automatically or manually?)
The code
{{indent}}{{math|
{{paren|l|tex}}{{frac|''x''{{^|2|tex}} {{op|+}} 1|''x''{{^|2|tex}} {{op|-}} 1|tex}}{{paren|r|tex}}{{^|''k''|tex}},
{{paren|big l|tex}}{{frac|''x''{{^|2|tex}} {{op|+}} 1|''x''{{^|2|tex}} {{op|-}} 1|tex}}{{paren|big r|tex}}{{^|''k''|tex}},
{{paren|Big l|tex}}{{frac|''x''{{^|2|tex}} {{op|+}} 1|''x''{{^|2|tex}} {{op|-}} 1|tex}}{{paren|Big r|tex}}{{^|''k''|tex}},
{{paren|bigg l|tex}}{{frac|''x''{{^|2|tex}} {{op|+}} 1|''x''{{^|2|tex}} {{op|-}} 1|tex}}{{paren|bigg r|tex}}{{^|''k''|tex}},
{{paren|Bigg l|tex}}{{frac|''x''{{^|2|tex}} {{op|+}} 1|''x''{{^|2|tex}} {{op|-}} 1|tex}}{{paren|Bigg r|tex}}{{^|''k''|tex}}.
|$$}}
yields the display style LaTeX
Examples
The code (using the {{(|...|)}} template, which uses this template)
: before {{math|{{tfrac|[[Totient function|''{{Gr|phi}}''{{sp|1}}(''n'')]]|''n''}} {{=}} {{prod|''i''{{=}}1|''{{Gr|omega}}''{{sp|1}}(''n'')}} {{(|{{sp|-1}}1 {{op|-}} {{tfrac|1|''p''{{sub|''i''}}}}|)|big}}.
| tex = \frac{\phi(n)}{n} \,=\, \prod_{i = 1}^{\omega(n)} \left( 1 - \frac{1}{p_i} \right).
|&}} after
yields the text style HTML+CSS
- before after
and with the $$
option, yields the text style LaTeX
- before after
The code (using the {{(|...|)}} template, which uses this template)
{{indent}}{{math| {{sum|''k''{{=}}1|infty| {{(| {{frac|16|5}} |)|Big}}{{^|{{^|''k''|100%}}}} |HTM}} |&&}}
yields the display style HTML+CSS
The code (using the {{(|...|)}} template, which uses this template)
{{indent}}{{math| {{sum|''k''{{=}}1|infty| {{(| {{frac|16|5|tex}} |)|Big|tex}}{{^|''k''|tex}} |TEX}} |$$}}
yields the display style LaTeX
See also