Compile a DVI document from LaTeX source files. More information: https://www.latex-project.org.
latex source.tex
latex -output-directory=path/to/directory source.tex
latex -halt-on-error source.tex