bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25696: 11.90.0; Color bleeding after env definition


From: Arash Esbati
Subject: bug#25696: 11.90.0; Color bleeding after env definition
Date: Sun, 12 Feb 2017 20:05:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Hi Uwe,

Uwe Siart <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]