GNU bug report logs - #25696
11.90.0; Color bleeding after env definition

Previous Next

Package: auctex;

Reported by: Uwe Siart <uwe.siart <at> tum.de>

Date: Sun, 12 Feb 2017 17:16:01 UTC

Severity: normal

Found in version 11.90.0

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Uwe Siart <uwe.siart <at> tum.de>
Cc: 25696 <at> debbugs.gnu.org
Subject: bug#25696: 11.90.0; Color bleeding after env definition
Date: Sun, 12 Feb 2017 20:05:57 +0100
Hi Uwe,

Uwe Siart <uwe.siart <at> tum.de> writes:

> After \newenvironment that includes \end{alltt} I observe color
> bleeding. In the following MWE most of the text after \end{alltt} is
> fontified in font-latex-verbatim-face.
>
> % ---------------------
> \documentclass{article}
> \usepackage{alltt}
>
> \newenvironment{Code}
>   {\begin{alltt}}
>   {\end{alltt}}
>
> \begin{document}
> \begin{Code}
>   Some example text
> \end{Code}
> \end{document}
> % ---------------------

This issue was discussed not long time ago, see the thread here[1].
This is not strictly a bug, the \begin/\end{...} for verbatim
environments should stand in their own lines beginning with space(s)
and/or tab(s).  Rearranging the code like this works fine:

\newenvironment{Code}{%
  \begin{alltt}%
  }{%
  \end{alltt}%
}

Best, Arash

Footnotes: 
[1]  http://lists.gnu.org/archive/html/bug-auctex/2017-01/msg00064.html




This bug report was last modified 8 years and 103 days ago.

Previous Next


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