Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Latest commit

 

History

History
87 lines (58 loc) · 2.95 KB

README.md

File metadata and controls

87 lines (58 loc) · 2.95 KB

Sublime Text 2: Extended support for TeX / LaTeX / dtx (Documented LaTeX)

This repository provides a extended theme and a extended TeX / LaTex / dtx language defintion for Sublime Text 2.

Sublime Text 2 itself supports editing of TeX files pretty good. The LaTeXTools plugin for Sublime Text 2 / 3 increases the TeX support considerably. However, both Sublime Text 2 and LaTeXTools focus on the writer of TeX texts not on the writer of TeX packages and classes. This repository tries to fill this gap. The main features are:

  • LaTeX support in *.sty files (packages) and *.cls files (classes).
  • LaTeX support in *.dtx files (Documented LaTeX)
  • Support for LuaTeX (embedded Lua code is highlighted correctly)

Installation

git clone [email protected]:Josef-Friedrich/TeX-extended-for-Sublime-Text.git

Required development packages

Key bindings for this development packages:

Open console ctrl+` then type sublime.log_commands(True).

[
    { "keys": ["f10"], "command": "toggle_selection_scope" },
    { "keys": ["f12"], "command": "convert_file" }
]

Useful documentation

Language

Theme

Monokai Colors

The original Monokai-Theme for TextMate has these colors:

  • Red: F92672 ($RED)
  • Green: A6E22E ($GREEN)
  • Yellow: E6DB74 ($YELLOW)
  • Orange: FD971F ($ORANGE)
  • Blue: 66D9EF ($BLUE)
  • Magenta: AE81FF ($MAGENTA)
  • White: F8F8F0 ($WHITE)
  • Light Grey: 75715E ($LIGHT_GREY)
  • Dark Grey: 49483E ($DARK_GREY)
  • Cyan: 272822 ($CYAN)

Additional colors in the Sublime Text Monokai Theme:

  • Pure White: FFFFFF ($SUB_PURE_WHITE)
  • White: F8F8F2 ($SUB_WHITE)
  • Light Grey: CFCFC2 ($SUB_LIGHT_GREY)
  • Dark Grey: 3E3D32 ($SUB_DARK_GREY)
  • Orange: 9D550FB0 $SUB_ORANGE)
  • Black: 000000 ($BLACK)

Alpha channel

  • Darker: 44 ($A_DARKER)
  • Dark: 66 ($A_DARK)
  • Medium: 99 ($A_MEDIUM)
  • Light: A5 ($A_LIGHT)
  • Lighter: B0 ($A_LIGHTER)