3

I have this document:

\documentclass[a4paper,11pt, twocolumn]{article}
\begin{document}
...

\begin{equation}
\begin{aligned}
    f(\boldsymbol{y}|\boldsymbol{\alpha},\boldsymbol{\beta})&=\binom{m}{\boldsymbol{y}}\prod_{i=1}^{k-1}\frac{\Gamma(\alpha_i+y_i)}{\Gamma(\alpha_i)} \frac{\Gamma(\beta_i+\sum_{j=i}^ky_j)}{\Gamma(\beta_i)} \\
    &\qquad{} \times \frac{\Gamma(\alpha_i+\beta_i)}{\Gamma(\alpha_i+\beta_i+\sum_{j=i}^ky_j)}
\end{aligned}
\end{equation}

\end{document}

The fact is that this equation goes into the right column even if I divide it into two lines... How can I solve this problem?

2 Answers 2

5

... or using a simple align, and replacing | with \mid,

enter image description here

\documentclass[a4paper,11pt,twocolumn]{article}
\usepackage{amsmath,bm} 
\begin{document}
\hrule % just to indicate width of column
\begin{align}
f(\bm{y}&\mid\bm{\alpha},\bm{\beta})= \notag\\
&\binom{m}{\bm{y}} \prod_{i=1}^{k-1}
\frac{\Gamma(\alpha_i+y_i)}{\Gamma(\alpha_i)} 
\frac{\Gamma(\beta_i+\sum_{j=i}^ky_j)}{\Gamma(\beta_i)} \notag\\
&\qquad\qquad\times 
 \frac{\Gamma(\alpha_i+\beta_i)}{\Gamma(\alpha_i+\beta_i+\sum_{j=i}^ky_j)}
\end{align}
\end{document} 
6
  • 1
    +1. I would replace the math-old | character with the math-rel macro \mid, though,
    – Mico
    Commented May 10, 2021 at 16:01
  • 1
    Done. :-) (changed | to \mid, and \boldsymbol to \bm)
    – Mico
    Commented May 10, 2021 at 16:19
  • 1
    Thank you very much... it seems to me that they have just changed the characters on the site: I now see these differents. They are similar to Calibri font.
    – Sebastiano
    Commented May 10, 2021 at 16:30
  • 1
    Good eye! See We are switching to system fonts on May 10, 2021 for the full announcement.
    – Mico
    Commented May 10, 2021 at 16:32
  • 1
    @Mico I have not see the link....and the advice...:-))) My eyes are very very tired...and I am here for relax.
    – Sebastiano
    Commented May 10, 2021 at 16:33
6

I suggest using the multline environment instead:

\documentclass[a4paper,11pt, twocolumn]{article}
\usepackage{amsmath} 

\begin{document}

\begin{multline}
f(\boldsymbol{y}\mid\boldsymbol{\alpha},\boldsymbol{\beta}) = \\
\binom{m}{\boldsymbol{y}}\prod_{i=1}^{k-1}\frac{\Gamma(\alpha_i+y_i)}{\Gamma(\alpha_i)} \frac{\Gamma(\beta_i+\sum_{j=i}^ky_j)}{\Gamma(\beta_i)} \\
\times \frac{\Gamma(\alpha_i+\beta_i)}{\Gamma(\alpha_i+\beta_i+\sum_{j=i}^ky_j)}
\end{multline}

\end{document} 

enter image description here

2
  • Same comment about \mid that has already been mentioned. Commented May 10, 2021 at 18:31
  • @barbarabeeton: Yes, I had noticed that, but I thought it was not the main point here. I'll fix it anyway.
    – Bernard
    Commented May 10, 2021 at 18:43

You must log in to answer this question.

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