thomasjo / atom-latex

Compile LaTeX or knitr documents from within Atom
https://atom.io/packages/latex
MIT License
223 stars 42 forks source link

Error Occurred While Building LaTeX - latexmk not working #540

Closed TheOfficialDarthVader closed 4 years ago

TheOfficialDarthVader commented 4 years ago

What I've done:

I can confirm that Perl works as I am able to run both it and the latexmk script from Command Prompt. I can also use latexmk from TexStudio, but this required setting Commands ($PATH) to C:\Perl64\bin. I can run pdflatex as the build engine in atom-latex. It is just latexmk that is not working.

Given what I had to do to get Perl scripts to work with TexStudio this would seem to suggest the Environment Variables being passed are in some way incorrect. I am aware there is a work around on Using latexmk with MiKTeX. However, I can't find the Tex Path option in the atom-latex settings.

The build log is just a single line: > latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf "Cover Letter"

So I'm not sure where it is getting hung up, I assume it is an issue with not finding Perl.

thomasjo commented 4 years ago

Did you install atom-latex or latex? This repo is for the latter — https://atom.io/packages/latex

TheOfficialDarthVader commented 4 years ago

I have installed atom-latex 0.9.1

thomasjo commented 4 years ago

OK, then you need to open this issue on the correct repository: https://github.com/ashthespy/Atom-LaTeX