项目作者: lopezjurip

项目描述 :
Render TeX live on the web using Polymer
高级语言: HTML
项目地址: git://github.com/lopezjurip/tex-element.git
创建时间: 2015-11-02T02:10:20Z
项目社区:https://github.com/lopezjurip/tex-element

开源协议:MIT License

下载


tex-element

Render TeX live on the web using KaTeX.

Live Demo using a text-input in Polymer.

Usage

Install via Bower:

  1. bower install --save tex-element

Import it directly:

  1. <link rel="import" href="bower_components/tex-element/tex-element.html">

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

Use it

  1. <tex-element display formula="
  2. \int u \frac{dv}{dx}\,dx=uv-\int \frac{du}{dx}v\,dx
  3. "></tex-element>

Inline use

  1. This <tex-element formula="\int_{a}^{b} x^2 dx"></tex-element> is a inline formula.

Dependencies

Element dependencies are managed via Bower. You can
install that via:

  1. npm install -g bower

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

  1. bower install

Playing With Your Element

If you wish to work on your element in isolation, we recommend that you use
Polyserve to keep your element’s
bower dependencies in line. You can install it via:

  1. npm install -g polyserve

And you can run it via:

  1. 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.