ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Insert Equation

by bordaigorl ST3

Equation Editor for Sublime Text 3

Labels latex, math, markdown

Details

  • 1.0.0
  • github.​com
  • github.​com
  • 10 years ago
  • 50 minutes ago
  • 10 years ago

Installs

  • Total 1K
  • Win 681
  • Mac 446
  • Linux 235
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Insert Equation plugin for Sublime Text

This plugin for Sublime Text 3 offers a command to input, preview and insert a link to an image displaying a TeX formula.

The Insert Equation as Image command shows an input prompt where you can enter a TeX formula and a preview will be displayed while editing it.

The formulas are rendered using an online renderer that generates an image displaying the formula on the fly. The default rendering engine is http://latex.codecogs.com/gif.latex but this can be changed using the renderer parameter.

When you are happy with the formula, by pressing enter the plugin will create the link pointing to an image showing the formula. The actual format will be determined by the convert_to parameter. If set to "auto" the appropriate target will be determined from the language of the current view. For example when inserting the formula into a Markdown file, the generated code will look like

![formula](/readmes/img/7e461e493791e490950b5706050ee9242220dfac.latex "\sum_{i=0}^n\frac{\alpha^i[\kappa](w)}{\sqrt{\beta}\cdot \gamma_i}")

that generates

formula

For an alternative renderer, try

"renderer": "http://chart.googleapis.com/chart?cht=tx&chl={query}"

The supported target formats are:

  • text for just the url
  • md for Markdown
  • html for an HTML <img> tag
  • tex for the TeX formula wrapped in dollars (the rendering will be done by TeX, the plugin's usefulness is in the preview)
  • source for the url in double-quotes
  • clipboard for copying the url in the clipboard

MIT License

Copyright © 2014 Emanuele D'Osualdo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.