需要分两步走:
1、tex源码转为dvi
latex fileName.tex
2、dvi文件转换为pdf
dvipdfm fileName.dvi
例如:latex经典的helloworld如下:
1、编辑源码:hellol.tex,内容:
1 \documentclass{article} 2 \begin{document} 3 ``Hello world!'' from \LaTeX. 4 \end{document}
2、编译源文件:
latex hello.tex
3、转换成pdf文件:
dvipdfm hello.dvi
4、查看文件:
okcular hello.pdf
如下:
https://www.zhihu.com/question/62943097