hijiangtao / resume

个人中文简历 Latex 源码 https://hijiangtao.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Q&A - 不能编译成功

jeannotes opened this issue · comments

commented

用的最新的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

感谢,原来是编译器的原因.

I had similar problem while trying to my file on Overleaf. The simple steps are

  1. Click on the menu bar to open up more options.
  2. go to Compiler and select "XeLaTex" as your compiler
  3. Then return to your main.tex file and compile your project.

I have attached some pictures below as a guide.

1
2
3
4

@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.