On 1 Nov 2009, at 16:13 , YueJun Yin wrote:

> On 11/01/2009 01:29 PM, peng shao wrote:

>> On Sun, Nov 1, 2009 at 12:41 PM, YueJun Yin<yjyi...@gmail.com>   
>> wrote:
>>
>>> Hi
>>> I am composing my thesis using vim-latex suite. Every time I use  
>>> compile
>>> function, it only runs 1 time. I have a main file and several other
>>> files that are \include in the main file. I typed `ll' on the main  
>>> file,
>>> it only runs 1 time. Could anybody help me on this issue? Thanks.

>>
>> Hi Yue-Jun:
>>
>> I never tried this, but maybe you would like to look into
>> http://vim-latex.sourceforge.net/documentation/latex-suite/latex-project.html
>> if it were any helpful. :)
>
> peng
> Thanks. I read that part but did not find any helpful information. I
> have no idea how to write a *.tex.mainlatex file. There is not even an
> example.

I believe all that is necessary is for the main.tex.latexmain (Note:  
*not* ".mainlatex") file to exist in the same directory as its  
main.tex counterpart. The *.latexmain file can be an empty file; its  
contents are not ever read. It only serves as a flag to latex-suite,  
letting it know where and what the "master file" is for the project.

The idea is, when you open a TeX file, latex-suite wants to know if it  
is a "stand-alone" file or part of a larger document. It looks in the  
current directory and in all parent directories until it finds a  
*.latexmain file. Say you've created a file named  
"sample.tex.latexmain" in the parent directory, it then concludes that  
"sample.tex" is the master file for that document and, when you press  
\ll in an included file, pdflatex (or whatever TeX command you've  
setup) will be run on "sample.tex" instead.

Of course, if no .latexmain file is found, it considers the document  
to be self-contained, and it will run pdflatex on the document you are  
editing.

On the other hand, I don't know if using this protocol will cause  
latex-suite to run pdflatex enough times, but it should save you from  
having to keep the main file open, allowing you to simply type \ll on  
the \included file you're working in.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to