[Vim-latex-devel] Support for gather in Latex-suite
Brought to you by:
srinathava,
tmaas
From: Aditya M. <adi...@al...> - 2004-06-11 19:59:21
|
Hi, For some reason the gather environment is not fully supported in latex-suite. Some suggestions to make it better 1) file: ftplugin/latex-suite/envmacros.vim function Tex_PutEnvironment(env) 21st line (~line 580, I have made some changes so not sure of the original line number) elseif a:env ~= 'equation*\|eqnarray*\|..... add \|gather\|gather* in the end I know that this can be done with let g:Tex_Env_gather = "\\begin{gather}\<CR><++>\\label{<++>}\<CR>\\end{gather}<++>" but gather is a common environment so should be included in the default list. 2) In funtion Tex_ChangeEnvironments() change if change_env == 'eqnarray' . . . elseif change_env == '' to if change_env == 'eqnarray' . . . elseif change_env == 'gather' call <SID>Change('gather',0,'&',0) elseif change_env == 'gather*' call <SID>Change('gather*',0',&\|\\nonumber',0) elseif change_env == '' so that change environment <S-F5> works smoothly with gather also. 3) In file texrc add gather and gather* to the default Tex_PromptedEnvironments On a different note, the prompted environments take too much space, this is especailly true for prompted packages, it covers almost the entire screen. Is it possible to have a setting like g:Tex_ShowPromptedEnviroments, such that if it is 1, you get the present behaviour and if it is 0, one gets only a input() prompt, eg, for <S-F5> You are in a align enviroment. What do you want to change it to? for <F5> Choose which enviroment to insert: for <F5> in the preamble Enter the package to use: Thanks aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 |