I commented that I'm solving problems to make a book of basic math (or precalculus).
In the environment or region of solving an exercise I want to combine paragraphs of text (using \shortintertext
) with equations which I can align with respect to any sign of equality or inequality (align
environment). I wish I could list some of these equations. And most importantly, I want to control the line spacing in this development environment. You can see that the following code
\documentclass{article}
\usepackage{showframe}
\usepackage{mathtools}
\usepackage{amsthm}
\begin{document}
\begin{align*}
\shortintertext{The equation is..}
4x &= 3x + 3&&(1)\\
\shortintertext{then by t2 and t7 theorems have..}
\left(3x+3\leq 4x <x+4\right) & &&(2)\\
\shortintertext{..respectively}
\end{align*}
\end{document}
will produce this document in DVI in which the numbering of formulas (or equations) are not close to the right margin. I want these numbers (within the parenthesis) are located very close to the right margin.
To control the line spacing I tried with commands like \addtolength{\jot}{2em}
\begingroup
\addtolength{\jot}{2em}
\begin{align*}
\shortintertext{The equation is..}\\[0.1em]
4x &= 3x + 3&&(1)\\
\shortintertext{then by t2 and t7 theorems have..}\\[0.1em]
\left(3x+3\leq 4x <x+4\right) & &&(2)\\
\shortintertext{..respectively}
\end{align*}
\endgroup
and becomes chaotic:
Can you solve or should I choose other environments?
Thanks in advance.
Best Answer
You should let the
align
environment handle the numbering for you. Then the numbers will appear close to the right margin and the equations will be centered correctly.