A TypeScript plugin that helps you in building your LaTeX formula.
It is inspired from KLatexFormula from which it takes the subdivision and the various formulas.
In order to work, this plugin needs MathJax which is a dependency.
It exposes only a constructor that does all the magic for you.
Name | Type | Description |
---|---|---|
rendered | string | HTMLDivElement | HTMLSpanElement |
input | string | HTMLTextAreaElement | Where user and jLaTeXFormula will write formulas DOM Element (DOM Element or ID). |
groups | string | HTMLSelectElement | Select for swapping between groups (DOM Element or ID). |
groupContainer | string | HTMLDivElement | HTMLSpanElement | Where buttons (one each symbols) will be placed (DOM Element or ID). |
localization | [string, string, string, string, string, string, string, string] | Localized which name, in an ordered list:
|
openDelimiter = "$$" | string | Start LaTeX formula delimiter, useful only in case of conflicts. |
closeDelimiter = "$$" | string | End LaTeX formula delimiter, useful only in case of conflicts. |
A demo has been provided in order to help you undersand how it does work
jLaTeXFormula comes with no CSS so that there is complete freedom in styling and embedding it to your website, but provides several useful classes:
- Each group of buttons container has class
fjslg + i
, wherei
is group zero based offset. - Each button has class
fjslgb
andfjslgb + i+ j
wherei
is group zero based offset andj
in button zero based offset within the group.
A compiled ES5 compliant minified JavaScript version has been provided as well in order to let you use it directly.
Partially generated using TypeDoc