赞
踩
pc install
打开install package,这里可以搜索所有需要安装的插件(汉化包,主题,配色方案等等),包括LaTextools。然后配置LaTeXtools:preference -> package settings -> Latexlools
打开settings default和settings user,将default内容复制到user中;"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" : "E:\\texlive\\2021\\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": "E:\\SumatraPDF\\SumatraPDF.exe", // 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 },
搜索builder_settings,在里面可以如下修改编译链:
"windows" : {
// See README or third-party documentation
"script_commands":[
"xelatex -synctex=1 -interaction=nonstopmode",
"bibtex",
"xelatex -synctex=1 -interaction=nonstopmode",
"xelatex -synctex=1 -interaction=nonstopmode"
]
},
preference -> package settings -> Latexlools -> Check System
检查环境,如果有unavailable的可以检查一下设置的路径与环境变量有没有错误。tips:路径反斜杠需要double。Packages/LaTeXTools/latex_cwl_completions.py
文件中添加_ST4 = sublime.version() >= '4000' ··· if not _ST4: #版本大于4000的情况下不执行以下代码 # autocompleting with slash already on line # this is necessary to work around a short-coming in ST where having a # keyed entry appears to interfere with it recognising that there is a # \ already on the line # # NB this may not work if there are other punctuation marks in the # completion if is_prefixed: completions = [ (c[0], c[1][1:]) if c[1].startswith("\\") else c for c in completions ]
sumatrapdf -inverse-search "\"E:\Sublime Text\sublime_text.exe\" \"%f:%l\""
"E:\Sublime Text\sublime_text.exe" "%f:%l"
命令。cannot convert pdf to png to preview
这样的错误基本上是因为texlive自带的ghostscript与系统不匹配导致的。Check system里面可以看到ghostscript的路径,E:\texlive\2021\tlpkg\tlgs\bin\gswin64c.exe
如果这里是gswin32c.exe,那需要自己安装一个64位的然后替换以下4个文件。
如果问题还在,请在双击运行gswin64.exe,这里可能会报这样的错:没有gs_init.ps,或者gs_init.ps版本不匹配。
Interpreter revision (****) does not match gs_init.ps revision (****).
这时候你最好把下面这个resouce文件夹都替换成你所安装的版本。
这样基本都没啥问题了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。