Web Component for Unicode LaTeX expressions, automatically converted into MathML for display.
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
src
.gitignore
Gruntfile.js
README.md
bower.json
package.json
xtag.json

README.md

About

x-tex is a simple container for (La)TeX expressions that automatically converts them into MathML, which uses the X-Tag Polylib. For a more native implementation with Web Components and Shadow DOM, see this example from TeXZilla.

Usage

        <x-tex>\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1</x-tex>
        <x-tex display="block">\Gamma(t) = \lim_{n \to \infty} \frac{n! \; n^t}{t \; (t+1)\cdots(t+n)}= \frac{1}{t} \prod_{n=1}^\infty \frac{\left(1+\frac{1}{n}\right)^t}{1+\frac{t}{n}} = \frac{e^{-\gamma t}}{t} \prod_{n=1}^\infty \left(1 + \frac{t}{n}\right)^{-1} e^{\frac{t}{n}}</x-tex>
        <x-tex dir="rtl">س = \frac{-ب\pm\sqrt{ب^٢-٤اج}}{٢ا}</x-tex>

Install

Requirements

Node / NPM

Bower (Package Manager)

$ npm install bower -g

For development

$ bower install

Inside your project run:

$ bower install x-tag-tex

This downloads the component and dependencies to ./components