Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lopezjurip/tex-element

Render TeX live on the web using Polymer
https://github.com/lopezjurip/tex-element

katex latex polymer

Last synced: 5 days ago
JSON representation

Render TeX live on the web using Polymer

Awesome Lists containing this project

README

        

# tex-element

Render TeX live on the web using KaTeX.

> [Live **Demo** using a text-input in Polymer.](http://mrpatiwi.github.io/tex-element)

## Usage

Install via Bower:

```sh
bower install --save tex-element
```

Import it directly:

```html

```

This may change if you are using a tools like Gulp, Grunt or Webpack.

#### Use it

```html

```

#### Inline use

```html
This is a inline formula.
```

## Dependencies

Element dependencies are managed via [Bower](http://bower.io/). You can
install that via:

```sh
npm install -g bower
```

Then, go ahead and download the element's dependencies:

```sh
bower install
```

## Playing With Your Element

If you wish to work on your element in isolation, we recommend that you use
[Polyserve](https://github.com/PolymerLabs/polyserve) to keep your element's
bower dependencies in line. You can install it via:

```sh
npm install -g polyserve
```

And you can run it via:

```sh
polyserve
```

Once running, you can preview your element at
`http://localhost:8080/components/tex-element/`, where `tex-element` is the name of the directory containing it.