|||
原先可正常编译的tex工程,今天编译却始终出错,无法创建pdf文件,提示如下:
Error: Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode
Error: Could not start the command: bibtex.exe
仔细思索,原来最近新装了python,将python和java编译器路径添加至系统变量Path,覆盖(可能抹去,因为修复了Path才显示MikTex编译器)了原先的MikTex编译器,使得tex工程始终无法编译。
一种解决办法是重装MikTex,另一种简单的办法如下:
1. 打开MikTex 2.9\Maintenance (Admin)\MikTex Settings (Admin),管理员权限确定即可;
2. 在打开的窗口中点击 "Refresh FNDB"、"Update Formats",稍等片刻;
3. 打开系统变量Path,可看到MikTex 2.9已添加,再次编译原Tex工程可正常执行。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-7-18 10:31
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社