Feed on
Posts
Comments

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.


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

9 Responses to “how to add single-sided brackets in latex”

  1. on 21 Apr 2006 at 7:20 pm M.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.

  2. on 25 Apr 2006 at 3:12 pm Peter I.

    Thanks very much for the “right.” tip…exactly what I needed!

  3. on 05 Apr 2007 at 7:38 am Steffen

    The 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.

  4. on 08 Aug 2007 at 11:37 am Lynn

    You’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!

  5. on 08 Aug 2007 at 11:51 am Lawrence David

    thanks for that sweet tip lynn!

  6. on 02 Sep 2009 at 12:10 am The Mom, PhD

    This is just what I’ve been looking for. Thanks for the tip!

  7. on 21 Feb 2011 at 8:19 am episanty

    @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]

  8. on 18 Mar 2011 at 3:17 pm texluv

    The \bigr( and \bigl) work great, exactly what I was looking for, thanks!

  9. on 28 Jul 2011 at 11:16 am chami

    Thanks

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.