Q&A - 不能编译成功
jeannotes opened this issue · comments
用的最新的release版本,也试过最新提交吃的版本,都不能编译成功,log如下
- XeTeX is required to compile this document.
- Sorry!
************.
\RequireXeTeX ...}
\endgroup \fi
l.26 \RequireXeTeX
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! 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.
|...............................................
这是因为你使用的编译器不对,将编译器换成 XeLaTeX 再试试。如果你是使用的在线编译,一般点击 Setting - Compiler,可以查到具体选项。
原因详见 https://tex.stackexchange.com/questions/400825/fontspec-cannot-use-pdftex-on-overleaf
感谢,原来是编译器的原因.
@happymondaynkanta It seems you are trying to compile a file but not from this repo, since I can't get the context of your template, I suggest you google the keywords that displayed in the logs.
If you meet problems of compiling this repo on overleaf, you can have a look at README https://github.com/hijiangtao/resume/blob/master/README.md , or open a new issue for tracking the problem.