AsciiMath: Difference between revisions

Content deleted Content added
 
(46 intermediate revisions by 36 users not shown)
Line 1:
{{short description|Mathematical markup language}}
'''ASCIIMathML''' is a client-side [[mathematical markup language]] for displaying mathematical expressions in [[web browser]]s.
'''AsciiMath''' is a client-side [[mathematical markup language]] for displaying mathematical expressions in [[web browser]]s.<ref name="gray">{{citation|first=James|last=Gray|year=2007|title=''ASCIIMathML'': now everyone can type MathML|journal=MSOR Connections|volume=7|issue=3|pages=26–30|doi=10.11120/msor.2007.07030026}}.</ref><ref>{{citation|title=Interactive LATEX to MathML/HTML translation|first=Brian|last=Johnson|url=http://brianjohnsen.dk/bachelor.pdf|date=January 2005|publisher=Maersk Mc-Kinney Moller Institute for Production Technology, University of Southern Denmark, Odense|access-date=2015-04-20|archive-url=https://web.archive.org/web/20160304024109/http://brianjohnsen.dk/bachelor.pdf|archive-date=2016-03-04|url-status=dead}}.</ref>
 
Using the [[JavaScript]] script ASCIIMathML.js, ASCIIMathMLAsciiMath [[markup language|markup]]notation is converted to [[MathML]] at the time the page is loaded by the browser, natively in [[Mozilla Firefox]], [[Safari (web browser)|Safari]], and via a plug-in in [[IE7]]. The simplified markup language supports a subset of the [[LaTeX]] language instructions, as well as a much less verbose syntax (which, for example, replaces "\times" with "xx" or "times" to produce the "×" symbol). Both syntaxes are vastly less verbose than the raw MathML. The resulting MathML mathematics can be styled by applying [[CSS]] to class "mstyle".<ref>{{citation
| last1 = Sorge | first1 = Volker
| last2 = Chen | first2 = Charles
| last3 = Raman | first3 = T. V.
| last4 = Tseng | first4 = David
| contribution = Towards Making Mathematics a First Class Citizen in General Screen Readers
| doi = 10.1145/2596695.2596700
| isbn = 978-1-4503-2651-3
| ___location = New York, NY, USA
| pages = 40:1–40:10
| publisher = ACM
| title = Proceedings of the 11th Web for All Conference (W4A '14)
| year = 2014| s2cid = 6892997
}}.</ref>
 
The script ASCIIMathML.js is freely available under the [[GNU Lesser General PublicMIT License]].<ref>[https://github.com/mathjax/asciimathml/blob/master/LICENSE asciimathml/LICENSE at master · mathjax/asciimathml]</ref> The latest version also includes support for [[Scalable Vector Graphics|SVG]] graphics, natively in [[Mozilla Firefox]] and via a plug-in in [[IE7]].
 
NowPer (May 2009) there is a new version available at http://www.asciimathml.com. This new version still contains the original ASCIIMathML and LaTeXMathML as developed by Peter Jipsen, but the ASCIIsvg part has been extended with linear-logarithmic, logarithmic-linear, logarithmic-logarithmic, polar graphs and pie charts, normal and stacked bar charts, different functions like integration and differentiation and a series of event trapping functions, buttons and sliders, in order to create interactive lecture material and exams online in web pages. Demonstrations of most features can be found at http://www.asciimathml.com.
 
ASCIIMathML.js has been integrated into [[MathJax]], starting with MathJax v2.0.<ref>{{cite web|url=http://www.mathjax.org/mathjax-v2-0-beta-now-available-on-cdn/ |title=MathJax v2.0 beta available|date=11 February 2012 }}</ref><ref>{{citation|title=MathJax: A Platform for Mathematics on the Web|first=Davide|last=Cervone|journal=[[Notices of the AMS]]|volume=59|issue=2|date=February 2012|url=https://www.ams.org/journals/notices/201202/rtx120200312p.pdf|pages=312–316}}.</ref>
[[MathMagic]], a [[WYSIWYG]] equation editor, supports ASCIIMath and ASCIIMathML in both directions - reading and saving. MathMagic can be used to convert ASCIIMath to other math expressions and web compliant image formats such as [[TeX]], [[LaTeX]], [[MathML]], [[Portable_Network_Graphics | PNG]], [[GIF]], [[JPEG]], and other formats.
 
== Example ==
 
The well-known [[quadratic formula]]
:<math>x=\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math>
 
looks like this in AsciiMath:
<nowiki>x=(-b +- sqrt(b^2 – 4ac))/(2a)</nowiki>
 
 
== References ==
{{reflist|30em}}
 
==External links==
* {{Official website|http://asciimath.org/}}
* [http://www1.chapman.edu/~jipsen/mathml/asciimath.html ASCIIMathML Homepage]
* [http:{{github|mathjax//www.asciimathml.com www.asciimathml.com]|ASCIIMathML}}
* {{github|Zefling/ASCIIMathPHP|ASCIIMathPHP}}
 
[[Category:MarkupLightweight markup languages]]
[[Category:Mathematical markup languages]]
 
 
[[Category:Markup languages]]
[[Category:Mathematical markup]]
{{compsci-stub}}