Template:Brace2

From Wikisource
Jump to: navigation, search

\scriptstyle{

\left.

\begin{matrix}
\  
\end{matrix}

\right\}\, }

Documentation icon Template documentation[view] [edit] [history] [purge]


Usage[edit]

The template generates a variable height brace using LaTeX math markup. These are especially useful in tables where they are used to group items.

Parameters
  • 1: the height of the brace in lines (this is not necessarily the same as lines of text, you may need to tweak it). Optional, default: 1
  • 2: the direction of the brace ("up", "u", "down", "d", "left", "l", "right" or "r"). Optional, default: right.

Examples[edit]

Plain use[edit]

{{brace2|}}
{{brace2|2}}
{{brace2|4|r}}
{{brace2|1|l}}
{{brace2|3|l}}
{{brace2|1|u}}
{{brace2|6|u}}
{{brace2|1|d}}
{{brace2|6|d}}

\scriptstyle{

\left.

\begin{matrix}
\ \\ \ 
\end{matrix}

\right\}\, } \scriptstyle{

\left.

\begin{matrix}
\ \\ \\\ \\\ \ 
\end{matrix}

\right\}\, } \scriptstyle{

\left\{

\begin{matrix}
\  
\end{matrix}

\right. } \scriptstyle{

\left\{

\begin{matrix}
\ \\ \\\ \ 
\end{matrix}

\right. } \scriptstyle{

\overbrace{



} } \scriptstyle{

\overbrace{

\quad\quad\quad\quad\quad

} } \scriptstyle{

\underbrace{



} } \scriptstyle{

\underbrace{

\quad\quad\quad\quad\quad

} }

Formatting with tables[edit]

{|
| Item 1
| rowspan=2|{{brace2|2|r}}
|-
| Item 2
|}
Item 1 \scriptstyle{

\left.

\begin{matrix}
\ \\ \ 
\end{matrix}

\right\}\, }
Item 2

See also[edit]