Dear fellow LaTextmaters,
I am (again) fiddling with the LaTeX bundle (seem to do that too much and write my thesis too little --- ah well). and am trying to find some way to add better folding recognition.
However, I would like things to be a bit easier, maybe I am just a bit slow-minded today:
Right now I am trying something similar to the HTML.bundle:
foldingStartMarker = '(?x) (\chapter{.*} |\begin{.*} )'; foldingStopMarker = '(?x) (%endchapter{.*} |\end{.*} )';
Which will add folding marks to chapter headlines and custom comments that show the end of a chapter (or section, subsection etc.). Which works fine, but instead of having to type out every possibility I was hoping to do this:
foldingStartMarker = '(?x) (\(chapter|section){.*} |\begin{.*} )'; foldingStopMarker = '(?x) (%end(chapter|section){.*} |\end{.*} )';
Works only if the indentation is correct. (Which might get annoyingly deep if this is done in depth).
\chapter{chapter} \section{section} %endsection{} %endchapter{}
Is there a way to get folding to recognize the foldingStopMarker as "the line before it hits a certain pattern"? So I can fold (marked with *)
* \section …
* \section
thx,
Daniel
PS: btw, when editing this email in Txtmate and returning to Mail.app the indentations were all gone.
On 6/4/2006, at 17:50, Daniel Käsmayr wrote:
foldingStartMarker = '(?x) (\(chapter|section){.*} |\begin{.*} )'; foldingStopMarker = '(?x) (%end(chapter|section){.*} |\end{.*} )';
Works only if the indentation is correct. (Which might get annoyingly deep if this is done in depth).
\chapter{chapter} \section{section} %endsection{} %endchapter{}
I tried that without the indent, and it worked fine.
Is there a way to get folding to recognize the foldingStopMarker as "the line before it hits a certain pattern"? So I can fold (marked with *)
No
PS: btw, when editing this email in Txtmate and returning to Mail.app the indentations were all gone.
I think there is a problem with Mail losing leading tabs. I have my Mail mode use soft tabs (as spaces are correctly “converted” to ), but I will check it out so it works with tabs.
Btw: for people who do regularly use the ctrl-cmd-E shortcut (to Edit in TM) then there is a Mail bundle on the repos. which will give nice syntax highlight for quoted text and such. I will add this bundle to the list of what should be included in future builds.