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

This question already has an answer here:

I am new to TeX world, and I use pdfLatex very often.

But sometimes pdfLatex do not work. So I begin to wonder what the difference between all these tex commands.

Please give me some guiding information about all these command to make me stay away from confusion.

I will appreciate every comment or answer.


share|improve this question

marked as duplicate by lockstep, m0nhawk, Jake, Werner, mafp Jul 24 '13 at 21:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Basically, tex consumes plain TeX files, not LaTeX ones. And it generates DVI files, not PDFs. pdftex consumes TeX but generates PDFs. latex consumes LaTeX, but generates DVIs.

I do not know what do you mean by ‘all the others’. The one variation I use is XeTeX, which always generates PDFs; its xelatex command command, thus, consumes XeLaTeX files and generates PDFs.

share|improve this answer
Was editing out the schwa and the Greek characters really necessary, Mr. Wright? Honest question, if it is a rule, so be it, even if I think it quite unnecessary. – lfd Jul 24 '13 at 20:40
Thanks, but what do you mean by TeX files, LaTeX files, XeLaTeX files ...? I think the have the same file extension .tex. Do they have different styles? If so, how can I decide which is which style? – eccstartup Jul 25 '13 at 0:38
@lfd: Using plain ASCII makes things more searchable. – Werner Jul 25 '13 at 7:16
It is not a matter of style, but content. The extension is just a convention; what matters is which commands are inside. Just compare samples, or grab basic documents such as Not so short introduction to LaTeX and any XeLaTeX one, and the differences should be obvious. But to put it in a few words, TeX is the typesetting language; it being Turing complete, LaTeX is a set of macros enabling one to do semantic markup and profit from stylesheets; and XeLaTeX is an elaboration of LaTeX allowing easy use of Unicode, modern fonts &c. – lfd Jul 25 '13 at 11:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.