Thread: [Vim-latex-devel] beamer support
Brought to you by:
srinathava,
tmaas
From: Raphael C. <cer...@gm...> - 2013-06-21 02:26:15
|
Hi guys, Does vim-latex have support for beamer? I searched but couldn't find any. |
From: Francesco M. <fra...@gm...> - 2013-06-21 05:28:40
|
Hi Rafael, I used vim-latex with beamer a couple of weeks ago without problems. Francesco Il giorno 21/giu/2013 04:26, "Raphael Cervantes" < cer...@gm...> ha scritto: > Hi guys, > Does vim-latex have support for beamer? I searched but couldn't find any. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > |
From: Raniere S. <ra0...@im...> - 2013-06-21 11:56:56
|
Hi Rafael, > Does vim-latex have support for beamer? I searched but couldn't find any. What do you mean by support? AFAIK, Vim-latex haven't yet any template for beamer's environments. IMHO, it isn't need because it haven't many options. As Francesco, I used vim-latex with beamer some times without any problem. Raniere |
From: Rudra B. <rud...@ao...> - 2013-06-21 11:55:39
|
In support, if you mean, if it has any beamer template or key bindings for frame, frametitle etc. then it does not. You have to do it in generic way. But yes, I use it without problem. On Thu, 2013-06-20 at 22:26 -0400, Raphael Cervantes wrote: > Hi guys, > > Does vim-latex have support for beamer? I searched but couldn't find > any. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |
From: Mike R. <ri...@um...> - 2013-06-21 17:34:29
|
Hi Raphael, vim-latex doesn't have any extra support for beamer, but I've added the following mappings and customizations in ~/.vim/ftplugin/tex.vim to help with it: " mappings for frame, block, and columns environments call IMAP ('EBFE', s:undostring."\\begin{frame}\<cr>{<++>}\<cr>" \ . "<++>\<cr>\\end{frame}<++>", 'tex') call IMAP ('EBBL', s:undostring."\\begin{block}{<++>}\<cr>" \ . "<++>\<cr>\\end{block}<++>", 'tex') call IMAP ('EBCO', s:undostring."\\begin{columns}\<cr>" \ . "\\column{.5\\textwidth}\<cr>" \ . "<++>\<cr>\\end{columns}<++>", 'tex') " this causes frames to be folded. sometimes the parsing goes poorly " and a bunch of extraneous folds are added, but it's still nice to " fully fold and unfold the frames using zC and zO. let Tex_FoldedEnvironments = 'verbatim,comment,frame,eq,gather,align,' \.'figure,table,thebibliography,keywords,abstract,' \.'titlepage' Hope this is useful! Cheers, Mike On Fri, Jun 21, 2013 at 7:55 AM, Rudra Banerjee <rud...@ao...> wrote: > In support, if you mean, if it has any beamer template or key bindings > for frame, frametitle etc. then it does not. You have to do it in > generic way. > But yes, I use it without problem. > > On Thu, 2013-06-20 at 22:26 -0400, Raphael Cervantes wrote: >> Hi guys, >> >> Does vim-latex have support for beamer? I searched but couldn't find >> any. >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Vim-latex-devel mailing list >> Vim...@li... >> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |
From: Alessandro P. <ale...@la...> - 2013-06-21 18:50:08
|
On 21 June 2013 19:33, Mike Richman <ri...@um...> wrote: > " mappings for frame, block, and columns environments > call IMAP ('EBFE', s:undostring."\\begin{frame}\<cr>{<++>}\<cr>" > \ . "<++>\<cr>\\end{frame}<++>", 'tex') > call IMAP ('EBBL', s:undostring."\\begin{block}{<++>}\<cr>" > \ . "<++>\<cr>\\end{block}<++>", 'tex') > call IMAP ('EBCO', s:undostring."\\begin{columns}\<cr>" > \ . "\\column{.5\\textwidth}\<cr>" > \ . "<++>\<cr>\\end{columns}<++>", 'tex') > > " this causes frames to be folded. sometimes the parsing goes poorly > " and a bunch of extraneous folds are added, but it's still nice to > " fully fold and unfold the frames using zC and zO. > let Tex_FoldedEnvironments = 'verbatim,comment,frame,eq,gather,align,' > \.'figure,table,thebibliography,keywords,abstract,' > \.'titlepage' Yes, although something like: let g:Tex_Env_frame = \\begin{frame}\<cr>{<++>}\<cr><++>\<cr>\\end{frame}<++>" call IMAP('EBFE', "\<C-r>=Tex_PutEnvironment('frame')\<cr>", 'tex') (and similarly for the others) feels cleaner. Just my 2c. Alessandro |
From: Raphael C. <cer...@gm...> - 2013-06-22 13:42:13
|
Thank you all for the insight. I find the suggestions on here helpful :) On Fri, Jun 21, 2013 at 2:49 PM, Alessandro Pezzoni < ale...@la...> wrote: > On 21 June 2013 19:33, Mike Richman <ri...@um...> wrote: > > > " mappings for frame, block, and columns environments > > call IMAP ('EBFE', s:undostring."\\begin{frame}\<cr>{<++>}\<cr>" > > \ . "<++>\<cr>\\end{frame}<++>", 'tex') > > call IMAP ('EBBL', s:undostring."\\begin{block}{<++>}\<cr>" > > \ . "<++>\<cr>\\end{block}<++>", 'tex') > > call IMAP ('EBCO', s:undostring."\\begin{columns}\<cr>" > > \ . "\\column{.5\\textwidth}\<cr>" > > \ . "<++>\<cr>\\end{columns}<++>", 'tex') > > > > " this causes frames to be folded. sometimes the parsing goes poorly > > " and a bunch of extraneous folds are added, but it's still nice to > > " fully fold and unfold the frames using zC and zO. > > let Tex_FoldedEnvironments = 'verbatim,comment,frame,eq,gather,align,' > > > \.'figure,table,thebibliography,keywords,abstract,' > > \.'titlepage' > > Yes, although something like: > > let g:Tex_Env_frame = > \\begin{frame}\<cr>{<++>}\<cr><++>\<cr>\\end{frame}<++>" > call IMAP('EBFE', "\<C-r>=Tex_PutEnvironment('frame')\<cr>", 'tex') > > (and similarly for the others) feels cleaner. Just my 2c. > > Alessandro > > |