How to setup sublime as a beautiful latex editor | Dark Mode | Windows

Abhinav Gupta
2 min readMay 29, 2021

--

Download and Install

Preview

Full dark mode Sublime-LaTeX-Sumatra setup

Setup Sublime

  • Open the Command Palette: Press Ctrl+Shift+P
  • Type install in the Command Palette input box, which should autocomplete to “Install Package Control”. Press Enter to select it.
  • Sublime Text 3 will start installing Package Control. This may take a short while. Once installed, a pop-up will display the message: “Package Control was successfully installed”.
  • Go to Preferences → Package Settings → Package Control → Settings and replace the content on the right side with the following
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Agila Theme",
"AutoPEP8",
"ayu",
"DistractionFreeWindow",
"Dracula Color Scheme",
"Fold Comments",
"ImageMagick",
"LaTeX Word Count",
"LaTeX-cwl",
"LaTeXTab",
"LaTeXTools",
"Non Text Files",
"Package Control",
"Python 3",
"SideBarEnhancements",
]
}
  • Save the file. This will automatically install all the packages necessary for the setup. Wait for 5–10 mins for the installation to complete.
  • Next open Preferences → Settings and replace the content on the right side with the following.
{
"auto_complete_triggers":
[
{
"characters": ".",
"selector": "source.python - string - comment - constant.numeric"
},
{
"characters": "\\",
"selector": "text.tex.latex"
}
],
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"default_line_ending": "unix",
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"open_externally_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.zip",
"*.pdf"
],
"rulers":
[
100
],
"tab_size": 4,
"theme": "Agila.sublime-theme",
"translate_tabs_to_spaces": true
}
  • Go to Preferences→Key Bindings and replace the content on the right side with the following
[
{ "keys": ["f1"], "command": "toggle_side_bar" },
{ "keys": ["f2"], "command": "distraction_free_window" },
{ "keys": ["f3"], "command": "fold" },
{ "keys": ["f4"], "command": "unfold" },
]

Check the sublime latex integration

  • Now finally go to Preferences→Package settings→Latex tools→Check system to check whether everything is fine or not.

Set up Sumatra

  • Hide the toolbar and bookmarks bar from the view menu.
  • Go to Settings→Options and uncheck “Show the bookmarks sidebar when available” and “Use Tabs”

Dark theme

In Sumatra PDF go to Settings→Advanced Options. The settings will open in a new text document. Change the MainWindowBackground = #252a33 and replace the code in FixedPageUI with the following

FixedPageUI [
# Light Mode
# TextColor = #000000
# BackgroundColor = #ffffff
# Dark Mode
TextColor = #ffffff
BackgroundColor = #343d46
SelectionColor = #f5fc0c
WindowMargin = 2 4 2 4
PageSpacing = 4 4
]

Learn LaTeX

--

--