Thursday, September 22, 2011

Re: LaTeX syntax misery

On 22:46 Tue 20 Sep , William E. Skeith III wrote:
> ----- Original Message -----
>
> From: Tim Gray <tgray@protozoic.com>
> To: vim_use@googlegroups.com
> Cc:
> Sent: Monday, September 19, 2011 10:01 AM
> Subject: Re: LaTeX syntax misery
>
> On Sep 17, 2011 at 08:03 PM -0400, Moshe Kamensky wrote:
> > In my experience, the problem is the folding. When I set
> > foldmethod=manual, the problem (mostly) disappears.
>
> I seem to remember having this same problem and it was related to folding.  I just checked, and while I don't have foldmethod=manual set, I do have a custom folding scheme for latex that I found somewhere on the internet.  If you still want the ability to fold, you might find it useful.  It sets folds based on sections and subsections.
>
> https://raw.github.com/tgray/tgtex/master/plugin/tex-fold.vim
>
> Stick it in ~/.vim/plugin/
> ============================
>
> Thanks again for all the help.  It looks like the VIM-LaTeX package provides a
> similar feature for getting syntax folding via the manual fold method (see
> /plugin/SyntaxFolds.vim and ftplugin/latex-suite/folding.vim).  It is
> substantially more complicated, but I don't think it has too many
> dependencies, so you might be able to use it without installing the whole
> package (if you are like me, and VIM-LaTeX seems a little too heavy...).
>
> -WES
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

Hi,

In AutomaticLaTeXPlugin (http://atp-vim.sf.net) I propose another solution:
instead of folding there is table of contents which allows to move between
chapters/sections/etc.. and also to copy paste sections (like it is possible
to operate on folds). It also allows to fold sections. It uses :fold command
so it doesn't slow down vim at all. (You can also fold several sections at
once using visual mode).

Best regards,
Marcin

ps. thanks for the link to tex-fold.vim, with permission of the author it will
be included in AutomaticLaTeXPlugin (however, by default it will be switched
off).

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: