Uwe Brauer <[email protected]> writes:
Hi Uwe,
> \section{First}
> %\section{Second}
> \section{Third}
>
> \end{document}
>
> reftex-toc
>
> Results in
>
> 1 First
> 3 Third
>
> Which is wrong, the counting should give
>
> 1 First
> 2 Third
>
> It gets worse if the document contains a lot of commented out sections.
> Any idea what to do?
I'd call it a feature. I mean, when you have commented out sections,
you'll most probably intend to uncomment them again. Otherwise, you
could just delete them, no?
Anyway, you could also try to change reftex-section-pre-regexp from
"\\\\" to "[^%]+[ \t]*\\\\" which might do the trick.
Bye,
Tassilo
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex