[Vim-latex-devel] Change compile rule
Brought to you by:
srinathava,
tmaas
|
From: Liang G. (Gmail) <lia...@gm...> - 2012-07-16 23:35:06
|
Hi,
I'm new to vim-latex, I had a silly question. I'm using latex on my mac with mvim. When I compiled it using '\ll', I assume it uses pdflatex rather than latex as all my *.eps have been converted into *.pdf.
I tried to change the compile rule to using latex. Here is what I did in ~.vim/ftplugin/latex-suite/texrc :
" ==============================================================================
" Rules: specifications of programs for compiling and viewing {{{
"
" By default, when you compile a tex file using \ll, then you will be
" generating a .dvi file. Change this line if you want to set another default.
" NOTE: Make sure that a target for this format exists in the 'Compiler rules'
" section below and is set up properly for your system.
if has('macunix')
TexLet g:Tex_DefaultTargetFormat = 'pdf'
else
TexLet g:Tex_DefaultTargetFormat = 'dvi'
endif
" A comma seperated list of formats which need multiple compilations to be
" correctly compiled.
TexLet g:Tex_MultipleCompileFormats = 'dvi'
" Uncomment this line if you compile ps files via dvi files.
TexLet g:Tex_FormatDependency_ps = 'dvi,ps,pdf' %% add pdf on the dependency %%
" ------------------------------------------------------------------------------
" Compiler rules {{{
" This is the first thing you should customize. It is set up for most common
" values, but if use some other compiler, then you will want to change this.
" As CompileFlags value you'd perhaps like to use, e.g., '-src-specials',
" but it is known that it can sometimes give different results in the output,
" so use it with care. The '-file-line-error' flag helps sanitize LaTeX error
" messages for processing by Vim.
TexLet g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode $*'
TexLet g:Tex_EscapeChars = '{}\'
TexLet g:Tex_CompileRule_ps = 'dvips -Ppdf -o $*.ps $*.dvi'
" ways to generate pdf files. there are soo many...
" NOTE: pdflatex generates the same output as latex. therefore quickfix is
" possible.
" TexLet g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode $*'
TexLet g:Tex_CompileRule_pdf = 'ps2pdf $*.ps' %% generate pdf from ps %%
" TexLet g:Tex_CompileRule_pdf = 'dvipdfm $*.dvi'
" TexLet g:Tex_CompileRule_pdf = 'dvipdf $*.dvi'
TexLet g:Tex_CompileRule_html = 'latex2html $*.tex'
TexLet g:Tex_CompileRule_bib = g:Tex_BibtexFlavor . ' $*'
" Set Tex_UseMakefile to 0 if you want to ignore the presence of a Makefile
" when deciding how to compile
TexLet g:Tex_UseMakefile = 1
" }}}
" ------------------------------------------------------------------------------
However, it turned out that there is nothing happened, every time as I used '\ll' to compile, at the bottom of the mvim shown "Ran latex 1 time(s)". And there was nothing occurred except a blank .pdf file.
Can anyone help me out?
Thank you very much,
Liang |