Re: [Vim-latex-cvs] vimfiles/ftplugin/latex-suite/packages ngerman,NONE,1.1
Brought to you by:
srinathava,
tmaas
|
From: Benji F. <be...@me...> - 2003-01-16 04:43:07
|
Srinath Avadhanula wrote:
> On Wed, 15 Jan 2003, Benji Fisher wrote:
>
>
>>:execute "source" expand("%:p:h") . "/german"
>>
>
>
> Agreed. Although it should be:
>
> execute 'source '.expand('<sfile>:p:h').'/german'
>
> (<sfile> instead of %)
>
>
>>\usepackage[german]{babel}
>>
>>instead of
>>
>>\usepackage{german}
>>
>
> As of now, there isn't. During the scan for \usepcackage's, the
> g:Tex_pack_supported is created which lists the packages detected...
> Unless a variable like g:Tex_{pack}_options or something similar is
> created, this is not possible. This is actually not too hard to
> implement, but even if it is implemented, I dont know how to make
> the tex quotes function use this information. We will have to revert to
> the strategy of modifying that function itself... (But I dont like that
> strategy too much because its not really scalable).
>
> Any ideas?
I was thinking that if babel is one of the packages found, then
whatever language is given as an option should be added as a package.
If the file contains
\usepackage[foo]{babel}
then pretend that it includes
\usepackage{foo}
Perhaps one way to do this would be to add a packages/babel file that
finds the options, and fakes including the packages.
--Benji
|