1

I have the following equation:

enter image description here

But my professor want it to be like this (photoshoped):

enter image description here

He told me, I should use something like "left equation" or so..

I tried the following:

\begin{equation*}
\begin{split}
E_{support(\hat{X})}[support(X)] = \\
& \frac{\mathit{support}(\langle \text{Ware A}, 1, 5\rangle)}{\mathit{support}(\langle \text{Ware A}, 1, 10\rangle)} \cdot \frac{\mathit{support}(\langle \text{Ware B}, 2, 4\rangle)}{\mathit{support}(\langle \text{Ware B}, 2, 4\rangle)} \cdot \mathit{support}(\hat{X})
\end{split}
\end{equation*}

But it doesn't look like it should. Maybe you can help me?!

Thank you very much for your support!!

  • 3
    try multline instead of split, and remove the &. check documentation in the amsmath users guide: texdoc amsmath. – barbara beeton Jan 1 '14 at 12:33
  • Maybe "left equation" means use the "fleqn" in the document class? For the style, I prefer using the environment "align" to split equation. – selwyndd21 Jan 1 '14 at 13:23
6

As Barbara says, you can use multline:

\documentclass{article}

\usepackage{mathtools}

\DeclareMathOperator*{\supp}{support}
\DeclarePairedDelimiter{\inner}{\langle}{\rangle}

\begin{document}

\begin{multline*}
  E_{\supp(\hat{X})}[\supp(X)]\\
  = \frac{\supp(\inner{\text{Ware A}, 1, 5})}{\supp(\inner{\text{Ware A}, 1, 10)}}
  \cdot \frac{\supp(\inner{\text{Ware B}, 2, 4})}{\supp(\inner{\text{Ware B}, 2, 4})}
  \cdot \supp(\hat{X})
\end{multline*}

\end{document}

output1

You can also use align with \MoveEqLeft:

\begin{align*}
  \MoveEqLeft E_{\supp(\hat{X})}[\supp(X)]\\
  &= \frac{\supp(\inner{\text{Ware A}, 1, 5})}{\supp(\inner{\text{Ware A}, 1, 10)}}
  \cdot \frac{\supp(\inner{\text{Ware B}, 2, 4})}{\supp(\inner{\text{Ware B}, 2, 4})}
  \cdot \supp(\hat{X})
\end{align*}

output2

P.S. Notice the differencce in the placement of the second line relative to the first one; with multline it's flushed to the right and with \MoveEqLeft it's indented a specific amount.

  • Should be the "=" also in the first case in second line? or only by using align? Thx for your help! – mrbela Jan 2 '14 at 3:42
  • I've now changed it in the first case. – Svend Tveskæg Mar 7 '14 at 7:12
  • 1
    @mrbela, for displayed formulas the relation should start the line instead of ending it. If it ends the line it is easily overlooked. – daleif Mar 7 '14 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.