在用Texmaker4.5+Miktex2.9配置路徑時,一直出現如下錯誤:
Error : could not start the command : pdflatex -synctex=1 -interaction=nonstopmode "1".tex
於是上網各種搜索,谷歌百度,最後在知乎上發現一個可以解決這個問題的辦法,僅拿來分享一下:
這是原鏈接:
前期的配置如下:
首先先安裝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.說是讓我們重新啓動電腦來讓系統的路徑起作用
然後作者重新啓動電腦發現確實成功了。