我可以将 LaTeX 包添加到 MathJax 吗? [英] Can I add LaTeX packages to MathJax?

查看:34
本文介绍了我可以将 LaTeX 包添加到 MathJax 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些用 LaTeX 编写的数学表达式,我想放在网页上.但是,他们使用的包似乎没有包含在 MathJax 中(例如 ytableau).首先,它们花费了足够的时间来编写我希望能够使用我拥有的东西,而不是弄清楚如何使用我目前可以访问的 MathJax 功能来重现结果.

I have some mathematical expressions written in LaTeX that I would like to put on a webpage. However, they use packages that don't seem to be included in MathJax (e.g. ytableau). They were sufficiently time consuming to write in the first place that I'd like to be able to use what I have, rather than figure out how to reproduce the results with the MathJax features I currently have access to.

我曾认为将 LaTeX 包转换为 MathJax 扩展可能很容易,因为 MathJax 安装中的扩展似乎基于 LateX 包,我查看了 cancel.sty LaTeX 包和 cancel.js MathJax扩展希望它能给我一些关于如何做的想法,但我看不出它们之间的关系.

I had thought that it may be easy to turn a LaTeX package into a MathJax extension as the extensions in the MathJax installation appear to be based on LateX packages, I looked at the cancel.sty LaTeX package and the cancel.js MathJax extension hoping it would give me some idea of how to do it but I can't see how they relate.

有没有一种方法可以将 LaTeX 包与 MathJax 一起使用?如果是这样,我该怎么做?

Is there a way of using LaTeX packages with MathJax? If so, how would I do this?

(第一个问题,希望这不是题外话.)

(First question, hope this is not deemed off topic.)

推荐答案

有没有一种方法可以将 LaTeX 包与 MathJax 一起使用?

Is there a way of using LaTeX packages with MathJax?

没有.MathJax 不是 LaTeX;它处理类似于 LaTeX 的输入(尽可能接近真正的 LaTeX),但它在引擎盖下的工作方式非常不同.一个特别的区别是 MathJax 只实现数学模式宏,而不是所有其他文本模式或通用处理宏和控制序列.所以大多数 LaTeX 包使用的工具都不存在.这意味着您不能简单地将 LaTeX 包放入 MathJax.MathJax 支持的包必须在 javascript 中重新实现,这对于非平凡的包(如您引用的包)来说是困难的.

No. MathJax isn't LaTeX; it processes input that is LaTeX-like (as close as it reasonably can be to true LaTeX), but the way it works under the hood is very different. One difference in particular is that MathJax only implements the math-mode macros, not all the other text-mode or general processing macros and control sequences. So most of the tools used by LaTeX packages aren't there. That means you can not simply drop a LaTeX package into MathJax. The packages that MathJax supports have to be re-implemented in javascript, which is difficult for non-trivial packages (like the one you cite).

这篇关于我可以将 LaTeX 包添加到 MathJax 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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