tuna / thuthesis

LaTeX Thesis Template for Tsinghua University
https://www.ctan.org/pkg/thuthesis
LaTeX Project Public License v1.3c
4.58k stars 1.08k forks source link

模板无法编译 #802

Closed EveElseIf closed 2 years ago

EveElseIf commented 2 years ago

编译环境

编译的系统:Windows 11 TeX 发行版:MiKTeX 22.3 模板版本:v7.3.0 模板类型:doctor / master / bachelor

描述问题

make后报错,输出如下

$ make
xetex.exe thuthesis.ins
This is XeTeX, Version 3.141592653-2.6-0.999994 (MiKTeX 22.3) (preloaded format=xetex.fmt)
 restricted \write18 enabled.

Sorry, but xetex.exe did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\EveEl\AppData\Local\MiKTeX\miktex\log\xetex.log
make: *** [Makefile:32: dtx-style.sty] Error 1

其中log文件内容如下

2022-06-10 01:50:03,760+0800 INFO  xetex - this process (17056) started by wsl in directory C:\Users\EveEl\thuthesis-v7.3.0 with command line: xetex.exe thuthesis.ins
2022-06-10 01:50:03,768+0800 INFO  xetex - this is MiKTeX-XETEX 4.8.0 (0.999994) (MiKTeX 22.3)
2022-06-10 01:50:03,768+0800 INFO  xetex - allowing known shell commands
2022-06-10 01:50:03,794+0800 INFO  xetex - going to create file: xetex.fmt
2022-06-10 01:50:03,794+0800 INFO  xetex.core - start process: miktex formats build xetex --engine xetex
2022-06-10 01:50:05,383+0800 ERROR xetex - C:\Users\EveEl\AppData\Local\Programs\MiKTeX\miktex\bin\x64\miktex.exe did not succeed; exitCode: 1
2022-06-10 01:50:05,383+0800 ERROR xetex - output:
2022-06-10 01:50:05,383+0800 ERROR xetex - Building format 'xetex' with engine 'xetex'...

Sorry, but: The executed process did not succeed.

2022-06-10 01:50:05,383+0800 FATAL xetex.core - The memory dump file could not be found.
2022-06-10 01:50:05,384+0800 FATAL xetex.core - Data: fileName="xetex.fmt"
2022-06-10 01:50:05,384+0800 FATAL xetex.core - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp:697
2022-06-10 01:50:05,384+0800 FATAL xetex - The memory dump file could not be found.
2022-06-10 01:50:05,384+0800 FATAL xetex - Info: fileName="xetex.fmt"
2022-06-10 01:50:05,384+0800 FATAL xetex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2022-06-10 01:50:05,384+0800 FATAL xetex - Line: 697
2022-06-10 01:50:05,386+0800 INFO  xetex - this process (17056) finishes with exit code 1
Harry-Chen commented 2 years ago

2022-06-10 01:50:05,383+0800 FATAL xetex.core - The memory dump file could not be found. 2022-06-10 01:50:05,384+0800 FATAL xetex.core - Data: fileName="xetex.fmt" 2022-06-10 01:50:05,384+0800 FATAL xetex.core - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp:697

你的 MiKTeX 可能没有安装成功,xetex 的格式文件不存在。请尝试重新安装。

EveElseIf commented 2 years ago

可是我已经尝试过重新安装,并且我在其他tex文件中测试了xetex,是可以正常使用的。

EveElseIf commented 2 years ago

已解决,将xetex.exe改为xelatex.exe即可正常编译