在 Web 上编写数学方程的最佳方法是什么? [英] What's the best way to write Mathematical Equations on the Web?

查看:33
本文介绍了在 Web 上编写数学方程的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个与数学相关的网页,并且正在寻找一种可以轻松将数学方程写入网页的解决方案.目前有几种解决方案可供我使用:

I am working on a Math related web page and am looking for a solution to writing Mathematical equations easily onto a web page. There are several solutions readily available to me at the moment:

  • 使用 LaTeX 并将它们作为图像发布在我的网页上.
  • 使用 MathML

这两种解决方案都不理想,而且似乎有些过时.用图像替换应该是文本的内容从来都不是一个好主意,而且 MathML 并不与所有浏览器/操作系统兼容.

Both of these solutions aren't ideal and seem somewhat dated. Replacing what should be text with an image is never a good idea and MathML isn't compliant with all browsers/operating systems.

我希望有使用图像或 MathML 的现代解决方案,也许是利用 sIFR 来显示数学方程的东西?经过一番研究,我仍然没有找到任何真正的解决方案.

I'm hoping that there is a modern solution to using images or MathML, perhaps something utilising sIFR to display mathematical equations? After a bit of research I am still yet to find any real solution.

请注意,我正在寻求一种发布方程的新方法.我不希望图像成为显示在网页上的输出,而是希望将这些方程呈现为 文本 数据.MathML 是我最接近的,但它仍然不理想.我一直想知道是否可以使用像 sIFR 这样的替代工具在 Flash 中创建方程.有人在这方面有什么建议吗?

Please note that I am asking for a new way of publishing equations. I do not want images to be the output that is displayed on the web page and would rather have these equations rendered as textual data. MathML is the closest I've come, but it's still not ideal. I've wondered for a while whether a replacement tool like sIFR could be utilised to create equations in Flash. Anyone have any suggestions on this front?

自从我上次更新这篇文章已经有一段时间了,但随着 HTML5 被浏览器采用,游戏中有一个新玩家将 LaTeX 和 MathML 重新引入混合,MathJax!.MathJax 绝对是您要走的路!

It's been a while since I last updated this post, but with HTML5 becoming adopted by browsers there is a new player in the game that introduces LaTeX and MathML back into the mix, MathJax!. MathJax are definitely the way to go!

类似问题:网络上的数学方程

推荐答案

jsMath 包是一个使用 LaTeX 标记和本机字体的选项.引用他们的网页 http://www.math.union.edu/~dpvc/jsMath/:

The jsMath package is an option that uses LaTeX markup and native fonts. Quoting from their webpage http://www.math.union.edu/~dpvc/jsMath/:

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.

参见例如此页面那个.

这篇关于在 Web 上编写数学方程的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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