latex源码到PDF文件

需要分两步走:

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

 

  

posted @ 2021-01-22 10:51  叕叒双又  阅读(494)  评论(0编辑  收藏  举报