Sublime Text 3 texlive 編譯輸出:

Sublime Text 3 texlive 編譯輸出:

我正在嘗試在 Windows 10 x64 系統上執行 Sublime Text 3 texlive。當我編譯時,我收到以下訊息:

[Compiling C:\Users\devin\Documents\LEGrp\tex\setup_instructions\ISUR setup instructions.tex]

TraditionalBuilder: Engine: pdflatex. Invoking latexmk... done.

Output from compilation:

但沒有建立或開啟 pdf 檔案。我正在使用蘇門答臘PDF。我嘗試過搜尋這個問題,但沒有任何明確的錯誤,很難調試。在「windows」部分的 LaTeXTools.sublime-settings 檔案中,我有:

"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
    },

請幫忙!

答案1

您收到該行的事實Output from compilation:表明未產生日誌文件,很可能是因為啟動 LaTeX 或 Latexmk 時出現問題。最有可能的是,由於沒有輸出,運行時出現了一些問題latexmk本身出現了一些問題,即無法找到可執行文件,運行時出現一些錯誤。 Sublime 控制台中可能有一些有用的信息。要查看,請使用看法選單並選擇顯示控制台選項。

您可以嘗試的另一件事是latexmk從命令提示字元運行。 LaTeXTools 使用的指令如下所示:

C:\texlive\2015\bin\win32\latexmk.exe -cd -f -pdf -interaction=nonstopmode -synctex=1 "C:\Users\devin\Documents\LEGrp\tex\setup_instructions\ISUR setup instructions.tex"

嘗試從命令提示字元運行它,看看會發生什麼。

我認為最可能的原因是您安裝了 TeXLive 的最小安裝,在這種情況下您將需要tlmgr install latexmk從提升的命令提示字元中執行。

相關內容