Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

Thanks.

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.

1 Answer 1

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