Re: [Vim-latex-devel] Able to do compilation in a sub-directory?
Brought to you by:
srinathava,
tmaas
From: Mike R. <ri...@um...> - 2011-02-21 18:09:42
|
Hi Ted, On Mon, Feb 21, 2011 at 12:18 PM, Ted Pavlic <te...@te...> wrote: > Mike -- > >> I always sort of just took the auxiliary files for granted, but now I >> like the idea of avoiding the clutter. > > That's valuable clutter though. There are BBL files in there to > inspect/change; there are AUX files for other tools to use; etc. Not > only that, having the AUX available allows for quicker edits later. > Imagine you have a large book that takes a few seconds each pass... If > you changed a single typo somewhere, you wouldn't want to run every pass > again. So I guess one man's trash is... :) Are you saying you inspect these files by hand, regularly? I almost never have, and I never change them manually. So keeping them around, but out of sight, seems desirable. >> let g:Tex_DefaultTargetFormat='pdf' >> let g:Tex_MultipleCompileFormats='pdf' >> let g:Tex_CompileRule_pdf='mkdir -p .build' > > Does that solution still allow LaTeX to automatically run BibTeX and > makeindex as needed? It seems like it would break BBL/index generation. <?> Good point, in fact it does break BibTeX et al. > > Because you're doing dvi->ps->pdf (as everyone should be (at least those > who don't mind some of the (usually minor) issues with using > transparency in EPS images)), it seems like there would be a better way. > You can configure LaTeX to do the dvi,ps,pdf sequence for you, but you > can add your cleanup stuff to the PDF rule. That way your AUX files > stick around for Vim-LaTeX, and they disappear only at the very end when > the final PDF is produced. I've tried to configure this before, but had no luck. Based on latex-suite.txt, I thought the following would do the trick: let g:Tex_DefaultTargetFormat='pdf' let g:Tex_MultipleCompileFormats='dvi,ps,pdf' let g:Tex_FormatDependency_pdf='dvi,ps,pdf' let g:Tex_CompileRule_dvi='mkdir -p .build && cp .build/* . ;' \.'latex -interaction=nonstopmode -shell-escape $*.tex' let g:Tex_CompileRule_ps='dvips -P pdf -q $*.dvi && rm -f $*.dvi' let g:Tex_CompileRule_pdf='ps2pdf $*.ps' \.'&& rm -f $*.ps' \.'&& mv *.aux *.bbl *.bl *.blg *.lof *.log *.lot *.nav *.out ' \.' *.snm *.toc .build/' But when I set it this way, it just compiles the dvi file and then stops. What am I missing? > > Just a thought... > --Ted > > -- > Ted Pavlic <te...@te...> > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |