Texmaker4.5+Miktex2.9 Latex配置出錯

在用Texmaker4.5+Miktex2.9配置路徑時,一直出現如下錯誤:

Error : could not start the command : pdflatex -synctex=1 -interaction=nonstopmode "1".tex

於是上網各種搜索,谷歌百度,最後在知乎上發現一個可以解決這個問題的辦法,僅拿來分享一下:

這是原鏈接:

http://tex.stackexchange.com/questions/113433/unable-to-compile-texmaker-4-0-2-with-miktex-2-9/113680#113680

前期的配置如下:

首先先安裝Miktex2.9,然後找到(如下圖)

將I:\工具\MikTex\miktex\bin\x64路徑,添加到系統變量中

此電腦-屬性-高級系統設置-環境變量-系統變量中path-新建-將路徑添加即可

接下來是Texmaker3.5的配置:

首先去官網下載最新的Texmaker,然後安裝好以後,在選項中-配置Texmaker-命令中選擇pdf查看器選擇嵌入方便我們隨時看到命令的處理效果,在快速構建命令中選擇PdfLatex+查看pdf即可

接下來我們測試

\documentclass{article}

\begin{document}
 Hello World!
\end{document}

首先出現如下錯誤:

Error : could not start the command : pdflatex -synctex=1 -interaction=nonstopmode "1".tex

別人的回答:for pdflatex in TeXmaker see if you have pdflatex -synctex=1 -interaction=nonstopmode %.tex in pdflatex command box. You might need to restart the windows to take the miktex bin path into effect.說是讓我們重新啓動電腦來讓系統的路徑起作用

然後作者重新啓動電腦發現確實成功了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章