TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from stackoverflow.com Oct 6 '11 at 11:03

This question came from our site for professional and enthusiast programmers.

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

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.