笔者使用了很多编辑tex文件的软件,感觉还是SciTE好用,SciTE在编辑tex文本的时候具有语法高亮显示的功能,但若要将tex文件转换为pdf文件,还需要对SciTE进行配置,下面是一些latex命令在SciTE中配置的方法,打开tex.properties文件,加入下面的内容,重新启动SciTE,配置完毕。
command.name.0.*=LaTex #运行latex命令,生成dvi文件
command.name.1.*=xeLaTex #运行xelatex命令,生成pdf文件
command.name.2.*=Dvips #运行dvips命令,生成ps文件
command.name.3.*=Ps2Pdf #运行ps2pdf文件,生成pdf文件
command.name.4.*=View dvi #查看dvi文件
command.subsystem.4.*=1
command.name.5.*=View ps #查看ps文件
command.subsystem.5.*=1
command.name.6.*=View pdf #查看pdf文件
command.subsystem.6.*=1
command.name.7.*=Tex2Html #将tex文件输出为网页文件
command.name.8.*=Tex2odt #将tex文件输出为OpenOffice文档
command.name.9.*=BibTex #创建文献库
command.name.10.*=MakeIndex #创建索引
command.name.11.*=PDFLatex #运行pdflatex命令,生成pdf文件
command.name.12.*=gbk2nui #创建中文文献库
command.name.13.*=mybuildtex #将上述命令整合在一起的批处理命令
command.0.$(file.patterns.latex)=latex $(FileName).tex
command.1.$(file.patterns.latex)=xelatex $(FileName).tex
command.2.$(file.patterns.latex)=dvips $(FileName).dvi
command.3.$(file.patterns.latex)=ps2pdf $(FileName).ps
command.4.$(file.patterns.latex)="C:/Program Files/MiKTeX 2.7/miktex/bin/yap.exe" $(FileName).dvi
command.5.$(file.patterns.latex)="C:/Program Files/Ghostgum/gsview/gsview32.exe" $(FileName).ps
command.6.$(file.patterns.latex)="C:/Program Files/Adobe/Reader 9.0/Reader/AcroRd32.exe" $(FileDir)/$(FileName).pdf
command.7.$(file.patterns.latex)=htlatex $(FileName).tex
command.8.$(file.patterns.latex)=oolatex $(FileName).tex
command.9.$(file.patterns.latex)=bibtex $(FileName).tex
command.10.$(file.patterns.latex)=makeindex $(FileName).tex
command.11.$(file.patterns.latex)=pdflatex $(FileName).tex
command.12.$(file.patterns.latex)=gbk2uni $(FileDir)/$(FileName).out
command.13.$(file.patterns.latex)=mybuildtex.bat $(FileDir)/$(FileName)
其中mybuildtex.bat是由 tex文件生成pdf文件所需命令的组合,实际应用时,只要在SciTE中运行此批处理文件,就会直接将tex文件输出为pdf文件,使用起来非常方便,具体内容如下:
latex %1
makeindex %1
bibtex %1
latex %1
latex %1
gbk2uni %1
latex %1
dvips %1
ps2pdf %1.ps