Undergraduate student at Princeton University.
LaTeX concealer for sublime-text-3
This is a personal project to replicate some of vim's conceal features in sublime text 3. Source code takes up a lot of spacing in LaTeX, but more importantly it also clutters the document, which makes writing documents in math cumbersome and difficult. This is an attempt to conceal source code with an UTF-8 rendered approximation.
The current version uses a combination of syntax fold, manipulating the color of the fold icon, and phantom objects in sublime to conceal code.
https://github.com/rah4927/LaTeX-Concealer-sublime-text-3
In order to make folding distraction free, try looking up the background color in your color scheme and change the fold icon to have the same color. This makes it coalesce with the background. In my case, I changed the fold color to Guna's background.
Here is a brief explanation of the files in github if you are looking to contribute:
latexparser.py
is a DFA that takes in a latex command and separates it into commands and argumentslatex2utf.py
takes in a latex command and translates it into UTF-8TeXconceal.py
is the plugin that defines the text command texconceal
behindFold.py
is an additional plugin that prevents folded text from being deletedLaTeX substitutions.json
contains a dictionary of commands and substitutions