Whenever one uses the align
environment, a line-break is automatically inserted after it:
\documentclass[]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
1 + 2
\end{align*}
Text
\end{document}
The same happens when using two align
environments after each other (line-break in inserted between them:
\documentclass[]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
1 + 2
\end{align*}
\begin{align*}
3 + 4
\end{align*}
\end{document}
Is there a way to prevent that from happening, i.e. from having a line-break after an align environment?
EDIT: To clarify, I am certainly not looking for a simple inline equation. I don't want the results to be in the same line, obviously. I just want to get rid of the extra blank line that separates results.
For instance, with the first code snippet above I get:
While I would want:
Similarly, with the second code snippet above I get:
While I want to have something like:
Notice, the challenge is doing that not using one single align
.
Best Answer
You could use
\centerline
to get what you are hoping:And while the OP's question doesn't express the need, if you really needed the actual ability to use alignment tabs in the argument, then a TABstack is for you!