LaTeX Equation Preview
Preview Latex equations
Details
Installs
- Total 9K
- Win 4K
- Mac 3K
- Linux 2K
Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 2 | 0 | 1 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
Readme
- Source
- raw.githubusercontent.com
LatexEquationPreview
Introduction
This plug-in make use of the new feature of Sublime Text, Phantom, to preview latex equations.
ATTENTION
This plug-in need imagemagick
and texlive/mactex
installed. otherwise it does not work.
If you do not have Tex installed, you won't need this plugin.
imagemagick can be downloaded here
for OSX or MacOS users, the best way to install imagemagick is brew install imagemagick
.
I tested this plugin with my MacBookPro and windows 10 on Vmware environment, it should be okay for Linux as well, if you find any problem , please do not hesitate to open an issue, I will response in due course.
If you like this project, please star this repository😇. Thanks for your support!
Special Attention for Windows User:
To install
convert.exe
, please chooselegacy support
when installing imagemagick, otherwise it does not work.convert.exe
needs ghostscript support, please download it here
Usage
Currently there are two commands available:
[
{
"caption": "Equation Preview: View Current Equation",
"command": "show_outstanding_preview"
},
{
"caption": "Equation Preview: Clear Equation Preview",
"command": "clean_equation_phantoms"
},
]
Corresponding shortcut is ctrl+shift+x for show preview and ctrl+shift+alt+x for clean all preview.
Users can simply click on the phantom to close a single equation preview.
If auto-compile trigger in settings is set to true
, then a preview with automatically show up when users are writing an equation.
Configuration
{
"equation_foreground_color": "yellow",
"equation_background_color": "",
"equation_inline_position": "right",
"equation_inline_size": "45%",
"equation_block_size": "60%",
"auto_compile": true,
"convert_binary": "",
"pdflatex_binary": "",
"debug": 0
}
equation_foreground_color is the color of preview equations.
equation_background_color is the color of preview background.
equation_inline_size is to adjust the font size of inline equations.
equation_inline_position is the control where to show the inline equation preview, default value is “right”, which means the preview will show after the equation representation. If it is set to “left”, the preview will show before the equation representation.
auto_comile is an amazing feature, it will simultaneously compile the equations that users are writing and show it in the phantom.
convert_binary is the path of
convert
, which is a part of imagemagick package.pdflatex_binary is the path of pdflatex executable.
debug == 1 will show additional information in the console.