Re: [Vim-latex-devel] Compiling with latexmk does not work as expected
Brought to you by:
srinathava,
tmaas
From: Niels K. <ni...@ko...> - 2012-07-05 19:43:48
|
Hi, thanks for the hint with MacVim. If I run vim from the command line it works. Running latexmk directly in MacVim (:!latexmk file) it gives me a path-error. Googled a bit more. Since I am using zsh and MacVim won't read my .zshrc, I have to set up the path in .zprofile. Now it works. Thanks a lot for the hint. Niels On 5 Jul 2012, at 21:23, Ted Pavlic wrote: > Niels -- > >>> Or could you at least attach >>> the log file generated by TeX? >> >> Just tried to compile the file from a clean directory. There is >> nothing >> generated. There's just in vim the message "Ran latex 1 time(s)". >> Therefore I think that nothing gets really called. > > That's very interesting. I notice that you're using a Mac. Are you > using vim from the Terminal, or are you using something like MacVim? > If > I recall correctly, MacVim had a setting (off by default?) that would > run the internal instance of vim through a login shell. That would > ensure your PATH was set correctly. If you didn't have the setting > set, > then you wouldn't have access to everything you might expect to have > access to. > > From your Vim, can you try and test your PATH? For example, try > something like: > > :!echo $PATH > > or, perhaps better, try: > > :!latex > > In the latter case, LaTeX should start and give you a prompt. You can > hit Cntrl+D to exit from LaTeX if it pops up. If it doesn't pop up, > then > Vim cannot find it. > > --Ted > > >>> Thanks - >> >> I have to thank that you take the time and think about my problem :) >> >> Niels >> >>>> Hi, >>>> >>>> I am trying to get something compiled with latexmk and the >>>> vim-latex-suite. When I invoke latexmk on the file in the command >>>> line >>>> it work w/out any problems. When I invoke the compile in vim I just >>>> get: >>>> "Runnning bibtex… >>>> Ran latex 1 time(s)" >>>> Even when the bib-file or references changed. >>>> >>>> commands for compilation in my .vimrc: >>>> let g:Tex_MultipleCompileFormats = 'pdf' >>>> let g:Tex_CompileRule_pdf = 'latexmk -pdf -pvc $*' >>>> let g:Tex_DefaultTargetFormat='pdf' >>>> >>>> I also tried "let g:Tex_CompileRule_pdf = 'latexmk $*'" >>>> >>>> My .latexmkrc looks like that: >>>> $pdflatex = "xelatex -synctex=1 -interaction=nonstopmode %O %S"; >>>> $bibtex_use = 2; >>>> $print_type = 'pdf'; >>>> $pdf_mode = 1; >>>> $pdf_previewer = "open -a /Applications/Skim.app"; >>>> $pdf_update_method = 0; >>>> $clean_ext = "paux lox pdfsync out"; >>>> $force_mode = 1; >>>> >>>> As written before: invoking latexmk on the file in the command line >>>> "latexmk file.tex" works as it should, only in vim it doesn't. >>>> >>>> Any ideas? >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> 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...> |