How to insert adjustable open interval (a, b) in LaTeX?

SymbolOpen interval
Type of symbolMathematics
Package (requirement)No
ArgumentYes
Latex command\left(arg1,arg2\right)
Example\left(arg1,arg2\right) → (arg1,arg2)

Use parenthesis for open interval in LaTeX

You can use the keyboard parenthesis key Shift + (, ) to type open interval in a latex document.

\documentclass{article}
\begin{document}
    \[ (a , \; b) \]
    \[ (x_1 , \; x_2) \]
    \[ (\frac{1}{x_2} , \frac{1}{x_1}) \]
\end{document}

Output :

Use open interval in latex.

Use adjusting parenthesis with expression

In the above quote, you will see that the size of the parenthesis is not adjusting properly when using fractions at open intervals.

In this case, you need to use the \left(arg1,arg2\right) command by which the size of the parenthesis will be automatically adjusted as the size of the fraction.

\documentclass{article}
\begin{document}
    \[ \left(\frac{1}{x_2} , \frac{1}{x_1}\right) \]
    \[ \left(\frac{1}{a_2} , \frac{1}{b_1}\right) \]
\end{document}

Output :

Use open interval with auto adjust parenthesis in latex.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top