首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >崇高文本3未能打开SumatraPDF

崇高文本3未能打开SumatraPDF
EN

Stack Overflow用户
提问于 2016-03-13 13:55:00
回答 1查看 2.3K关注 0票数 1

我正在使用的Windows 7机器与最新的崇高文本3构建3013。SumatraPDF作为用户和系统路径变量正确入站:(...\;C:\Program文件\SumatraPDF)

现在,我正在尝试让LaTeX与崇高文本3一起运行,它可以编译一个PDF,但是,SumatraPDF并不是通过Sublime打开的(我可以手动启动和打开之前在SumatraPDF中已经完成的PDF )。

代码语言:javascript
复制
Welcome to thread Thread-5
['latexmk', '-cd', '-e', '-f', '-pdf', '-interaction=nonstopmode', '-synctex=1', 'neu.tex']
Finished normally
0
False True True

!TEX root =  'C:\\Users\\Jens\\Desktop\\Arbeit\\Jens\\Sublime\\neu.tex'
Jump to:  9 14
Windows, Calling Sumatra
Traceback (most recent call last):
    File "./subprocess.py", line 1112, in _execute_child
    FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
      File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 568, in run_
      return self.run(edit, **args)
      File "C:\Users\Jens\AppData\Roaming\Sublime Text 3\Packages\LaTeXTools\jumpToPDF.py", line 233, in run
      subprocess.Popen(startCommands, startupinfo = si)
      File "./subprocess.py", line 824, in __init__
      File "./subprocess.py", line 1118, in _execute_child

FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

我的LaTeX工具设置是:

代码语言:javascript
复制
"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
},

你能给我个建议吗?这个线程(Sublime Text 2 LatexTools not launching SumatraPDF)感觉类似,但在我的情况下,我正确地设置了PATH变量。

编辑:添加与评论有关的这一项。

代码语言:javascript
复制
import os; os.environ['PATH']

C:\Program (x86)\Intel\iCLS客户端\;C:\Program\Intel\iCLS x86 Files (x86)\Intel\OpenCL \3.0\bin\x86;C:\Program (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program \联想\指纹管理器Pro\;C:\Program (X86)\Intel\WirelessCommon:\Program (x86)\Intel\Intel(R)管理引擎组件\DAL;C:\Program\Intel\Intel(R)管理引擎组件\DAL;C:\Program (x86)\Intel\Intel(R)管理引擎组件\IPT;\程序文件(X86)\联想\访问连接C:\Program (X86)\Skype\Phone\C:\Program\SumatraPDF\C:\Program\Intel\WiFi\bin\;C:\Program\公共程序文件\SumatraPDF\‘

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-13 19:11:26

因此,这是一个%PATH%问题。SumatraPDF安装在C:\Program (x86)\SumatraPDF中,而不是C:\Program \SumatraPDF中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35971105

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档