2

I would like to have an align environment which is not automatically written in a new line. For example in the following code, the formulas should appear in the same line as the itemize-dot or the Proof. :

\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\begin{document}

\begin{itemize}
    \item
    \begin{align*}
    x & = 0 \\
    y & = 15
    \end{align*}
\end{itemize}

\begin{proof}
    \begin{align*}
    x & = 0 \\
    y & = 15
    \end{align*}
\end{proof}
\end{document}

I know that I could use $\displaystyle x=0$ for single lines but the align environment is clearly better when aligning more than one line of formulas. Does anybody have an idea?

  • 5
    You can take a look at these answers to a recent similar question or to these – Bernard Dec 05 '15 at 23:03
  • Welcome to TeX.SX! This question is very similar to http://tex.stackexchange.com/questions/9394/vertical-alignment-of-align-in-enumerate. Please take a look at it as the information there might help you. If so, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find answers quickly. If not, please edit your question here to explain why so that people can better focus their attention to help you. – cryingshadow Dec 05 '15 at 23:52
  • @cryingshadow ^^ I think the comment was intended for you, although hard to be sure. – cfr Dec 06 '15 at 01:30

0 Answers0