Ralf Angeli <[EMAIL PROTECTED]> 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
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex