1. Install Softwares
- Sublime text 3
- Texlive
- SumatraPDF
Add paths to system environment variables, including
E:\Sublime3\
E:\Sublime3\SumatraPDF\
E:\TexLive\2019\
2. Sublime Settings
1. Package Control
ctrl + shift + p
- Type
Install Package Control
, pressenter
2. Latextools - latex
ctrl + shift + p
- Type
Package Control: Install Package
, pressenter
- Type
Latextools
, pressenter
- Find
LaTeXTools.sublime-settings
underLatextools
folder -
"texpath" : "C:\\texlive\\2019\\bin\\win32;$PATH", "distro" : "texlive", "sumatra" : "E:\\Sublime3\\SumatraPDF\\SumatraPDF.exe", "builder" : "simple", "builder_settings" : "windows" : { // See README or third-party documentation "script_commands":[ "pdflatex -synctex=1 -interaction=nonstopmode", "bibtex", "pdflatex -synctex=1 -interaction=nonstopmode", "pdflatex -synctex=1 -interaction=nonstopmode" ] },
3. Theme
- Adaptive.sublime-theme: This will change the sidebar to a dark colored background.
Preference -> Themes -> Adaptive.sublime-theme
- Monokai:
Preference -> Color Schemes -> Monokai
3. SumatraPDF Settings - latex
win + R
- Type
cmd
, pressenter
- Type
sumatrapdf.exe -inverse-search "\"E:\Sublime3\sublime_text.exe\"%f:%l\"
, pressenter
4. Shortcuut keys
ctrl + k, ctrl + b
: 隐藏/显示侧边栏ctrl + k, ctrl + 1
: 折叠/显示所有代码ctrl + b
: 编译ctrl + shift + b
: 选择编译方式