sjtug / SJTUThesis

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

Overleaf版本无法使用,求救 #444

Closed KikiLovesPomelo closed 4 years ago

KikiLovesPomelo commented 4 years ago

问题描述: 在release下载了sjtuthesis-overleaf-v1.0.0rc2.zip,然后登陆overleaf,上传,打开后overleaf报错,图如下(图传不上来……): Compile Error. Sorry, your LaTeX code couldn't compile for some reason. Please check the errors below for details, or view the raw log.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Critical ctex error: "fontset-unavailable" ! ! CTeX fontset `fandol' is unavailable in current mode. ! ! See the ctex documentation for further information. ! ! For immediate help type H . !...............................................

l.109 }

|''''''''''''''''''''''''''''''''''''''''''''''' | Reading the current file 'ctex-fontset-fandol.def' will stop. |............................................... !!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" ! ! The fontspec package requires either XeTeX or LuaTeX. ! ! You must change your typesetting engine to, e.g., "xelatex" or ! "lualatex"instead of plain "latex" or "pdflatex". ! ! See the fontspec documentation for further information. ! ! For immediate help type H . !...............................................

l.28 \msg_fatal:nn {fontspec} {cannot-use-pdftex}

|''''''''''''''''''''''''''''''''''''''''''''''' | This is a fatal error: LaTeX will abort. |...............................................

系统信息:

日志信息:

AlexaraWu commented 4 years ago

Overleaf 默认的编译引擎是 pdfLaTeX,你必须将其切换到 XeLaTeX 才能正确编译模版。点击编辑页面左上角的「菜单」(Menu),在「设置」(Settings) 中将「编译器」(Compiler) 设置为 XeLaTeX 即可。

在线使用说明

KikiLovesPomelo commented 4 years ago

🙇‍🙇‍🙇‍打扰了,感谢耐心解答!

WEIFENG2333 commented 2 months ago

可以了 感谢!!