감동, 마음이 움직이는 것

[LaTex] line number in article model with equation (math environment) 본문

Tips (Utility, Computer Language, and etc.)

[LaTex] line number in article model with equation (math environment)

Struggler J. 2018. 3. 15. 06:50

https://tex.stackexchange.com/questions/25784/why-doesnt-lineno-number-a-paragraph-when-it-is-followed-by-an-indented-equatio

https://texblog.org/2012/02/08/adding-line-numbers-to-documents/


In case, when the paragraph includes equation with math mode, the line number does not allocate in this paragraph. 

To show the line number properly we have to include the following package.

1
2
\usepackage[displaymath, mathlines]{lineno}
\linenumbers

And then, use following lines for equations.

1
2
3
4
5
6
\begin{linenomath*}
    \begin{equation}
        \dot{a} &=& 2a+5b \\
        \dot{b} &=& a b
    \end{equation}
\end{linenomath*}


'Tips (Utility, Computer Language, and etc.)' 카테고리의 다른 글

[c++] Gamma function in c++  (0) 2018.03.26
[gnuplot] HSV to RGB  (0) 2018.03.23
[발표팁]  (0) 2018.03.10
[Integrals of Rational Functions]  (0) 2018.02.27
[mathematica] $Assumptions and parameter sets  (0) 2018.02.23