Hi!

How can simple mortals dare to step Gods' lands? How can a lame dare to
propose a patch to this enlightened group?

Well, I dare. But be advised that it may be an ugly hack (I'm so stupid
that I can't tell if it is so or not).

The patch consists of this:

1. Treat gather exactly as an eqnarray:

* Default state when created is \begin{gather*} \end{gather*}
* The behavior under MATH_NUMBER, MATH_NONUMBER and INSERT_LABEL is
handled exacly the same way as eqnarrays.

2. Treat multline as a special case with lots of if's (please, don't kill
me, André):

* Default state when created is \begin{multline*} \end{multiline*}
* All calls to MATH_NUMBER, MATH_NONUMBER and INSERT_LABEL will afect only
the last row (whose idx is nrows() - 1)
* Also, never insert \nonumber in multlines, as it holds for just one
number. Instead, just toggle multline* by multline.

I don't expect this patch to be accepted (probably because André is
planning some better way to fix this bug), but if you spend some of your
time to comment it, I would be very glad (I would, in the future, tell my
grandchild, in fact!)

Best,
João.

Attachment: gather-multline-594.diff.gz
Description: Binary data

Reply via email to