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

查看:73
本文介绍了我可以将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.

有没有办法在MathJax中使用LaTeX软件包?如果是这样,我该怎么办?

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

推荐答案

是否可以在MathJax中使用LaTeX软件包?

Is there a way of using LaTeX packages with MathJax?

不. MathJax不是LaTeX;它不是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天全站免登陆