LaTeX Latex Code for a Parenthesis ....

  • Thread starter Thread starter Math Amateur
  • Start date Start date
  • Tags Tags
    Code Latex
AI Thread Summary
To properly size parentheses in LaTeX, the commands \left and \right should be used, as demonstrated in the expression x = \frac{ \langle x, y \rangle }{ \mid \mid y \mid \mid^2} y + ( x - \frac{ \langle x, y \rangle }{ \mid \mid y \mid \mid^2} y ). For single-sized parentheses, the syntax \left(...\right. or \left. ...)\right) is recommended. Additionally, curly braces can be sized using \left\lbrace and \right\rbrace. Variants like \Big and \big can also be employed for parentheses that need to be larger than the default size. This discussion provides valuable insights into effectively using LaTeX for mathematical expressions.
Math Amateur
Gold Member
MHB
Messages
3,920
Reaction score
48
In a recent post on the Cauchy-Schwarz Inequality I wished to "size" the parentheses adequately in the expression $$x = \frac{ \langle x, y \rangle }{ \mid \mid y \mid \mid^2} y + ( x - \frac{ \langle x, y \rangle }{ \mid \mid y \mid \mid^2} y ) $$... ... but in order to use \left and \right I need to also use the Latex Code for ( and ) ... but what is the code for a left and right parenthesis ... ?Hope someone can help ...

Peter
 
Physics news on Phys.org
\left(...\right)

Example:

$$\left( x - \frac{ \langle x, y \rangle }{ \mid \mid y \mid \mid^2} y \right)$$

As a side note, for a single sized parenthesis use \left(...\right. or \left. ...)\right)

Examples:

$$\left(\frac12\right.$$

$$\left.\frac12\right)$$
 
greg1313 said:
\left(...\right)

Example:

$$\left( x - \frac{ \langle x, y \rangle }{ \mid \mid y \mid \mid^2} y \right)$$

As a side note, for a single sized parenthesis use \left(...\right. or \left. ...)\right)

Examples:

$$\left(\frac12\right.$$

$$\left.\frac12\right)$$
Thanks for your help greg1313 ...

It is much appreciated ...

Peter
 
Peter said:
Thanks for your help greg1313 ...

It is much appreciated ...

Peter

Also, for curly braces: \left\lbrace .. \right\rbrace

e.g. $ \left\lbrace\dfrac{\dfrac{a}{b}}{\dfrac{a}{b}} \right\rbrace$
 
Alternatively, we can use [M]\Big[/M] and [M]\big[/M] for parentheses that wouldn't otherwise scale:
$$\Big( \cos x + \cos \big( x+(k+1)\pi \big) \Big)$$
[latexs]\Big( \cos x + \cos \big( x+(k+1)\pi \big) \Big)[/latexs]

We can also use [M]\Big[/M] and [M]\big[/M] for a single bracket $\Big]$ that would also otherwise be too small:
$$\int_0^{2\pi} \cos x\,dx = \sin x \Big|_0^{2\pi}$$
[latexs]\int_0^{2\pi} \cos x\,dx = \sin x \Big|_0^{2\pi}[/latexs]

And there's more variants:
$$\big\{ \Big\{ \bigg\{ \Bigg\{$$
[latexs]\big\{ \Big\{ \bigg\{ \Bigg\{[/latexs]
 
Back
Top