Sublime Text 3已安裝Package Controlwindows
"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" : "D:\\Program Files (x86)\\MiKTeX 2.9\\miktex\\bin;$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": "D:\\PortableSoftware\\SumatraPDF.exe" }, "builder": "simple",
注意符號不能打錯和打漏sublime-text
最簡單的測試文件test.texsublime-text-3
\documentclass{article} \title{Title} \author{Your Name} \begin{document} \maketitle{} \section{Introduction} This is where you will write your content. \end{document}
上面的設置中咱們已經修改爲了使用pdflatex編譯器,用SumatraPDF打開生成文件。測試
Ctrl + B能夠編譯tex文件,會自動用SumatraPDF打開生成文件,在tex文件的所在目錄下有同名的pdf文件ui
在SumaPDF中,菜單,設置,選項命令行
最下面的反向搜索命令行根據本身實際路徑輸入code
"C:\Program Files\Sublime Text 3\sublime_text.exe" "%f:%l"
編譯器
在SumatraPDF中,雙擊便可反向搜索tex文件it