文章转载自: VS Code安装LaTex-Workshop
今天打算在mac电脑上安装VS Code的 LaTex-Workshop 插件,用来编辑和预览tex文档。安装期间遇到了坑且网上没有解决方案,故特此记录,但愿能对遇到一样问题的网友有帮助。git
<pre>[11:02:17] Build root file /Users/tlanyan/Desktop/two.tex
[11:02:17] Recipe step 1: latexmk, --max-print-line=10000,-synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/tlanyan/Desktop,/Users/tlanyan/Desktop/two
[11:02:17] LaTeX build process spawned. PID: 55523.
[11:02:17] Recipe returns with error: 1/null. PID: 55523. message: log4cxx: setFile(/Users/tlanyan/Library/Application Support/MiKTeX/texmfs/data/miktex/log/latexmk.log,true) call failed.
log4cxx: IO Exception : status code = 13
log4cxx: No output stream or file set for the appender named [RollingLogFile].
* The program '{name}' could not be found.
</pre>github
sudo chmod -R 777 ~/Library/Application\ Support/MiKTeX/texmfs/data/
;