12

I have a very big equation and using split or multiline is not helping. How do i wrap it and how do i make sure thatRHS of the eqn is always on the right side of equal to ('=') even when line is changed

\begin{equation*}
 \begin{split}
  m_{12}(\{ \emph{Red},\emph{Blue} \})= K'* [m_{1}(\{ \emph{Red},\emph{Blue} \})*m_{2}(\{    \emph{Red},\emph{Blue} \})+m_{1}(\{ \emph{Red},\emph{Blue} \})*m_{2}(\{ \emph{Red},\emph{Blue},\emph{Green} \})+m_{2}(\{ \emph{Red},\emph{Blue} \})*m_{1}(\{ \emph{Red},\emph{Blue},\emph{Green} \})]
 \end{split}
 \end{equation*}

2 Answers 2

16

Use aligned:

\begin{equation*}
  \begin{aligned}
    m_{12}(\{ \emph{Red},\emph{Blue} \}) 
    = K' * \bigl[ & m_{1}(\{ \emph{Red},\emph{Blue} \})*m_{2}(\{    \emph{Red},\emph{Blue} \}) \\
     + & m_{1}(\{ \emph{Red},\emph{Blue} \})*m_{2}(\{ \emph{Red},\emph{Blue},\emph{Green} \}) \\
     + & m_{2}(\{ \emph{Red},\emph{Blue} \})*m_{1}(\{ \emph{Red},\emph{Blue},\emph{Green} \})\bigr]
  \end{aligned}
\end{equation*}
2
  • 6
    I'd use \mathit rather than \emph
    – egreg
    Commented May 3, 2013 at 20:06
  • @egreg The italic font is strange anyway, I just copied from the question.
    – Alex
    Commented May 3, 2013 at 20:08
13

Have you tried using the align environment?

enter image description here

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{align*}
  m_{12}(\{Red,Blue\})&=K'*[m_1 (\{Red,Blue\})*m_2(\{Red,Blue\})\\
                      &\qquad +m_1(\{Red,Blue\})*m_2(\{Red,Blue,Green\})\\
                      &\qquad +m_2(\{Red,Blue\})*m_1(\{Red,Blue,Green\})]
\end{align*}

\end{document}
3
  • 2
    using \mathit{Red,Blue} instead of just the words would result in a nicer appearance with respect to intra-word kerning. (the alignment is very nice, however.) Commented May 4, 2013 at 13:11
  • Any easy way to line up the m_1 on the first two lines?
    – Eric
    Commented Dec 27, 2019 at 11:03
  • @Eric Old question, but & is used for alignment, so just put them in front of the m_1s (replacing the other ones).
    – SimonH
    Commented Dec 9, 2022 at 9:27

You must log in to answer this question.

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