文章轉載自: 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/
;