安装sublime3 网上随便找个注册码破解
安装package control
sublime ctrl+` 输入下面:
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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)
安装成功在Preference->Package Control点击
注意会报错是因为
安装配置latextool
install package
package control也在更新,所以根据提示更新’h= ‘即可
选择latextool
稍等会弹出
package control message界面
安装成功
在preference->package setting->latextool->setting user ,会创建一个新的配置文件,找到,修改texpath为安装路径,distro也改为texlive
"windows": {
// Path used when invoking tex & friends; "" is fine for MiKTeX
// For TeXlive 2011 (or other years) use
// "texpath" : "C:\\texlive\\2011\\bin\\win32;$PATH",
"texpath" : "C:\\texlive\\2015\\bin\\win32;$PATH",
// TeX distro: "miktex" or "texlive"
"distro": "texlive",
// Command to invoke Sumatra. If blank, "SumatraPDF.exe" is used (it has to be on your PATH)
"sumatra": "",
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
// If blank, "subl.exe" or "sublime_text.exe" will be used.
"sublime_executable": "",
// how long (in seconds) to wait after the jump_to_pdf command completes
// before switching focus back to Sublime Text. This may need to be
// adjusted depending on your machine and configuration.
"keep_focus_delay": 0.5
},
安装texlive
下载一个iso镜像,我安装的是texlive2015,然后挂载在CD驱动器上,进去,(以管理员)运行install-tl-advanced.bat,点击continue,注意配置是不用安装Texworks,然后安装即可
安装SumatraPDF
网上随便找的资源,安装,很小
添加环境变量,将SumatraPDF的根目录加入PATH
打开命令提示符,执行以下命令:(将其中的安装路径替换成你实际的安装路径)
sumatrapdf.exe -inverse-search "\"C:\Program Files\Sublime Text 3\sublime_text.exe\" \"%f:%l\""
至此安装配置完成,sublime下ctrl+b运行,如果语法正确会自动生成pdf