* [email protected] (2010-10-30) writes:

> It is a known problem that latex-preview's showlabels option doesn't
> work with amsmath's multline environment: the label simply doesn't show
> up in the preview of these equations.  This has previously been reported
> in http://www.mail-archive.com/[email protected]/msg00653.html quite a
> few years ago.  As I rely quite heavily on this option (I think reftex
> doesn't use the previews so it isn't as convenient), this bug is rather
> annoying.

RefTeX works directly with the LaTeX source, not the typeset output.

> Using the attached test file, I think I have found the problem.  When
> the multline environment is used, the content is expanded twice in
> amsmath.sty's \multline@, the first time for measurement only.
> \i...@setbox is thus also called twice, but the second time \next is
> equal to \...@lastlabel and processing get skipped.

Thanks for debugging this.

> If I remove this
> duplication check, by editing the definition of \i...@setbox in
> prshowlabels.def:
>
> -   \ifx\next...@lastlabel\egroup\romannumeral\else
> +   \iffalse\egroup\romannumeral\else
>
> Labels then show up normally.

Hm, but AFAIU this would also remove the feature that labels equal to
the last one are ignored.  I'm not sure when a situation with multiple
identical labels usually occurs.  I could provoke that by using "eq:foo"
in your test file where you had "eq:foo1" and "eq:foo2" but I am not
sure if this is what David had in mind when he wrote the code.

David, could you please comment?

-- 
Ralf

_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to