bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 2008-02-02; Highlighting verbatim environments gets con


From: Uwe Siart
Subject: Re: [Bug-AUCTeX] 2008-02-02; Highlighting verbatim environments gets confused
Date: Mon, 04 Feb 2008 10:10:55 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (windows-nt)

Ralf Angeli <address@hidden> writes:

> So in your case the \begin{alltt} is found, but not the \end{alltt}.

Ralf,

from your explanation above, I wonder why the same thing does not happen
with other environments.

The fontification of

--8<----------8<----------8<----------8<----------
\documentclass{article}
\usepackage{alltt}
\newenvironment{myenv}{\begin{alltt}}{\end{alltt}}
\begin{document}
foo
\begin{myenv}
bar
\end{myenv}
foo
\end{document}
--8<----------8<----------8<----------8<----------

is bad because the \end{alltt} is not found. However in the example

--8<----------8<----------8<----------8<----------
\documentclass{article}
\newenvironment{myenv}{\begin{equation}}{\end{equation}}
\begin{document}
foo
\begin{myenv}
bar
\end{myenv}
foo
\end{document}
--8<----------8<----------8<----------8<----------

the \end{equation} seems to be found because only the "}{" in between is
fontified in math-face. This does not depend on whether {myenv} is added
to 'LaTeX-verbatim-environments' or not.

-- 
Uwe




reply via email to

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