[Tex/LaTex] How to write multi line equations with alignment in inline math mode

alignamsmathenvironmentsmath-mode

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"? One such example is the align* environment. I want to keep my aligned equations inline. So basically I want something like

\begin{align*}
x+y&=z\\
u+v&=w
\end{align*}

embedded into a line of text.

Best Answer

In such cases you could simply use the aligned environment within inline math instead of align*:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
text
$\begin{aligned}
x+y&=z\\
u+v&=w
\end{aligned}$
more text
\end{document}

Output:

alt text

Related Question