Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

package lineno with package amsmath?

212 views
Skip to first unread message

Douglas G. Scofield

unread,
Sep 3, 2003, 5:54:49 PM9/3/03
to
Dear comp.text.tex,

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

Stephan Boettcher

unread,
Sep 4, 2003, 2:49:11 AM9/4/03
to

douglas_...@hotmail.com (Douglas G. Scofield) writes:

> 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

Sebastian Boecker

unread,
Oct 9, 2003, 10:55:13 AM10/9/03
to
Has somebody wrapped all the AMS math environments (align etc) by
\begin{linenomath} ... \end{linenomath}? This should be simple, but my
experiences in writing style files is more than limited...

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/

0 new messages