AsciiMath
AsciiMathは、ウェブブラウザで数式を表示するためのクライアントサイドの数学マークアップ言語である[1][2]。
JavaScriptスクリプトのASCIIMathML.jsを使用すると、Mozilla FirefoxとSafariではネイティブに、Internet Explorer 7ではプラグインを介してブラウザによってページが読み込まれるときに、AsciiMath表記がMathMLに変換される。簡略化されたマークアップ言語はLaTeXのコマンドの部分集合と、あまり冗長ではない構文[注釈 1]に対応している。結果として得られるMathMLの数式は、CSSをmstyleクラスに適用することでスタイルを設定することができる[3]。
ASCIIMathML.jsはMITライセンスの下で自由に入手することができる[4]。最新版では、Mozilla Firefoxではネイティブに、Internet Explorer 7ではプラグインを介したSVG画像の対応が含まれている。
例
これはAsciiMathでは次のように表記する:
x=(-b +- sqrt(b^2 – 4ac))/(2a)
脚注
注釈
- ↑ 例えば、
\timesをxxまたはtimesに置き換えて「×」記号を生成する。
出典
- ↑ Gray, James (2007), “ASCIIMathML: now everyone can type MathML”, MSOR Connections 7 (3): 26–30, doi:10.11120/msor.2007.07030026.
- ↑ Johnson, Brian (January 2005), Interactive LATEX to MathML/HTML translation, Maersk Mc-Kinney Moller Institute for Production Technology, University of Southern Denmark, Odense, オリジナルの2016-03-04時点におけるアーカイブ。 2015年4月20日閲覧。.
- ↑ Sorge, Volker; Chen, Charles; Raman, T. V.; Tseng, David (2014), “Towards Making Mathematics a First Class Citizen in General Screen Readers”, Proceedings of the 11th Web for All Conference (W4A '14), New York, NY, USA: ACM, pp. 40:1–40:10, doi:10.1145/2596695.2596700, ISBN 978-1-4503-2651-3
- ↑ “asciimathml/LICENSE” (英語). GitHub. GitHub, Inc.. 2023年9月30日閲覧。
- ↑ “MathJax v2.0 beta available” (2012年2月11日). 2023年9月30日閲覧。
- ↑ Cervone, Davide (February 2012), “MathJax: A Platform for Mathematics on the Web”, Notices of the AMS 59 (2): 312–316.