Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Web Component for Unicode LaTeX expressions, automatically converted into MathML for display.
JavaScript CSS
Branch: master

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

Something went wrong with that request. Please try again.