[TxMt] Code folding in LaTeX

Ross Ahmed rossahmed at googlemail.com
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
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20150504/4476c0f4/attachment.html>


More information about the textmate mailing list