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,然后找到(如下图)

Texmaker4.5+Miktex2.9 Latex配置出错_第1张图片

将I:\工具\MikTex\miktex\bin\x64路径,添加到系统变量中

此电脑-属性-高级系统设置-环境变量-系统变量中path-新建-将路径添加即可

Texmaker4.5+Miktex2.9 Latex配置出错_第2张图片

接下来是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.说是让我们重新启动电脑来让系统的路径起作用

然后作者重新启动电脑发现确实成功了。

你可能感兴趣的:(Latex)