I'm using LaTeX via MiKTeX. I've just started using the lineno
package, and am also using the amsmath package. I can activate line
numbers, but they don't show up in paragraphs that contain equations,
even when the only equations are introduced with \begin{equation} and
not amsmath-specific commands like \begin{align}.
I know that there's a problem with the interaction with amsmath,
because if I don't load amsmath and use just straight LaTeX comands to
make my equations, line numbers appear everywhere they're supposed to.
Has anyone else experienced this, and does anyone know of a package
that might help work around this?
Thanks for any help you can offer,
Doug Scofield
> I'm using LaTeX via MiKTeX. I've just started using the lineno
> package, and am also using the amsmath package. I can activate line
> numbers, but they don't show up in paragraphs that contain equations,
> even when the only equations are introduced with \begin{equation} and
> not amsmath-specific commands like \begin{align}.
Please try loading amsmath before lineno. The environments {equation}
and {eqnarray} should work.
For other display math environments try wrapping them in a
{linenomath} environment, like
\begin{linenomath}
\begin{somedisplaymathenvironment}
xxx
\end{somedisplaymathenvironment}
\end{linenomath}
Stephan
The reason for linenumber is (for me) submitting papers, but I dont want to
edit the latex file (except adding the package) to do this.
One more question: I noticed that lineno gets a hickup in multi-line math
environments (adding an extra line). Has somebody an explanation for that?
Sebastian.
ps. lineno is _really_ great, many thanks to Stephan Boettcher!
--
Dr. Sebastian Boecker AG Genominformatik Technische Fakultaet
Universitaet Bielefeld Postfach 10 01 31 33501 Bielefeld, Germany
Office U5-118 Phone +49 (0)521 106-4755 Fax +49 (0)521 106-6495
http://www.cebitec.uni-bielefeld.de/~boecker/