A document.tex file is required to use the LaTex program .
Then you give your document.tex file as input to the TeX program ( with the LaTeX macros loaded ) , and TeX writes out a file suitable for viewing onscreen or printing .
LaTeX