Re: [Vim-latex-devel] \label command location in macro
Brought to you by:
srinathava,
tmaas
From: Gerd W. <ger...@ma...> - 2012-10-09 08:11:55
|
> So > 1. Why latex-suite behaves differently on my computer other than the > "default" behavior? Because the documentation is not up to date. > 2. Is there any way to let the \label<++> be placed ALWAYS at the first > line of an environment? I know I can > customize them one by one, but I have no idea how to deal with the new > environment defined in a specific > tex file. Just put something like let g:Tex_Env_theorem = "\\begin{theorem}\<CR>\label{<++>}\<CR><++>\<CR>\\end{theorem}\<CR><++>" in your ~/.vim/ftplugins/tex.vim Btw: There is a patch that allows customization of these macros at sourceforge http://sourceforge.net/tracker/?func=detail&aid=3189887&group_id=52322&atid=466458 However, it seems that nobody tends to incorporate these patches. (For this reason, I published my patched version of latex-suite on https://github.com/gerw/vim-latex-suite) Regards Gerd |