[Vim-latex-devel] feature request and some remarks
Brought to you by:
srinathava,
tmaas
From: Lars W. <lar...@we...> - 2005-06-23 02:35:17
|
Hi, i have some remarks about the latexSuite20041219 tarball found on sourceforge. * The package scanning only scans the current file or if exists the latexmain file. - What happens if more than one latexmain file exists? Will only the first found be used? - Should the scanning not do something like scan latexmain file and the current buffer. * I couldn't find any documentation on texproject.vim i.e. that the bla.latexmain is included via source. * the b:fragmentFile option seems to be undocumented, too. - This was the reason my hunting around started at all. I just wanted to include some header files in my current tex file and it seemed like latex-suite only supports a 1:n and 1:1 relationship of inclusion i.e. one master includes n other files or one file to be compiled includes a fragment file via setting the b:fragmentFile option to 1 but not the notion of one file includes a handfull of header files. - So my feature request is to provide a mechanism to include more than one file in the current file. In a way that all files get scanned for packages and such. Maybe an easy way would be to provide a b:fragmentFileList variable that would just contain a <some delimiter> separated list of paths to the header files. And additionally source the current file for packages + the latex-master file and all files included via b:fragmentFileList or something like that. * The behaviour of jumping to the directory of the bla.latexmain file is not documented in in the latex-suite.txt file. - if b:fragmentFile is set the Tex_CompileLatex function in compiler.vim seems to work fine but the Tex_CompileMulipleTimes() function does not i.e. it jumps first to the directory of the latexmain file before starting the compiler, which in turn cannot find the file to compile if the header file is not in the same dir. Inserting something like (in Tex_CompileMulipleTimes()) if !exists('b:fragmentFile') || b:fragmentFile == 0 call Tex_CD(Tex_GetMainFileName(':p:h')) endif seems to fix this. * In Tex_CompileLatex() the error message if the ft != tex says echo "calling Tex_RunLaTeX from a non-tex file" ^^^^^^^^^^^^ shouldn't that be Tex_CompileLatex? So that's it. Please forgive me if some of the remarks are already fixed or otherwise documented, i didn't try to hunt around in the ChangeLog or the CVS logs. Also my remarks about not decoumented features are all based on searching in the tutorial and the latex-suite.txt file via simple searching in vim like so: '/project<RET>'. So maybe i missed some of the explanations, if that is the case i am sorry to bother you with this. Thanks a lot for your attention --lars |