EDIT Rephrased question to be more abstract and less specific to only fragile-frames.
Context:
While recompiling a presentation, the process halted with err-msg
file ended while scanning use of next.
During debugging the whole thing I found indented fragile-frames, although they weren't supposed to be.
I assume, TeXstudio might have indented the code as part of the code folding routine.
Problem: How do I prevent parts of source code from being automatically indented? How can
araraorlatexindentbe utilized for this purpose?
A minimalistic WE using fragile-frame to exemplify the problem:
\documentclass{beamer}
\usepackage{listings}
\begin{document}
%not to be indented by texstudio!
\begin{frame}[fragile]{a title}
some explanation to the snippet
\begin{lstlisting}[caption=func foo not bar,label=fct:foo]
foo(a,b,c)
c = a + b
return c
\end{lstlisting}
\end{frame}
%allowed to be indented.
\begin{frame}{smart title}
some input
\end{frame}
\end{document}
framethat isfragileunderbeamercontaining alstlisting. What if you define alstnewenvironment, or it's not inbeamer, or...? – Werner Mar 17 '16 at 01:22\end{frame}s http://tex.stackexchange.com/questions/234778/indenting-endframe-in-fragile-slides – samcarter_is_at_topanswers.xyz Mar 17 '16 at 14:02