Re: [Vim-latex-devel] couple of questions
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sri...@gm...> - 2006-04-02 07:20:56
|
Hi Andreas, On 3/31/06, Andreas Wagner <A.W...@st...> wrote: > first of all thanks for this life-changing suite. I cannot imagine > working without it anymore. After playing around with it a bit, I Thanks for the encouragement :) These are all excellent suggestions. Some of them are pretty trivial to implement, some will require quite a bit of code rearrangement. > I'd like to suggest to have Tex_package_detected be defined also when > Tex_PackagesMenu=3D0 (else I found at least SmartDots to fail). > This is the suggestion which will probably take the longest. I am not 100% sure though, since I had very little to do with the packages portion (it was mostly done by Mikolaj Machowski). In any case, I plan to take a look at this after a few days. > Second, the handy ellipsis package takes care of ellipsis dots as > well, so that it would probably be better if SmartDots replaced the > dots with \dots instead of \ldots when it is loaded, too. Sounds good, I'll make the change. > AFAIU, in the ngerman package file, there should be lines like these: > let g:TeX_package_ngerman =3D '' > let g:TeX_package_option_ngerman =3D '' > Sounds good, I'll make this change... > Fourth, I would like to overwrite the EFC mapping (associated with > filecontents env.) with another environment (actually, not an > environment, but the footcite command from the jurabib package). So > I have this in my ~/.vim/vimfiles/ftplugin/tex/texrc: > > call IMAP('EFC',"\\footcite[<++>][<++>]{<++>}<++>",'tex') > > (I also have these in my texrc and this, i.e. S-F4, seems to work) > TexLet g:Tex_Env_footcite=3D"\\footcite[<++>][<++>]{<++>}<++>" > TexLet g:Tex_HotKeyMappings=3D'citation,quotation,quote,footcite' > > What can I do to have EFC remain mapped to the footcite env? > (With EFN and ECT which I am using for footnote and cite env resp. > command, it is working fine, too. Or are these overwritten after all, > too?) As matters stand right now, any IMAPs defined by the user are over-written by latex-suite. This should probably be considered a bug. I will fix this if it turns out it won't cause any problems. In the meanwhile, a workaround is to define the IMAPs in ~/.vim/after/ftplugin/tex.vim This file will get sourced _after_ latex-suite does its thing and it will be able to over-write the IMAP created by latex-suite. > Fifth and finally, I am trying to get together package support files > for the packages I am using -- Out of the examples on the web and in > the exmpl file, I am not sure which prefix should be prepended to > brace commands that accept one option, like \fixme[margin]{nonsense} > (I tried brd and nob, but both are giving two pairs of curly > braces...) It looks like there is no standard way of doing this! This should be easy to fix. I'll make the change soon. > I have attached another package support file, too, in case you're > interested. (But this is the one I am still planning to improve.) I am > not sure if the attachments will be stripped somewhere along the way, > tho. > I did get the attachments fine. Thanks! I'll include these in the next release. Thanks! Srinath |