# [TxMt] Code folding in LaTeX

Mon May 4 13:57:25 UTC 2015

Code folding in LaTeX is not doing what I expect. Lets say I have this in my
.tex file:

\begin{document}
\section{}
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
\subsection{}
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
\end{document}

Option + Command + 0 does as expected:

\begin{document}Š\end{document}

Option + Command + 1 does exactly the same:

\begin{document}Š\end{document}

But what I expected was

\begin{document}
\section{}Š
\end{document}

Option + Command + 2 does as expected:

\begin{document}
\section{}Š
\subsection{}Š
\end{document}

So, I expected:
\begin{document} to be all levels
\section{} to be level 1
\subsection{} to be level 2

Is there a way of setting cold folding to do what I expected?

Ross Ahmed
Ecologist
‹
07875533906