Denis Bitouzé <[email protected]> writes:
Hi Denis,
> \newenvironment{latexcode}
> {%
> \VerbatimOut{tmp.tex}%
> }{%
> \endVerbatimOut%
> \lstinputlisting{tmp.tex}%
> }
>
> \begin{document}
> \begin{frame}[fragile]
> \begin{latexcode}
> \begin{lstlisting}+\only<2->{+[+\emph{options}+]+}+
> +\emph{listing}+
> \end{lstlisting}
> \end{latexcode}
The problem is that AUCTeX has no clue that latexcode is a verbatim
environment, and therefore its complete content should be displayed with
the verbatim face. Just add it as such ino your local variables
section:
--8<---------------cut here---------------start------------->8---
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% eval: (add-to-list 'LaTeX-verbatim-environments-local "latexcode")
%%% End:
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex