Re: [Vim-latex-devel] Makefile
Brought to you by:
srinathava,
tmaas
From: Ted P. <te...@te...> - 2012-06-01 02:34:37
|
Raniere -- See: :help Tex_UseMakefile By default, if vim-latex finds a Makefile, it will set makeprg to: make pdf So if your Makefile doesn't have a pdf target, it will fail. You can simply define a pdf target that depends upon the target you actually care about (or rename the target you care about "pdf"). Alternatively, you can set g:Tex_UseMakefile to 0 and LaTeX-suite will set makeprg to whatever you have in: g:Tex_CompileRule_pdf which you can read about in: :help Tex_CompileRule_format For example, in your .vimrc you can put: let g:Tex_UseMakefile = 0 let g:Tex_CompileRule_pdf = "make" which will make latex-suite call simply "make" when you use "\ll". Having said that, are you familiar with using latexmain files? See: :help latex-master-file By creating a latexmain file (e.g., "mymainfile.latexmain" or "mymainfile.tex.latexmain") in your working directory (which you can add to your git repo), you tell vim-latex that regardless of which file you're editing, you want it to run pdflatex (or latex) on a particular main file in the directory. Moreover, the contents of the latexmain file help to setup project-specific configuration parameters for the directory. That way you don't have to change your whole .vimrc for a single directory. (you also don't have to stick to the "latexmain" extension; see the help I referenced above for more details) Does that help? --Ted On Thu, May 31, 2012 at 9:41 PM, Raniere Gaia Silva <r.g...@gm...> wrote: > Hello all, > I'm working in some independent tex files at the same directory and > this directory is sharing with git. > I would like to have a easy way to compile all tex file to pdf so I > write a Makefile. > Unfortunate, the vim-latex has some problem with the Makefile and I'm > getting the message > > make: *** No rule to make target `pdf'. Stop. > > Can anyone say if there is a way to fix it? > Current, I remove the Makefile and write a bash script. > > Thanks, > Raniere > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel -- Ted Pavlic <te...@te...> |