Text FormattingHow do use big brace in bmatrix?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

How do use big brace in bmatrix?

Post by casperyc »

what i want
what i want
go.jpg (44.74 KiB) Viewed 5655 times
As shown in picture, that's what I want.

Code: Select all

\[
        \begin{bmatrix}
                \phi \\
                \tau_3 \\
                \vdots \\
                \tau_K \\
                -
                \left\{
                        \mu
                        +
                        \sum\limits_{c=2}^C w_c\eta_c
                \right\} \\
                w_1 \mu^2
                +
                \sum\limits_{c=2}^C
                w_c(\mu+\eta_c)^2 \\
                \vdots \\
                w_1 \mu^{K-1}
                +
                \sum\limits_{c=2}^C
                w_c(\mu+\eta_c)^{K-1} \\
        \end{bmatrix}
\]

\[
        \begin{bmatrix}
                \phi_1 \\
                \vdots \\
                \phi_{K-1} \\
                -
                \left\{
                        \mu
                        +
                        \sum\limits_{c=2}^C w_c\eta_c
                \right\} \\
                w_1 \mu^2
                +
                \sum\limits_{c=2}^C
                w_c(\mu+\eta_c)^2 \\
                \vdots \\
                w_1 \mu^{K-1}
                +
                \sum\limits_{c=2}^C
                w_c(\mu+\eta_c)^{K-1} \\
        \end{bmatrix}
\]
Last edited by cgnieder on Thu Aug 15, 2013 2:13 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

How do use big brace in bmatrix?

Post by casperyc »

Code: Select all

	\[
\begin{bmatrix}
		p_2 & \rdelim\}{3}{3ex}[$K-1$]\\
		\vdots \\
		p_K \\
		\tau_2 & \rdelim\}{3}{3ex}[$K-2$]\\
		\vdots \\
		\tau_{K-1} \\
		-
		\left\{
			\mu
			+
			\sum\limits_{c=2}^C w_c\eta_c
		\right\} & \rdelim\}{1}{3ex}[$1$]\\
		w_1 \mu^2 
		+
		\sum\limits_{c=2}^C
		w_c(\mu+\eta_c)^2 & \rdelim\}{3}{3ex}[$K-2$]\\
		\vdots \\
		w_1 \mu^{K-1}
		+
		\sum\limits_{c=2}^C
		w_c(\mu+\eta_c)^{K-1}
	\end{bmatrix}
	\begin{matrix} %{c}
	\rdelim\}{3}{3ex}[$K-1$] \\
	\\
	\\
	\rdelim\}{3}{3ex}[$K-2$] \\
	\\
	\\
	\rdelim\}{1}{3ex}[$1$] \\
	\rdelim\}{3}{3ex}[$K-2$]
	\end{matrix}
\]
Very close but no good enough
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

How do use big brace in bmatrix?

Post by casperyc »

Code: Select all

\documentclass{article}
\usepackage{multirow,bigdelim}
\usepackage{blkarray}

\begin{document}



\[
	\begin{blockarray}{[c]c}
		p_2 & \rdelim\}{3}{0pt}[$K-1$]\\
		\vdots \\
		p_K \\
		\tau_2 & \rdelim\}{3}{0pt}[$K-2$]\\
		\vdots \\
		\tau_{K-1} \\
		-
		\left\{
			\mu
			+
			\sum\limits_{c=2}^C w_c\eta_c
		\right\} & \rdelim\}{1}{0pt}[$1$] \\
		w_1 \mu^2 
		+
		\sum\limits_{c=2}^C
		w_c(\mu+\eta_c)^2 & \rdelim\}{3}{0pt}[$K-2$]\\
		\vdots \\
		w_1 \mu^{K-1}
		+
		\sum\limits_{c=2}^C
		w_c(\mu+\eta_c)^{K-1}
	\end{blockarray}
\]


\end{document}
Look pretty much it.

But is there a way to "automatically" adjust the last two " \rdelim\}" to the same height as its neighboring content?

Many thanks,

casper
Post Reply