Re: [Vim-latex-devel] Latex Suite suggestions for folding
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-09-18 00:34:01
|
On Mon, 15 Sep 2003, Aditya Mahajan wrote: > > ... always expands to $\cdots$ This is annoying it I just want to put ... > at some place in the comments. Is there some way in which you can check if > we are in the math mode or not and then only make the substitution. > Unfortunately, detecting math mode is not very easy in vim because certain things like \pi etc have a highlighting group which is called texCommand or something similar. This syntax group can be contained both in normal text as well as inside math. As of now, if latex-suite detects that the amsmath package is included, then it will always put \dots which amsmath adjusts correctly. Otherwise, it puts \cdots in math mode (if detected), otherwise it puts \ldots. I would recommend using \dots always instead of 3 dots anyway... > Add folds for: > abstract > keywords "Both of these are useful while writing papers > > " include folds for amsmath package > align/alignat > gather > intertext > Mikolaj added these items to folding.vim > "include fold for > sidewaysfigure > I am not sure where this environment occurs. Its not standard latex. I am wondering therefore if its advisable to add these to the standard latex-suite thingie? > These environments need to be added in the TexFoldTextFunction() also. > Also when I include a bibliography in the file, it gets folded with the > last section. I find this very annoying and found out that this can be > removed by > ^\s*\\begin{thebibliography}|^\s*\\bibliography > tags in the fold end pattern for section, subsection, subsubsection and > chapter. > I'll fix this. Thanks for the suggestions. Srinath |