Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
/ x-tex Public archive

Web Component for Unicode LaTeX expressions, automatically converted into MathML for display.

Notifications You must be signed in to change notification settings

fred-wang/x-tex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

x-tex is a simple container for (La)TeX expressions that automatically converts them into MathML, which uses the X-Tag Polylib.

This repository is no longer maintained. 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

About

Web Component for Unicode LaTeX expressions, automatically converted into MathML for display.

Resources

Stars

Watchers

Forks

Packages

No packages published