AsciiMath
AsciiMathは、ウェブブラウザで数式を表示するためのクライアントサイドの数学マークアップ言語(英語版)である[1][2]。
JavaScriptスクリプトのASCIIMathML.js
を使用すると、Mozilla FirefoxとSafariではネイティブに、Internet Explorer 7ではプラグインを介してブラウザによってページが読み込まれるときに、AsciiMath表記がMathMLに変換される。簡略化されたマークアップ言語はLaTeXのコマンドの部分集合と、あまり冗長ではない構文[注釈 1]に対応している。結果として得られるMathMLの数式は、CSSをmstyle
クラスに適用することでスタイルを設定することができる[3]。
ASCIIMathML.js
はMIT Licenseの下で自由に入手することができる[4]。最新版では、Mozilla Firefoxではネイティブに、Internet Explorer 7ではプラグインを介したSVG画像の対応が含まれている。
ASCIIMathML.js
はMathJax v2.0からMathJaxに統合された[5][6]。
例
これは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時点におけるアーカイブ。, https://web.archive.org/web/20160304024109/http://brianjohnsen.dk/bachelor.pdf 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” (11 February 2012). 2023年9月30日閲覧。
- ^ Cervone, Davide (February 2012), “MathJax: A Platform for Mathematics on the Web”, Notices of the AMS 59 (2): 312–316, https://www.ams.org/journals/notices/201202/rtx120200312p.pdf .
外部リンク
- 表示
- 編集