Sublime Text 2 LatexTools无法启动SumatraPDF [英] Sublime Text 2 LatexTools not launching SumatraPDF

查看:394
本文介绍了Sublime Text 2 LatexTools无法启动SumatraPDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Sublime Text 2.0.2(内部版本2221)中运行LaTexTools插件.我正在运行64位Windows 8.1计算机.

I'm trying to run the LaTexTools plugin in Sublime Text 2.0.2, build 2221. I'm running a 64-bit, Windows 8.1 computer.

LaTexTools已安装并正在工作-它会生成一个已编译的PDF,如果我从Windows文件夹位置手动打开它,则可以在SumtraPDF和Adobe Reader中查看.但是,在构建Tex文件后,PDF不会自动启动.当我尝试将视图转换为PDF时,Sublime Text引发以下错误:

LaTexTools is installed and working - it produces a compiled PDF, which is viewable in SumtraPDF and Adobe Reader if I open it manually from the windows folder location. However after building the Tex file, the PDF does not automatically launch. When I try to shift the view to the PDF, Sublime Text throws the following error:

Cannot launch Viewer. Make sure it is on you PATH.

在.tex文件上进行常规构建会产生以下输出:

Doing a normal build on the .tex file produces the following output:

[Compiling C:\Users\Mpaull15\Dropbox\Stanford\Project
Planning\research_report.tex]

TraditionalBuilder: Invoking texify... done.

No errors.

[Done!]

控制台显示以下内容:

<module 'traditionalBuilder' from 'C:\Users\Mpaull15\AppData\Roaming\Sublime Text 2\Packages\LaTeXTools\builders\traditionalBuilder.pyc'>
<class 'traditionalBuilder.TraditionalBuilder'>
Welcome to thread Thread-4
2
['texify', '-b', '-p', '--tex-option="--synctex=1"', u'research_report.tex']
Finished normally
0
False True True
!TEX root =  u'C:\\Users\\Mpaull15\\Dropbox\\Stanford\\Project Planning\\research_report.tex'
Jump to:  5 0
Windows, Calling Sumatra
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 356, in run_
  File ".\jumpToPDF.py", line 109, in run
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified

已安装

SumatraPDF,将其设置为我的默认查看器,并且在我的路径中 如下:

"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe"

我正在编译的.tex文件是否在我的Dropbox文件夹中,尽管我尝试将整个文件夹移到我的桌面并在那里构建,导致完全相同的错误.

The .tex file I am compiling is in my Dropbox folder if that could be relevant, although I tried moving the entire folder to my Desktop and building there, resulting in the exact same error.

我已经浏览了StackExchange以及有关此问题的Sublime Text论坛上的条目,所有这些似乎都是由于SumtraPDF不在路上,或者与Sublime Text调用的另一个程序相关,并带有解决方案与此处的LaTexTools/SumtraPDF交互关系不明显.

I've looked through StackExchange and past entries on the Sublime Text forums about this issue, and all either seem to result from SumtraPDF not being in the path, or to relate to a different program being called from Sublime Text, with solutions not obviously relevant to the LaTexTools/SumtraPDF interaction here.

任何建议或帮助将不胜感激!

Any advice or help would be appreciated!

推荐答案

您的路径应仅引用文件夹,而不是确切的.exe.

Your path should only refer to the folder, not the exact .exe.

"C:\Program Files (x86)\SumatraPDF"

这篇关于Sublime Text 2 LatexTools无法启动SumatraPDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆