Thread: [Vim-latex-devel] environments
Brought to you by:
srinathava,
tmaas
From: Alessandro P. <A.P...@st...> - 2003-04-07 16:53:48
|
Hi, I'm using vim latex with vim version 6.1.165, in Linux Redhat 8.0. If I press <F5> in the insert mode while on an empty line, I get the following error messages: Error detected while processing function Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_pack_one.. Tex_CreatePrompt: Line 3: E117: Unknown function: GetLisCount E15: Invalid expression: GetListCount(a:promptList) E121: Undefined variable: num_common E15: Invalid expression: i <= num_common ...and no list is displayed What's going on? (I'm a beginner... no doubt I did some mistakes... the vimlatex help seems to work, and many other features are OK...) Thank you very much for your help and for vim-latex. All the best Alessandro ////////////////////////////////////// // // // Alessandro Platania // // 226 Cherry Hinton Rd // // Cambridge CB1 4AW, GB // // // // DPMMS // // Statistical Laboratory // // Wilberforce Road // // Cambridge CB3 0WB, GB // // Tel: +44 1223 337922 // // // ////////////////////////////////////// |
From: Baris E. <be...@an...> - 2005-12-22 10:32:46
|
Dear All, I have a (simple) question about inserting environments using shortcuts such as EEQ, EEA, and such. When I use EEQ the following is inserted: \begin{equation} \label{<++>} \end{equation}<++> the cursor being between \begin{equation} and \label{.}. However I dont want the \label{<++>} and also I want the last placeholders below the \end{equation} line. Which files should I modify to get the desired behaviour (especially having the placeholder below the environment name) ? Thanks Baris |
From: Javier R. <jer...@gm...> - 2005-12-22 17:33:13
|
> Which files should I modify to get the desired behaviour (especially having > the placeholder below the environment name) ? I didn't liked the default expansion for the figure environment, so I redefined it. create (or modify) the file ~/.vim/ftplugin/tex.vim, and put a line (don't split it like my email client does) like this on it let Tex_Env_{'figure'}="\\begin{figure[htbp]\\centering\<CR>\\includegraphics[width=<++>] {<++>}\<CR>\\caption{<+caption+>}\\label{fig:<+label+>}\<CR>\\end{figure}\<CR><++>" the stuff between double quotes is the way you'll redefine the environment, in this case figure, in yours, equation. Don't forget the scape backslash. You can define too new environments this way, and get the expansion with the <F5> key All this I've explained is in the docs of vim-latex, although, in my opinion, a bit not so well presented, because you sort of know what to write but don't where to put it. Read the docs, Greets -- Javier |
From: Baris E. <be...@an...> - 2005-12-23 07:32:28
|
Dear Javier >create (or modify) the file ~/.vim/ftplugin/tex.vim, under the directory you wrote above I don't have tex.vim file but rather I have two files bib_latexSuite.vim, tex_latexSuite.vim and two directories latex-suite and tex. The file tex.vim is under /compiler and /indent directories. /compiler/tex.vim is about the \ll \lv and such commands and /indent/tex.vim is about indentation. So am I missing something? I will read all the available help and check all the files under ./vim but in the meantime it would be great to have a little help to speed things up. best wishes Baris >and put a line (don't >split it like my email client does) like this on it > >let >Tex_Env_{'figure'}="\\begin{figure[htbp]\\centering\<CR>\\includegraphics[w >idth=<++>] >{<++>}\<CR>\\caption{<+caption+>}\\label{fig:<+label+>}\<CR>\\end{figure}\< >CR><++>" > >the stuff between double quotes is the way you'll redefine the environment, >in >this case figure, in yours, equation. Don't forget the scape backslash. You >can define too new environments this way, and get the expansion with the ><F5> >key > >All this I've explained is in the docs of vim-latex, although, in my >opinion, >a bit not so well presented, because you sort of know what to write but >don't >where to put it. Read the docs, > >Greets >-- >Javier > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log >files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Vim-latex-devel mailing list >Vim...@li... >https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |
From: Srinath A. <sri...@gm...> - 2005-12-23 07:59:38
|
Hi, On 12/22/05, Baris Erbas <be...@an...> wrote: > > under the directory you wrote above I don't have tex.vim file but rather = I > have two files bib_latexSuite.vim, tex_latexSuite.vim and two directories > latex-suite and tex. The file tex.vim is under /compiler and /indent Take a look at the following two pages: http://vim-latex.sourceforge.net/documentation/latex-suite/customizing-late= x-suite.html http://vim-latex.sourceforge.net/documentation/latex-suite/customizing-macr= os.html#Tex_Env_name You will need to create the tex.vim file yourself if it doesn't already exist. Its not part of latex-suite. HTH Srinath |
From: Mikolaj M. <mi...@wp...> - 2003-04-08 10:57:28
|
On Mon, Apr 07, 2003 at 05:52:42PM +0100, Alessandro Platania wrote: > Hi, > I'm using vim latex with vim version 6.1.165, in Linux Redhat 8.0. > If I press <F5> in the insert mode while on an empty line, I get > the following error messages: > Error detected while processing function > Tex_FastEnvironmentInsert..Tex_package_from_line..Tex_pack_one.. > Tex_CreatePrompt: > Line 3: > E117: Unknown function: GetLisCount > E15: Invalid expression: GetListCount(a:promptList) > E121: Undefined variable: num_common > E15: Invalid expression: i <= num_common > ...and no list is displayed > What's going on? (I'm a beginner... no doubt I did some mistakes... > the vimlatex help seems to work, and many other features are OK...) Hmm. I cannot confirm this behaviour - everything works for me, but: If you exactly copy&paste messages it looks like there is a mispell: > E117: Unknown function: GetLisCount Try to find it and s/GetLisCount/GetListCount/ (List) You can try to obtain version from CVS. Some nice addtitions in last week :) (but beware cvs tarball - i have commit stupid mistake and better wait till tomorrow) m. |