有没有javascript LaTeX方程式渲染器? [英] Is there a javascript LaTeX equation renderer?

查看:192
本文介绍了有没有javascript LaTeX方程式渲染器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个纯粹的客户端javascript库,将乳胶方程式呈现为HTML / CSS。我讨厌所有我看到的是从服务器请求图像的实用程序。

I am looking for a purely client side javascript library that renders latex equations as HTML/CSS. I hate that all I see are utilities that request an image from a server.

示例用法:

latex('\frac{a}{b}')

输出:

<div style="position: relative; display: inline-block; height: 2em; width: 1em">
  <div style="position: absolute; top: 0em">a</div>
  <div style="position: absolute; top: 1em; border-top: 1px solid black">b</div>
</div>

我问,因为如果这不存在我正在考虑写它,也许作为一个jQuery插件。

I ask because if this does not exist I am considering writing it, perhaps as a jQuery plugin.

推荐答案

jsMath 呈现TeX论坛。它也被 mathoverflow.net 和数学软件 sage 的Web界面使用。我假设他们知道他们在做什么;)

jsMath renders TeX forumlas. It is also used by mathoverflow.net and the web interface of the mathematics software sage. I assume they know what they are doing ;)

从主页:


jsMath包提供了一种在HTML页面中包含数学的方法,该方法适用于Windows,Macintosh OS X,Linux和其他各种unix版本的多个浏览器。它克服了使用图像表示数学的传统方法的许多缺点:jsMath使用原生字体,因此当您更改浏览器中文本的大小时,它们会调整大小,它们会完整打印您的打印机的分辨率,您不必等待下载数十个图像,以便在网页中查看数学。网页作者也有优势,因为不需要预处理您的网页来生成任何图像,数学以TeX形式输入,因此很容易创建和维护您的网页网页。

The jsMath package provides a method of including mathematics in HTML pages that works across multiple browsers under Windows, Macintosh OS X, Linux and other flavors of unix. It overcomes a number of the shortcomings of the traditional method of using images to represent mathematics: jsMath uses native fonts, so they resize when you change the size of the text in your browser, they print at the full resolution of your printer, and you don't have to wait for dozens of images to be downloaded in order to see the mathematics in a web page. There are also advantages for web-page authors, as there is no need to preprocess your web pages to generate any images, and the mathematics is entered in TeX form, so it is easy to create and maintain your web pages.

这篇关于有没有javascript LaTeX方程式渲染器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆