chiehrosswang / TRB_LaTeX_tex

A LaTeX template for Transportation Research Board Annual Meeting papers
MIT License
45 stars 22 forks source link

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

Open DeepakIngole opened 6 years ago

DeepakIngole commented 6 years ago

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.

chiehrosswang commented 6 years ago

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

CarlinLiao commented 5 years ago

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