This may be bad typesetting, but I'm working with limited resources where I both want and need to conserve paper. This is not something for publication, so the standards for a math paper need not apply. This is for a high school math class.
I would like to create something that looks like:
which I'm able to do with a bit of finagling via
\documentclass{article}
\usepackage[textwidth=4in]{geometry}
\setlength\parskip{2ex}
\setlength\parindent{0pt}
\usepackage{amsmath}
\newcounter{ae@problem}
\newcommand\problem{\stepcounter{ae@problem}\textbf{P\arabic{ae@problem}}\hspace*{1em}}
\begin{document}
There is one mistake in each of the problems. Identify the mistake by
circling it. Then correct the work.
\problem
\begin{minipage}[t]{2.5in}
\vspace{-\dimexpr\abovedisplayskip+\abovedisplayshortskip+\baselineskip}
\begin{align*}
\text{For } h(x) &= x^{2}+2x+4 \\
h(-3) &= -3^{2}+2(-3)+4 = -9-6+4 \\&= -15 + 4 = -11
\end{align*}
\end{minipage}
\end{document}
Is there an easier approach or an alignment environment which is better suited to this purpose?
I would like the first line of the text to line up as in this approach:
\documentclass{article}
\usepackage[textwidth=4in]{geometry}
\setlength\parskip{2ex}
\setlength\parindent{0pt}
\usepackage{amsmath}
\newcounter{ae@problem}
\newcommand\problem{\stepcounter{ae@problem}\textbf{P\arabic{ae@problem}}\hspace*{1em}}
\begin{document}
There is one mistake in each of the problems. Identify the mistake by
circling it. Then correct the work.
\problem For $h(x) = x^{2}+2x+4$.
\begin{align*}
h(-3) &= -3^{2}+2(-3)+4 = -9-6+4 \\&= -15 + 4 = -11
\end{align*}
\end{document}
But I don't like how the align environment's first equal sign is misaligned with the presentation of the function on the first line.




=signs to be vertically aligned? – Bernard Sep 17 '15 at 19:27