如何用Ctex或者Latex输出PDF格式的文件

2025年01月06日 12:43
有1个网友回答
网友(1):

除了输出PDF格式还支持生成ps文件 % example1.tex \documentclass{report} \begin{document} This is my first {\LaTeX} typesetting example.\\ This is my first \LaTeX{} typesetting example.\\ This is my first \LaTeX\ typesetting example.\\ I am Mr. Edward G.J. Lee, G.J. is a abbreviation of my name.\\ I am Mr.\ Edward G.J. Lee, G.J. is a abbreviation of my name.\\ Please see Appendix A. We will be there soon.\\ Please see Appendix A\null. We will be there soon. \end{document} 比如以上这个tex文档,可以这样编译生成pdf: 1.直接生成pdf pdflatex example1.tex 2.用dvi文件生成生成pdf latex example1.tex => 生成example1.dvi dvipdfm[x] example1.dvi => 把example1.dvi 转为example1.pdf 3.用ps文件生成pdf latex example1.tex => 生成example1.dvi