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.
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.
Thanks very much for the “right.” tip…exactly what I needed!
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.
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!
thanks for that sweet tip lynn!
This is just what I’ve been looking for. Thanks for the tip!
@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]
The \bigr( and \bigl) work great, exactly what I was looking for, thanks!
Thanks
rise cannabis dispensary near me hiring
how to add single-sided brackets in latex » from the desk of stinkpot
cannabis flower essential oil
how to add single-sided brackets in latex » from the desk of stinkpot