GNU bug report logs - #19624
RefTeX TOC should not scan words in verbatim environments

Previous Next

Package: auctex;

Reported by: Zengxu Yang <moonlight.yang <at> gmail.com>

Date: Mon, 19 Jan 2015 01:20:02 UTC

Severity: normal

Tags: wontfix

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

Bug is archived. No further changes may be made.

Full log


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

From: Zengxu Yang <moonlight.yang <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: RefTeX TOC should not scan words in verbatim environments
Date: Sun, 18 Jan 2015 20:16:27 -0500
[Message part 1 (text/plain, inline)]
RefTeX TOC scans words in verbatim environments, too. And this makes TOC
incorrect. For example,

\documentclass{article}

\begin{document}
\section{First}
\label{sec:first}

\section{Second}
\label{sec:second}

\begin{verbatim}
\section{Third}
\end{verbatim}

\section{Last}
\label{sec:last}

\end{document}

Section "Third" is in a verbatim environment and should not be shown in
RefTeX TOC. But the RefTeX TOC buffer is shown as:

TABLE-OF-CONTENTS on ~/Documents/test/emacs/reftextest.tex
SPC=view TAB=goto RET=goto+hide [q]uit [r]escan [l]abels [f]ollow [x]r
[?]Help
------------------------------------------------------------------------------
     1 First
     2 Second
     3 Third
     4 Last

Verified using Emacs 24.4 with AucTeX 11.87 on Debian 8.

The best solution is skipping scanning all predefined and user defined
verbatim environments in AucTeX(for example, verbatim, Verbatim, minted).
[Message part 2 (text/html, inline)]

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

Previous Next


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