Convert LaTeX Files to DVI and PDF Files on Linux and OS X08 Jun 2016
For all the LaTeX users out there: most of you use some kind of LaTeX editor. Usually you can trigger inside such editor the conversion of your LaTeX-based document to e.g. a PDF file.
In case you use the terminal, you can do this two-step conversion by the following commands:
latex [TeX file] dvipdfmx [DVI file]
The first command will convert your LaTeX file into a DVI file. With the second command you transform the DVI file to the more popular PDF format.