I want to write two new commands \eqend
and \eqcntd
so that when I put the command at the end of an equations,
- The
\eqend
command puts a "." after the equation and forces the next paragraph to indent, regardless of the number of blank lines after the equation. - The
\eqcntd
command puts a "," after the equation and forces the next paragraph not to indent, regardless of the number of blank lines after the equation.
This is a sample usage,
\begin{equation}
f(x) = x^2 + 1 \eqend
\end{equation}
Some text here, but it's gonna get indented.
and another one,
\begin{equation}
f(x) = x^2 + 1 \eqcntd
\end{equation}
Some text here, but it's not gonna get indented.
Here is my NOT-WORKING solution,
\newcommand{\eqend}{\,. \mbox{\par}}
\newcommand{\eqcntd}{, \mbox{\noindent}}
\mbox
never gets out of the box, so\par
certainly won't indent the next text line. perhaps something with\aftergroup
would have a better chance, but i'm not in a position to experiment now.