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?

3
  • 5
    You can take a look at these answers to a recent similar question or to these
    – Bernard
    Commented Dec 5, 2015 at 23:03
  • Welcome to TeX.SX! This question is very similar to tex.stackexchange.com/questions/9394/…. 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. Commented Dec 5, 2015 at 23:52
  • @cryingshadow ^^ I think the comment was intended for you, although hard to be sure.
    – cfr
    Commented Dec 6, 2015 at 1:30

0

Browse other questions tagged .