在Sublime Text 3下配置LaTeX编辑环境

0 配置方案简要

在被前辈们告知WinEdt已经非常out of day时,我决定寻找一种优雅的LaTeXing姿势。目前使用的方案是:
Win7 x64 + Tex Live 2015 + Sublime Text 3 + LaTeXTools(Sublime的拓展工具) + SumatraPDF(Skim是Mac下的)

1 有何好处

2 具体步骤

1、安装TeXLive或MikTeX,并把安装目录加入Path环境变量
2、安装Sumatra PDF,并把安装目录加入Path环境变量
3、安装Sublime Text 3
4、在Sublime中安装Package Control
4.1、Sublime Text 3在控制台输入
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
4.2、Sublime Text 2在控制台输入
import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
打开控制台快捷键:Ctrl+~
源网站:https://packagecontrol.io/
5、在Sublime中安装LaTeXTools
6、配置Sublime
6.1、点击Preferences > Packages Settings > LaTeXTools > Reconfigure LaTeXTools and migrate settings
6.2、点击Preferences > Packages Settings > LaTeXTools > Setting-User,定位至windows部分,改成以下内容:
在Sublime Text 3下配置LaTeX编辑环境_第1张图片
7、写个latex文档,按Ctrl+B

你可能感兴趣的:(无用记录,LaTeX)