Hi Rudra,
I hope that the following helps you. In my .vim/ftplugin/tex.vim I've
redefined the default figure environment [1] added a new figure environment
[1] and mapped the new environment to EFS [3].
[1] let g:Tex_Env_figure =
"\\begin{figure}\<cr>\\centering\<cr>\\includegraphics[width=80mm,
keepaspectratio]{<+file+>}\<cr>\\caption{<+caption text+>}\<cr>\\label{fig:
<+label+>}\<cr>\\end{figure}<++>"
[2] let g:Tex_Env_figures =
"\\begin{figure*}\<cr>\\centering\<cr>\\includegraphics[width=160mm,
keepaspectratio]{<+file+>}\<cr>\\caption{<+caption text+>}\<cr>\\label{fig
:<+label+>}\<cr>\\end{figure*}<++>"
[3] call IMAP ('EFS', g:Tex_Env_figures, 'tex')
Cheers,
Fra
2014-09-04 14:32 GMT+02:00 Rudra Banerjee <bnrj.ru...@live.com>:
> Hi,
> In vim-latex, there is two IMAP for figure:
> let s:figure = "\\begin{figure}[<+htpb+>]\<cr>\\centering\<cr>\
> \psfig{figure=<+eps file+>}\<cr>\\caption{<+caption text+>}\<cr>\
> \label{" . s:labelprefix_figure . "<+label+>}\<cr>\\end{figure}" .
> s:end_with_cr . "<++>"
> let s:figure_graphicx = "\\begin{figure}[<+htpb+>]\<cr>\\centering
> \<cr>\\includegraphics{<+file+>}\<cr>\\caption{<+caption text+>}\<cr>\
> \label{" . s:labelprefix_figure . "<+label+>}\<cr>\\end{figure}" .
> s:end_with_cr . "<++>"
>
> And, EFI always picks the s:figure, and I am unable to access
> s:figure_graphics.
> I have also tried to put the figure_graphics to my vimrc and rename it
> to figure, which is givine error:
> $ vi i.tex
> Error detected while processing ~/.vimrc:
> line 110:
> E121: Undefined variable: s:labelprefix_figure
> E15: Invalid expression: "\\begin{figure}[<+htpb+>]\<cr>\\centering
> \<cr>\\includegraphics{<+file+>}\<cr>\\caption{<+caption text+>}\<cr>\
> \label{" . s:labelprefix_figure . "<+label+>}\<cr>\\end{figure}" .
> s:end_with_cr . "<++>"
>
> I am just an enduser without much knowledge of twiking it.
> Is there any way I can use EFI for figure_graphicx?
>
>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel