Skip to content

Fylax/jLaTeXFormula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jLaTeXFormula

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.

Usage

It exposes only a constructor that does all the magic for you.

Parameters

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:
  1. Relation Symbols
  2. Arrow Symbols
  3. Miscellaneous Symbols
  4. Delimiters and Accents
  5. Greek Alphabet
  6. Functions
  7. Matrices & Systems
  8. Math Alphabets and Text
openDelimiter = "$$" string Start LaTeX formula delimiter, useful only in case of conflicts.
closeDelimiter = "$$" string End LaTeX formula delimiter, useful only in case of conflicts.

Example

A demo has been provided in order to help you undersand how it does work

Styling

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, where i is group zero based offset.
  • Each button has class fjslgb and fjslgb + i+ j where i is group zero based offset and j in button zero based offset within the group.

Compiled Code

A compiled ES5 compliant minified JavaScript version has been provided as well in order to let you use it directly.

Partially generated using TypeDoc

Releases

No releases published

Packages

No packages published