[Vim-latex-cvs] vimfiles/ftplugin/latex-suite envmacros.vim,1.28,1.29
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-01-21 22:10:51
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv10832 Modified Files: envmacros.vim Log Message: - If g:Tex_package_detected contains 'graphicx' then use \includegraphics instead of \psfig in the EFI mapping. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** envmacros.vim 20 Jan 2003 19:59:00 -0000 1.28 --- envmacros.vim 21 Jan 2003 22:10:46 -0000 1.29 *************** *** 18,21 **** --- 18,22 ---- " Define environments for IMAP evaluation " {{{ let s:figure = "\\begin{figure}[<+htpb+>]\<cr>\\begin{center}\<cr>\\psfig{figure=<+eps file+>}\<cr>\\end{center}\<cr>\\caption{<+caption text+>}\<cr>\\label{fig:<+label+>}\<cr>\\end{figure}<++>" + let s:figure_graphicx = "\\begin{figure}[<+htpb+>]\<cr>\\begin{center}\<cr>\\includegraphics{<+file+>}\<cr>\\end{center}\<cr>\\caption{<+caption text+>}\<cr>\\label{fig:<+label+>}\<cr>\\end{figure}<++>" let s:minipage = "\\begin{minipage}[<+tb+>]{<+width+>}\<cr><++>\<cr>\\end{minipage}<++>" let s:picture = "\\begin{picture}(<+width+>, <+height+>)(<+xoff+>,<+yoff+>)\<cr>\\put(<+xoff+>,<+yoff+>){\\framebox(<++>,<++>){<++>}}\<cr>\\end{picture}<++>" *************** *** 339,343 **** return IMAP_PutTextWithMovement(figure) else ! return IMAP_PutTextWithMovement(s:figure) endif endfunction --- 340,348 ---- return IMAP_PutTextWithMovement(figure) else ! if g:Tex_package_detected =~ '\<graphicx\>' ! return IMAP_PutTextWithMovement(s:figure_graphicx) ! else ! return IMAP_PutTextWithMovement(s:figure) ! endif endif endfunction |