(1) a = b % \begin{gather} a = b \end{gather}
(2) a = b % \begin{eqnarray} a = b \end{eqnarray}
After the first \chapter, though, I get this:
(1.1) % \begin{gather} a = b \end{gather}
a = b
(1.2) a = b % \begin{equation} a = b \end{equation}
I imagine there's probably some value I can set so this won't happen,
but I don't know what it is. Has anyone else run into this and found a
solution? I think someone may have run into this before [1], but the OP
in that thread didn't provide an example, and it doesn't appear any
solution was found. Here's an MWE that demonstrates this issue:
\documentclass[leqno,fleqn]{report}
\usepackage{amsmath}
\begin{document}
% (1) a = b
% (2) a = b
\begin{gather} a = b \end{gather}
\begin{eqnarray} a = b \end{eqnarray}
\chapter{X}
% (1.1)
% a = b
% (1.2) a = b
\begin{gather} a = b \end{gather}
\begin{equation} a = b \end{equation}
\end{document}
Many thanks,
Joshua Taylor
[1]
http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2006-02/msg00043.html
Never use eqnarray, nor equation just after gather, which doesn't
make sense.
In order to solve your problem, set \mathindent to a more sensible
value, such as
\setlength{\mathindent}{3em minus 2em}
Do this in the preamble.
Ciao
Enrico
The eqnarray was an accidentally worked its way in, while I was trying
to determine what environments were affected; good catch. I normally
wouldn't be juxtaposing these sorts of environments, except that I was
trying to produce a /minimal/ portion of code. But I agree on both counts.
> In order to solve your problem, set \mathindent to a more sensible
> value, such as
>
> \setlength{\mathindent}{3em minus 2em}
This is exactly what I needed. Many thanks!
Joshua Taylor
P.S., For the same of anyone finding this thread in the archives,
\mathindent isn't defined when the fleqn option isn't used. I ran into
this when I the solution `broke' my working document. What actually
happened is that I'd removed fleqn from my working document for the time
being, and needed to add it back, too.