How can I create a PDF file from .tex file using xetex.exe?

What should I enter to console? I tried different combinations like xetex -pdf filepath and so but it doesn't work.

  • 3
    Try xetex.exe /? or xetex.exe /h. – Blender Oct 5 '11 at 21:47
  • perhaps pdfxetex.exe? like pdflatex.exe is needed instead of latex.exe for producing pdf output. (though you didn't tell us, i assume you are using miktex distribution) – Vlad Oct 5 '11 at 21:54
  • Typing xetex story-zapfino.tex in the shell produced a PDF file for me on Max OSX with TeXLive2011. I don't use xetex (had to download a file from tug.org/mactex/src/Demos/XeTeX-showcase) so not likely that i have any settings specific to this. – Peter Grill Oct 5 '11 at 22:08
  • I wrote xelatex filename but then I got the following error 1.52 \char_make_active:n{"20}% and I couldn't find anything helpful on Int – user8404 Oct 6 '11 at 19:03
  • 1
    Welcome to TeX.sx! Your question was migrated here from StackOverflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Joseph Wright Oct 6 '11 at 19:10

XeTeX automatically outputs PDF (usually) so don’t enter any extra arguments. Try xetex foo for a TeX document, and xelatex foo for a LaTeX document.


Try xelatex... highly likely, you don't have a tex file but you do have a latex file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy