LaTeX
If your LaTeX code contains only EPS figures, you can use the
latexcommand (also OK to usepdflatex) to compile your code.If you use bibtex, you have to compile your code using commands
latex,bibtex,latexandlatexin sequence.If you use the
psfragpackage to edit EPS figures (only work for EPS figures), you have to compile your LaTeX code using commandslatex,dvi2psandps2pdfin sequence.To use the
tex4httool to convert LaTeX to other formats, you have to use thelatexcommand to compile. See this post for more information.
pdflatex
If you use non-EPS figures in your LaTeX code, you have to use the
pdflatexcommand to compile your code.If you use bibtex, you have to compile your code using commands
pdflatex,bibtex,pdflatexandpdflatexin sequence.Generally speaking the
pdflatexcommand is preferred tolatex.
xelatex
For compiling LaTeX code containing CJK characters.
pdfTexify
A command seen in WinEdt for compiling LaTeX code repeatedly until all issues are resolved. This can be a more convenient alternative to apply commands
pdflatex,bibtex,pdflatexandpdflatexwhen you use bibtex in your LaTeX code. Surely one can write bash functions to simplify this process in Linux easily.