4

I am very new to LaTeX. I want to display this:

enter image description here

How should I go about doing this?

Tom Bombadil
  • 40,123
Karup
  • 217

3 Answers3

4

Might be a little hard to get right for a beginner, here is some of it:

\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
  \max
  \begin{cases}
    \! % artifact from aligned(at)
    \begin{alignedat}{2}
      &\text{apandon:} &\quad & 0;
      \\
      &\text{continue:} && \frac{A}{B} ;
      \\
      &\text{improve:} && A + B 
      \\
      &&& +C;
    \end{alignedat}
  \end{cases}
\end{equation*}
\end{document}

enter image description here

daleif
  • 54,450
  • Could you add a picture please? I always like to see on the forst look what the output would look like. – Tom Bombadil Dec 14 '15 at 13:13
  • Oh, lol, I assumed the +c was just something that happened due to line break, not something that was intentionally on the next line – BMWurm Dec 14 '15 at 13:13
4

One more alternative (based on use of mathtools):

\documentclass{article}
\usepackage{mathtools}

    \begin{document}
    \[
    V_i(t) = \max\begin{dcases}
    \mathrm{apandon:}   &  0;                    \\
    \mathrm{continue:}  &  \frac{A}{B} ;         \\
    \mathrm{improve:}   &  \begin{multlined}[t] A + B\\  +C+D+E+F\end{multlined}
      \end{dcases}
    \]
    \end{document}

enter image description here

Zarko
  • 296,517
3

Like this:

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{equation}V_i(t) = \max \left\{
\begin{array}{@{}rl@{}}
\text{abandon:} & 0;\\
\text{continue:}&-c(t)+\frac{\sum_{j=1}^N[pV_{i+j/2}(t+2)+(1-p)V_{i-j/2}(t+1)]}{N(1+r)};   \\[1ex]
\text{improve:} &-c(t)-\alpha(t) \\
                &\hfill{}+\frac{\sum_{j=1}^N[pV_{i+1+j/2}(t+2)+(1-p)V_{i+1-j/2}(t+1)]}{N(1+r)}.
\end{array}
\right .
\end{equation}    

\end{document}
AboAmmar
  • 46,352
  • 4
  • 58
  • 127