sublime text配置latex环境


写论文必备了属于是


一、sublime中安装latextools

这里默认大家已经安装了sublime text和配置好了package control

搜索latextools工具包并安装


二、安装SumatraPDF

下载地址


三、下载MiKTeX

下载地址


四、将二者配置到sublime中

preferences->package setting->latextools->settings-user

配置"texpath"和"sumatra"参数

	"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" : "G:\\miktex\\miktex\\bin\\x64;$PATH",
		// TeX distro: "miktex" or "texlive"
		"distro" : "miktex",
		// Command to invoke Sumatra. If blank, "SumatraPDF.exe" is used (it has to be on your PATH)
		"sumatra": "C:\\Users\\Administrator\\AppData\\Local\\SumatraPDF",
		// 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
	},

五、配置SumatraPDF,实现反向搜索

  1. 将SumatraPDF的路径加入到环境变量中
    在这里插入图片描述

  2. 打开cmd

sumatrapdf.exe -inverse-search "\"D:\download\Sublime Text 3\sublime_text.exe\" \"%f:%l\"

exe前面换成你自己的sublime实际安装的地址


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值