Math & Science ⇒ Suspend align enviroment
Suspend align enviroment
Is it possible to suspend the align environment like with enumerate? I can't seam to find any examples.
Last edited by jaybz on Wed Apr 27, 2011 11:25 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Suspend align enviroment
A better description of what you are after could be helpful. It is quite unclear with what want to interrupt the environment. If I understand you right, the \intertext command of amsmath is probably what you are looking for. It is enhanced by \shortintertext of the mathtools package. Some more stuff about math typesetting can be found in the »Math mode« document.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Suspend align enviroment
How can I reproduce this effect without all the hspaces ?
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[top=1in, bottom=0.3in, left=25mm, right=25mm]{geometry}
\usepackage{mathtools}
\begin{document}
\begin{align*}
2x &= 4x^{2} + 7x \hspace{29mm} \makebox[10mm][c]{and \hspace{11mm} $g(x) = 42$} \\
2x &= 4x^{2} + 7x \hspace{36mm} g'(x) = 12 \\
2x &= tan(x)x^{2} + 7x \hspace{26mm} g''(x) = 7x +1 \\
\end{align*}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Suspend align enviroment
The amsmath package also provides the alignat* environment for such cases.
The tangent function is written upright in math expressions and therefore has with \tan a predefined operator command (see code above).
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{mathtools}
\begin{document}
\begin{alignat*}{2}
2x &= 4x^{2}+7x &\makebox[10em]{and} g(x) &= 42 \\
2x &= 4x^{2}+7x & g'(x) &= 12 \\
2x &= \tan(x)x^{2}+7x & g''(x) &= 7x +1
\end{alignat*}
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Suspend align enviroment
Yes that works nicely, I knew about the tan(x) I was just in a hurry.
Thank you.
Thank you.