用SciTE编辑latex文件的命令设置

 笔者使用了很多编辑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

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值