enter image description here

My setup is : vscode , miktek 4.7 ,strawberry perl, windows 10

I am new in latex , I can not figure out how to build pdf

  • 1
    Welcome to TeX.SE! You called pdftex instead the needed xelatex or lualatex ...
    – Mensch
    Commented Apr 17, 2022 at 19:24
  • @Mensch thanks , this is cv template so I do not what should I edit to make it run , I am using LaTeX Workshop extension Commented Apr 17, 2022 at 19:26
  • 1
    I don't use VS Code or that plugin, but I gather from this that you can first enable magic comments, and then add a comment at the beginning of the file % !TEX program = xelatex and it will use xelatex. Or you can configure your own tools/recipes.
    – frabjous
    Commented Apr 17, 2022 at 19:32

1 Answer 1


Instead of calling pdflatex file call xelatex file or lualatex file as suggested by the fontspec package error message.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .