1、问题
原先可正常编译的tex工程,今天编译却始终出错。以下报的两个错误,虽然内容不一样,但是出错原理是一样的,解决方案也是一样的。
Error:Make sure that you have installed a (La)TeX distribution e.g. MiKTeX or TeX
Error:Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode "demo".tex
2、解决方案
-
这个可能是软件在关联程序时,出现了点问题,可以打开texstudio操作界面,按如下方法手动关联程序:
-
将图片上从LaTeX至LuLaTeX,Divps至Ps2pdf,Bibtex至Bibter这些以exe结尾,手动添加各项路径即可(
点击右边淡蓝色的保存按钮;如果不知道你的pdflatex.exe在哪里,直接在你的miktex安装文件夹中搜索一下,定位一下
),路径末尾的指令是自动添加上去的,不用修改它。例如,我的miktex位置 :D:/APP/MiKTex/miktex/bin/x64/
-
若遇到其他错误如xelatex.exe之类的一样处理,想换默认pdf打开方式的选择External PDF Viewer那一行找到你的pdf阅读器即可。
1、解决(TeXstudio)Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode的问题
2、LaTeX新手入门之TeXlive和TeXstudio的安装出现的问题
3、TeXStudio显示没有安装LaTeX发行版解决办法
4、texstudio出现Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode解决方法