Googling I found that it is common that \lineno does not work properly around displaymath with the ifacconf.cls template.
I am trying to improve a workaround I found for peer review reference. Specifically THIS ONE.
I would like to print the number result of the following operation $(1-\thepage)*70+\i $ instead of just \i. Any clues?
See the minimal example which prints literally "(1-"$\thepage$")*70+"$\i$
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz,everypage}
\AtBeginDocument{%
\AddEverypageHook{%
\begin{tikzpicture}[remember picture,overlay]
\path (current page.north west) -- (current page.south west) \foreach \i in {1,...,\fakelinenos} { node [pos={(\i-.5)/\fakelinenos}, xshift=\fakelinenoshift, line number style] { $(1-\thepage)*70+\i $} } ;
\end{tikzpicture}%
}%
}
\tikzset{%
line numbers/.store in=\fakelinenos,
line numbers=70,
line number shift/.store in=\fakelinenoshift,
line number shift=5mm,
line number style/.style={text=gray},
}
\begin{document}
\section{problem (a), page 88}
\[
y^{\prime\prime}=\frac{1}{x^{5}}y
\]
Irregular singular point at $x\rightarrow0^{+}$.
Let $y=e^{S_{0}\left(x\right)}$ and the above becomes%
\begin{align*}
y\left( x\right) & =e^{S_{0}\left( x\right) }\\
y^{\prime}\left( x\right) & =S_{0}^{\prime}e^{S}\\
y^{\prime\prime} & =S_{0}^{\prime\prime}e^{S_{0}}+\left( S_{0}^{\prime
}\right) ^{2}e^{S_{0}}\\
& =\left( S_{0}^{\prime\prime}+\left(S_{0}^{\prime}\right) ^{2}\right)e^{S_{0}}
\end{align*}
Substituting back into $\frac{d^{2}}{dx^{2}}y=x^{-5}y$ gives
Hence
\begin{align*}
S_{1} & \thicksim-\int\frac{S_{0}^{\prime\prime}}{S_{0}^{\prime}}dx\\
& \thicksim-\ln S_{0}^{\prime}+c
\end{align*}
\end{document}
