## how to add single-sided brackets in latex

March 29th, 2006 by Lawrence David

to produce the above equation, use the following code:

\begin{split}

\arg\max_\Theta\left[\sum_zP(\mathcal{G}|\mathcal{D},\mathcal{S})

P(\mathcal{G}|\mathcal{S},\Theta_n)\log{P(\mathcal{D}|\mathcal{G},

\mathcal{S},\Theta)}\right. \ +

\left.\sum_zP(\mathcal{G}|\mathcal{D},\mathcal{S})P(\mathcal{G}|

\mathcal{S},\Theta_n)\log{P(\mathcal{D}|\mathcal{G},\mathcal{S},\Theta)}\right]

\end{split}

note that to produce the single-sided brackets, you need to add empty \left and \right brackets, which can be done by inserting periods following the \left or \right statement.

on 21 Apr 2006 at 7:20 pmM.E.B.I gleaned the “right.” idea from your post which solved my problem of adding single-sided curly brackets into a LaTeX document I’m working on. Thanks.

on 25 Apr 2006 at 3:12 pmPeter I.Thanks very much for the “right.” tip…exactly what I needed!

on 05 Apr 2007 at 7:38 amSteffenThe problem with this is that if you have an equation in which the second line does not include any large signs (like the large sigma in your case), this method will not work: The \right] will scale according to space used on the current line. E.g. if one (which I recently had) a really long integrand, this will not work. Im very interested to hear some kind of solution to this.

on 08 Aug 2007 at 11:37 amLynnYou’ve all probably figured this out by now, but I was just struggling with the same problem and figured I’d add my 2 cents.

In order to get your brackets scaled properly you could try using \bigr], \Bigr], \biggr] or \Biggr] and choose the size that looks best.

Cheers!

on 08 Aug 2007 at 11:51 amLawrence Davidthanks for that sweet tip lynn!

on 02 Sep 2009 at 12:10 amThe Mom, PhDThis is just what I’ve been looking for. Thanks for the tip!

on 21 Feb 2011 at 8:19 amepisanty@Steffen:

one way to force the second line \right] to scale to the same size as the \left[ on the first line is to include somewhere on the second line a \vphantom{} with your largest command inside it, say

\vphantom{\sum_i^\infty}\right]

on 18 Mar 2011 at 3:17 pmtexluvThe \bigr( and \bigl) work great, exactly what I was looking for, thanks!

on 28 Jul 2011 at 11:16 amchamiThanks