GNU bug report logs - #63083
13.1.4; Table of contents should ignore commented out text

Previous Next

Package: auctex;

Reported by: Hugo Paquet <paquet <at> lipn.univ-paris13.fr>

Date: Wed, 26 Apr 2023 03:56:02 UTC

Severity: normal

Tags: moreinfo

Found in version 13.1.4

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 63083 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Hugo Paquet <paquet <at> lipn.univ-paris13.fr>
Cc: 63083 <at> debbugs.gnu.org
Subject: Re: bug#63083: 13.1.4; Table of contents should ignore commented
 out text
Date: Wed, 26 Apr 2023 10:58:45 +0200
Hugo Paquet <paquet <at> lipn.univ-paris13.fr> writes:

> The command "C-c =" is supposed to scan the .tex file(s) and generate
> a table of contents.  But the table seems to include all sections,
> even those when the code "\section{....}" appears in a comment block.
> This makes the table of contents inconsistent with the resulting pdf.

I think this is by design; I'm not aware of any variable similar to
`reftex-label-ignored-macros-and-environments' for \section and such.  I
think the idea is to comment out the code with %, and then there was
also this bug report[1].

Maybe others have a good idea.

Best, Arash

Footnotes:
[1]  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59638




This bug report was last modified 1 year and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.