sjtug / SJTUThesis

上海交通大学 LaTeX 论文模板 | Shanghai Jiao Tong University LaTeX Thesis Template
Apache License 2.0
3.29k stars 787 forks source link

main.tex 编译不成功 #559

Closed zdgithub closed 3 years ago

zdgithub commented 3 years ago

问题描述: 我已经下载了1.0.0.rc7 版本的压缩包,解压后先执行了Compile.bat,再运行main.tex, 编译依然说sjtuthesis.cls找不到

系统信息:

日志信息: File sjtuthesis.cls not found.

kailzhu commented 3 years ago

Windows 10 + Miktex出现同样的错误提示。

zdgithub commented 3 years ago

我通过运行Compile.bat可以成功生成main.pdf,但是如果我用TexStudio打开main.tex并运行,则有如下日志:

This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX) (preloaded format=xelatex 2020.8.9)  24 DEC 2020 11:45
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**main.tex
(./main.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06>

! LaTeX Error: File `sjtuthesis.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: 
! Emergency stop.
<read *> 

l.11 ^^M

*** (cannot \read from terminal in nonstop modes)

Here is how much of TeX's memory you used:
 21 strings out of 479418
 368 string characters out of 5888106
 245334 words of memory out of 5000000
 17639 multiletter control sequences out of 15000+600000
 532338 words of font info for 24 fonts, out of 8000000 for 9000
 1348 hyphenation exceptions out of 8191
 14i,0n,17p,85b,10s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
AlexaraWu commented 3 years ago

使用编辑器内置功能的请自行设置使用 Latexmk 编译。

zdgithub commented 3 years ago

使用编辑器内置功能的请自行设置使用 Latexmk 编译。

你好,请问TexStudio里面怎么配置latexmk编译,我把默认编译器选为了latexmk,还是编译不成功 image

zdgithub commented 3 years ago

再把构建命令改成latexmk -xelatex -silent -synctex=1 %后就成功啦,Thx!

xsola commented 2 years ago

再把构建命令改成latexmk -xelatex -silent -synctex=1 %后就成功啦,Thx!

Thanks, it really works on macOS