Senin, 08 Juli 2024

Latex Bracket

For our purposes, “brackets” refers to (parentheses), [square brackets], {curly brackets}, and ⟨angle brackets⟩, as well as |vertical bars or pipes| and ||double pipes||.

Use the \left and \right commands to create brackets that will resize themselves to match what they surround.

See the following table to learn how to write all the different kinds of brackets.

Brackets in LaTeX
Bracket LaTeX Markup Rendered
(Parentheses) (a-b)
[Square brackets] [a-b]
{Curly brackets} \{a-b\}
⟨Angle brackets⟩ \langle a-b \rangle
|Vertical bars or pipes| |a-b|
||Double pipes|| \|a-b\|

NOTES: 

  • For curly brackets { } and double pipes add backslash \ to escape each character.
  • For \langle and \rangle is type in math mode.

Dynamic Brackets in LaTeX
Bracket LaTeX Markup Rendered
(Parentheses) \left(\dfrac{a}{b}\right) (ab)
[Square brackets] \left[\dfrac{a}{b}\right] [ab]
{Curly brackets} \left\{\dfrac{a}{b}\right\} {ab}
⟨Angle brackets⟩ \left\langle\dfrac{a}{b}\right\rangle ab
|Vertical bars or pipes| \left|\dfrac{a}{b}\right| |ab|
||Double pipes|| \left\|\dfrac{a}{b}\right\| ab

NOTES: 

to write \dfrac you must type \usepackage{amsmath} in Latex preamble, before \begin{document} syntax.

to learn Latex symbol, The Most Common Symbol In Latex >

Related Post

Latex Text Mode Symbol ( reference )

Tidak ada komentar:

Posting Komentar