TRB_LaTeX_tex icon indicating copy to clipboard operation
TRB_LaTeX_tex copied to clipboard

Why doesn't line number a paragraph when it is followed by an indented equation?

Open DeepakIngole opened this issue 6 years ago • 2 comments

While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when space is included. Another fix is to att following lines before \begin{document}

\let\oldequation\equation
\let\oldendequation\endequation

\renewenvironment{equation}
 {\linenomathNonumbers\oldequation}
{\oldendequation\endlinenomath}

It will be nice if it is added to trbunofficial.cls. Thank you.

DeepakIngole avatar Jul 31 '18 14:07 DeepakIngole

Can you show an example (code and outcome) of missing line numbers after equation? I can't seem to replicate this issue.

chiehrosswang avatar Aug 01 '18 19:08 chiehrosswang

I can replicate this issue using the template as an example if I forget to wrap an equation with linenomath statements.

text text text text
\begin{equation}
s^*(v_\alpha,\Delta v_\alpha) = s_0 + v_\alpha\,T + \frac{v_\alpha\,\Delta v_\alpha}{2\,\sqrt{a\,b}}
\end{equation}
text text

image

CarlinLiao avatar Jul 25 '19 05:07 CarlinLiao