Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q&A - 不能编译成功 #3

Closed
jeannotes opened this issue Jun 22, 2019 · 4 comments
Closed

Q&A - 不能编译成功 #3

jeannotes opened this issue Jun 22, 2019 · 4 comments
Labels

Comments

@jeannotes
Copy link

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

@hijiangtao
Copy link
Owner

这是因为你使用的编译器不对,将编译器换成 XeLaTeX 再试试。如果你是使用的在线编译,一般点击 Setting - Compiler,可以查到具体选项。

原因详见 https://tex.stackexchange.com/questions/400825/fontspec-cannot-use-pdftex-on-overleaf

@ZJsnowman
Copy link

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

@hijiangtao hijiangtao changed the title 不能编译成功 Q&A - 不能编译成功 Jul 27, 2020
@hijiangtao hijiangtao pinned this issue Jul 27, 2020
@happymondaynkanta
Copy link

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

@hijiangtao
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants