Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 16 down vote accepted

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

share|improve this answer
    
@Stefan, thanks...I wasn't aware that there was an aligning environment outside of math mode. Doh! –  Kristen Nov 17 '10 at 23:43
    
That...that works? I had no idea. –  Ryan Reich Nov 18 '10 at 0:34
    
@Kristen: It's not outside math mode, but inside inline math mode. –  Hendrik Vogt Nov 18 '10 at 9:46
    
I wonder if it is essentially the same as \halign{#\hfill&&~#\hfill\cr text&$\eqalign{x+y&=z\cr u+v&=w}$&more text\cr}\bye in plain. –  morbusg Nov 29 '10 at 12:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.