天天看點

latexstudio編譯報錯問題:無法啟動build&view:Xelatex:xelatex.exe -synctex=1 -interacion=nonstopmode分析原因

latexstudio編譯報錯問題:無法啟動build&view:Xelatex:xelatex.exe -synctex=1 -interacion=nonstopmode

  • 分析原因
    • 調整方法

分析原因

我報錯的原因雖然是一個錯誤,但其實算有兩個問題:

1之前安裝了CTEX2.9.2然後這個軟體巨坑,把我所有的環境變量都給覆寫了,包括預設的系統變量。結果我原來配置c++的環境變量也跟着一起消失了。是以各位可以的話個人還是建議用texlive吧。(當然隻是個人建議)

2忘記對軟體exe檔案設定管理者啟動

調整方法

對于問題2就不用說了,大家把軟體texstudio的exe檔案在桌面放一個快捷方式然後右鍵選擇“以管理者方式啟動“即可。

關于問題1,這裡我主要說的是win10,其他版本的大家自行百度尋找系統環境變量選項在哪裡就好:

1 控制台——系統和安全——系統——進階系統設定

latexstudio編譯報錯問題:無法啟動build&view:Xelatex:xelatex.exe -synctex=1 -interacion=nonstopmode分析原因

選擇“環境變量”——“系統變量”——“path”,輕按兩下,添加一些預設環境變量,如下:

latexstudio編譯報錯問題:無法啟動build&view:Xelatex:xelatex.exe -synctex=1 -interacion=nonstopmode分析原因
latexstudio編譯報錯問題:無法啟動build&view:Xelatex:xelatex.exe -synctex=1 -interacion=nonstopmode分析原因

下面添加環境變量:

C:\Windows\System32

C:\Windows

C:\Windows\System32\Wbem

C:\Windows\System32\WindowsPowerShell\v1.0

C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common

latexstudio編譯報錯問題:無法啟動build&view:Xelatex:xelatex.exe -synctex=1 -interacion=nonstopmode分析原因