Re: [Vim-latex-devel] (La)TeX compilation
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-07-25 01:39:38
|
Hi Luc, > > if g:Tex_MainFileExpr != '' > > exec 'let retval = '.g:Tex_MainFileExpr > > return retval > > endif > > If these 4 lines of code are present within Tex_GetMainFileName(), it > sounds perfect. I wonder if I already told you about this, but I implemented the Tex_MainFileExpression we discussed before. I have updated the relevant documentation. Take a look at: http://vim-latex.sourceforge.net/documentation/latex-suite/latex-master-file.html It tells how to use Tex_MainFileExpression. > I was thinking of a function that centralizes all this > mainfile-determination heuristic. > => the functions depending on the project's main-file are easy to > write/maintain. > This is an excellent idea. Initially I was thinking that Tex_GetMainFileName() will always return a filename unlike the present way in which it returns a non-empty string only if a .latexmain file is present. In the future, it will just return expand('%') if a .latexmain is not found... However, there is no good way to make Tex_GetMainFileName also contain logic of whether a 'makefile' exists etc. Srinath |