如何用Ctex或者Latex输出PDF格式的文件
2个回答
展开全部
可以的,除了输出PDF格式还支持生成ps文件
% example1.tex
documentclass{report}
begin{document}
This is my first {atex} typesetting example.\
this is my first atex{} typesetting example.\
this is my first atex 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
ull. we will be there soon.
nd{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
dvips -ppdf example1.dvi => 生成example1.ps
ps2pdf example1.ps => 用example1.ps 生成example1.pdf
% example1.tex
documentclass{report}
begin{document}
This is my first {atex} typesetting example.\
this is my first atex{} typesetting example.\
this is my first atex 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
ull. we will be there soon.
nd{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
dvips -ppdf example1.dvi => 生成example1.ps
ps2pdf example1.ps => 用example1.ps 生成example1.pdf
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询