Sublime Text 3 LaTeXTools plugin won't compile on Ubuntu

扶醉桌前 提交于 2019-12-04 18:58:24

I had the same problem too. I did 2 things that fixed the problem. After migrating my preferences, I opened:

/"yourUsername"/.config/sublime-text-2/Packages/LaTeXTools/builders/traditionalBuilder.py

and I removed the space after the = and before '%E:

$pdflatex = '%E -interaction=nonstopmode........

in the DEFAULT_COMMAND_LATEXMK.

Also, I changed the file:

/"yourUsername"/.config/sublime-text-2/Packages/LaTeXTools/LaTeXTools.default-settings

specifically in the "Platform settings: adapt as needed for your machine" I changed the "linux" section:

from "texpath" : "/usr/texbin"

to "texpath" : "$PATH:/usr/texbin"

After saving the changes, I went to Preferences->Package Settings->LaTexTools and selected Reconfigure LaTexTools and migrate settings.

Restart Sublime and Ready.

I use sublime-text-2 in Arch Linux but I think the changes will work.

I'm the author of the LaTeXTools plugin. You don't need to edit the traditionalBuilder.py file. There is an option called "command" under "builder_settings" in LaTeXTools.sublime-settings. set the latexmk command there. It's all explained in the README.

BTW, do not touch the LaTeXTools.default-settings file. There's no need, and it will be clobbered next time you update the plugin. Rather, regenerate the settings (Reconfigure LaTeXTools... option) and edit LaTeXTools.sublime-settings in the User directory. Again, the README explains this. Thanks!

For me, changing the compiler option to "simple" (pdflatex) instead of "traditional" (latexmk) worked!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!