3

is there a way to join the two brackets at the end of the 4th and 5th equation together so it spans over these two equations and there is only one text?

enter image description here

\begin{align}
f(\beta_i^{r,c},\alpha_{r,c} \mid n_{r,i},t_{c,i},(\lambda_1,\lambda_2) \text{ or } \lambda) \propto \\
\times \prod_{i=1}^{P} \prod_{c=1}^C ({\theta_{c,i}})^{t_{c,i}} &\;\;\bigg] \textbf{Individualdaten}\\
\times \prod_{i=1}^{P} \prod_{r=1}^R \frac{1}{B(\alpha)} \prod_{c=1}^C (\beta_i^{r,c})^{\alpha^{r,c}-1} &\;\;\bigg] \textbf{Priori Distribution}\\
\times \prod_{r=1}^{R} \prod_{c=1}^C \frac{1}{\lambda_2 ^{\lambda_1} \Gamma(\lambda_1)} \alpha_{r,c}^{\lambda_1-1} exp(-\alpha_{r,c} \lambda_2) &\;\;\bigg] \textbf{Priori Distribution}\\
\text{or}\\
\times \prod_{r=1}^{R} \prod_{c=1}^C \lambda exp(-\lambda\alpha_{r,c} &\;\;\bigg] \textbf{Priori Distribution}\\
\text{with } B(\alpha)=\frac{\prod_{c'=1}^C \Gamma(\alpha_{rc'})}{\Gamma(\Sigma_{c'=1}^C\alpha_{r,c'})}
\end{align}

1 Answer 1

2

Yes.

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
  \begin{align}
f(\beta_i^{r,c},\alpha_{r,c} \mid n_{r,i},t_{c,i},(\lambda_1,\lambda_2) \text{ or } \lambda) \propto \\
\times \prod_{i=1}^{P} \prod_{c=1}^C ({\theta_{c,i}})^{t_{c,i}} &\;\;\bigg] \textbf{Individualdaten}\\
\times \prod_{i=1}^{P} \prod_{r=1}^R \frac{1}{B(\alpha)} \prod_{c=1}^C (\beta_i^{r,c})^{\alpha^{r,c}-1} &\;\;\bigg] \textbf{Priori Distribution}\\
\times \prod_{r=1}^{R} \prod_{c=1}^C \frac{1}{\lambda_2 ^{\lambda_1} \Gamma(\lambda_1)} \alpha_{r,c}^{\lambda_1-1} \exp(-\alpha_{r,c} \lambda_2) &\;\;
\tikzmarknode{brkt}{\bigg]}
\tikzmarknode{above}{\textbf{Priori Distribution}}\\
\text{or}\\
\tikzmarknode{l1}{\times \prod_{r=1}^{R} \prod_{c=1}^C \lambda
\exp(-\lambda\alpha_{r,c}}
&\\
\tikzmarknode{l2}{\text{with } B(\alpha)=\frac{\prod_{c'=1}^C
\Gamma(\alpha_{rc'})}{\Gamma(\Sigma_{c'=1}^C\alpha_{r,c'})}}
\end{align}
\begin{tikzpicture}[overlay,remember picture]
\draw[line width=0.6pt] (brkt.west |- l1.north) -| (brkt.north |- l2.south)
node[pos=0.75,right]{\textbf{Priori Distribution}}
-- (brkt.west |- l2.south);
\end{tikzpicture}
\end{document}

enter image description here

3
  • 2
    @Mucteam, also, would be good to remove number (5) with \nonumber.
    – Sigur
    Nov 16, 2018 at 18:26
  • 2
    @Sigur I agree (and there are more things that leave room for improvement, I just focused on the bracket and replaces exp by \exp). For instance, how much sense does it make to have a \times after \propto?
    – user121799
    Nov 16, 2018 at 18:32
  • @Sigur Those are good points. I will adjust them as well!
    – Mucteam
    Nov 16, 2018 at 18:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .