To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

MathJax
Developer(s)American Mathematical Society
Stable release
3.2.2[1] / June 8, 2022; 22 months ago (2022-06-08)
Repository
Written inJavaScript
Operating systemCross-platform
TypeMathematical software
LicenseApache License 2.0
Websitewww.mathjax.org Edit this on Wikidata

MathJax is a cross-browser JavaScript library that displays mathematical notation in web browsers, using MathML, LaTeX and ASCIIMathML markup.[2][3][4] MathJax is released as open-source software under the Apache License.

The MathJax project started in 2009 as the successor to an earlier JavaScript mathematics formatting library, jsMath,[5] and is managed by the American Mathematical Society.[6] The project was founded by the American Mathematical Society, Design Science, and the Society for Industrial and Applied Mathematics and is supported by numerous sponsors such as the American Institute of Physics and Stack Exchange.[7]

MathJax is used by web sites including arXiv,[8] Elsevier's ScienceDirect,[9] MathSciNet,[10] n-category cafe, MathOverflow, Wikipedia (on the backend),[11][12] Scholarpedia, Project Euclid journals,[13] IEEEXplore,[14] Publons, Coursera, and the All-Russian Mathematical Portal.[15]

YouTube Encyclopedic

  • 1/5
    Views:
    32 489
    10 859
    26 360
    2 367
    217 560
  • Accessible Math on the Web: Part 1, The Simple Way to Use MathJax
  • Making MathJax Equations Responsive on the web
  • Accessible Math on the Web: Part 2, The Simple Way with MathML and HTML5
  • Typesetting Beautiful Mathematics with LaTeX, Lyx and MathJax
  • Intro to LaTeX : Learn to write beautiful math equations

Transcription

Welcome to this presentation on Accessible Math on the Web Part one, "The simple way to use MathJax." My name is Greg Kraus, University IT Accessibility Coordinator at NC State University. So what's the problem with math on the Web? When writing math on the Web, both the characters that you use and the layout of the characters and how they relate to one another spatially both convey meaning. So, for example, in the quadratic equation, we have a number of characters but they also are positioned in specific spots to convey meaning. There's a fraction, so, I know what's on top of the fraction has a meaning and I know that the characters on the bottom of the fraction have meaning. When I look at the b squared, the two is slightly higher on the line, so I know that there is an implied meaning there. There's a square root symbol, so I know everything under that square root symbol has meaning as well. Often you think, "Well, I can just use some plain text to write this equation," but plain text won't actually reveal the same meaning. I could write this equation out just using a bunch of ASCII characters. Visually, I can understand what this is but if I use an assistive technology, like a screen reader, it won't make any sense at all. So let's hear how this sounds to a screen reader user. Quadratic formula in ASCII characters. Underline, underline, underline, dash B plus or minus V B caret 2 dash 4 ack X equals dash dash dash two A So you can see it's virtually impossible to understand what this equation actually is using plain text. You might think, "Well, maybe I can just make an image of the equation and then I can write some alt text for it to describe what the equation is." This is not recommended because whenever you're writing a textual description of an equation, there's a very specific grammar that you need to use and a specific way that it needs to be written out. Unless you are an expert in this field and know a lot about it, you're probably not going to get this right. There are tools that will do this for you. For example, to write the alt text for this equation, the quadratic equation, this is what it's going to look like. You can see there's a lot of nuances in there even from the words that are used and the special way some words are written. So, when a screen reader reads them, the letters actually sound correct. There's a lot of special rules that have to be followed. So, don't try this at home. Why is this the simple way? Any time you're writing math on the Web, putting math on a Web page has lots of options and parameters. You have to know things like what language am I going to write the math in? Am I going to write it in TeX, or LaTeX, or MathML? You have to know what type of document it's going to be in. Is it going to be an HTML 4 document, an XHTML document, or an HTML5 document? You have to know which namespace to use in the document in order to make the math render correctly. If all of this is confusing to you and you don't know what all of this is, that's why we have the simple way, to show you the simple way to always to get math to work correctly online. In a later tutorial, we'll look at other ways that you can put math online that takes advantage of some other technologies. What is the simple way to write math? First you need to create your equation in a program called MathType. MathType is a program that lets you graphically build your equation and then export it to a number of plain text formats that will work on Web pages. You take your equation, you write it in MathType, and you copy and paste the plain text version of it into your HTML document either as TeX or LaTeX. Then you're going to add in the MathJax libraries to your page. It's just a single line of code that's going to call these extra libraries that will convert your plain text TeX or LaTeX equation into a graphical representation. So why use MathType? Well, like I said, you have to write your equation in either the TeX format or the LaTeX format and if you know how to write that by hand, that's fine and you can do that but if you don't know how to write TeX or LaTex-and here are examples of the quadratic formula written as both TeX and LaTex-if you don't know how to do that, MathType makes this really easy for you to do. So this is the MathType user interface. It has all kinds of options for adding in all kinds of math symbols to help build your equation. For this tutorial, I'm going to use one of their built-in equations. Just simply click here to add in the quadratic formula. After you've built your equation, you'll need to go up to the Preferences menu and choose Cut and Copy Preference. This is going to tell MathType how you want to get this equation out of MathType and into your Web page editing program. So choose Cut and Copy Preferences. Here I'm going to choose the second option for MathML or TeX. Under here, I've got a number of options that I can choose either LaTeX or a couple of different MathML versions or just plain TeX. For the simple way for doing Math, you need to either choose LaTeX or TeX, it doesn't really matter. Either one will work just the same for this example. I'll choose that. If you have the checkbox "Include MathType data in translation" checked, you need to uncheck that for this example and choose OK. So now I'll come to the Edit Menu and just select all, edit and copy. So now I can go paste this equation into my Web page editor. After you've written your equation in MathType and you set your preferences for how you want to copy and paste this, then you need to go to your HTML document and you need to add a single line to the head section of your Web page, and you're just going to add in this single tag that basically goes out and pulls in the MathJax libraries for you. Don't worry about writing down this big line of code right now. There's a link at the end of the presentation to where you can get this. You can also just go to the MathJax website and it's documented there as well. So what does MathJax look like? Well, MathJax will take that plain text version of your equation written in either TeX or LaTeX-in this case, it's written as Tex-and once the MathJax Library is loaded, it'll go and look for these equations in your Web page and it will transform it into a graphical representation of your equation. By using MathJax, you gain a couple of things. First, your equation is going to look the same no matter what browser people use. You don't have to go out and create a special image of your equation and when someone with an assistive technology, like a screen reader, comes to your Web page, they'll be able to completely interact with this equation and understand it. So let's go see how to add all this stuff into our Web page. This is my Web page editor. In this case, I'm using Dreamweaver and I am in the code view but any Web page editor will work for this. This is going to be a very simple example. I'm simply going to come in here in between the body tags and just choose edit and paste and you'll notice it pasted in the TeX version of that equation for MathType. Now the next thing I need to do is I need to add in that link to the MathJax libraries. So let me go grab that text and I'll come up here in the head section and I will just paste that in there. That's all you need to do. Once you upload this to the Web, the MathJax libraries will automatically be loaded and it will transform that equation into a graphical representation of the equation. Here's this equation in Internet Explorer. Now, the MathJax libraries will work in any browser. The reason I'm in Internet Explorer is I want to show you one additional piece of functionality that you get with using MathJax. In Internet Explorer, there's a plugin that users can download called MathPlayer, and the MathPlayer plugin allows users to interact with the equation in even more ways. First, let me zoom in a little bit so we can see the equation a little better. Then, I'm going to right click on the equation. This might be slightly off your screen, but I'm going to choose Speak Expression. When I do this, it's going to actually read the equation to me, and it's also going to highlight it as it reads. This is very helpful for people who have certain learning disabilities so they can actually follow along with and see what is being read as it's being read. fraction negative B plus minus square root of B squared minus 4 A C end root over 2A end fraction What we just saw is actually only available in Internet Explorer because it does work with the MathPlayer plugin. If any of your users come to your website with Firefox, Chrome, Safari, it doesn't matter, the equation will still look graphically the same. It's just this additional functionality of having the equation read to you that is only available in Internet Explorer. Here are a list of resources that I've mentioned in this tutorial. First, a link to the MathJax website where you can go and read all the documentation about how the tools work, a link to the MathType application where you can go and purchase it. If you are an NC State user and you would like MathType, you can also just go the third URL go.ncsu.edu/mathtype to download a copy of it. These links will all be provided in the description of the video. Finally, for any of the code samples that have been in this presentation, or for any additional information, you can go to the link go.ncsu.edu/accessible-math.

Features

MathJax is downloaded as part of a web page, scans the page for mathematical markup, and typesets the mathematical information accordingly. Thus, MathJax requires no installation of software or extra fonts on the reader's system. This allows MathJax to run in any browser with JavaScript support, including mobile devices.[16]

MathJax can display math by using a combination of HTML and CSS or by using the browser's native MathML support, when available. The exact method MathJax uses to typeset math is determined by the capabilities of the user's browser, fonts available on the user's system, and configuration settings. MathJax v2.0-beta introduced SVG rendering.[17]

In the case of HTML and CSS typesetting, MathJax maximizes math display quality by using math fonts if available and by resorting to images for older browsers. For newer browsers that support web fonts, MathJax provides a comprehensive set of web fonts, which MathJax downloads as needed. If the browser does not support web fonts, MathJax checks whether valid fonts are available on the user's system. If this does not work, MathJax provides images of any symbols needed.[clarification needed] MathJax can be configured to enable or disable web fonts, local fonts, and image fonts.

MathJax uses the STIX fonts for including mathematics in web pages. Installing the fonts on the local computer improves MathJax’s typesetting speed.[18]

MathJax can display mathematical notation written in LaTeX or MathML markup. Because MathJax is meant only for math display, whereas LaTeX is a document layout language, MathJax only supports the subset of LaTeX used to describe mathematical notation.[16]

MathJax also supports math accessibility by exposing MathML through its API to assistive technology software, as well as the basic WAI-ARIA "role" and older alt attributes.[19]

The MathJax architecture is designed to support the addition of input languages and display methods in the future via dynamically loaded modules. MathJax also includes a JavaScript API for enumerating and interacting with math instances in a page.

Browser compatibility

MathJax renders math in most popular browsers, including Internet Explorer 6+, Firefox 3+, Google Chrome 0.3+, Safari 2.0+, Opera 9.5+, iPhone/iPad Safari, and the Android browser. Some older versions of browsers do not support web fonts (with the @font-face CSS construct), so they have to use MathJax image font mode. The browser compatibility list is available at the official site.[20]

Plugin support

MathJax can be easily added to many popular web platforms.[21]

Node.js

MathJax can be used in Node.js since version 3;[22] for version 2, the MathJax-node library[23] provides Node.js compatibility.

Equation editor compatibility

Any MathJax equation displayed in a supported browser can be copied out in MathML or LaTeX format via "Show Math as" sub-menu if right-button clicked or control-clicked on it. Then it can be pasted in any equation editor that supports MathML or LaTeX, such as Mathematica, MathType, MathMagic, Firemath for re-using.[24]

Equations generated in MathML or LaTeX format by any 3rd party equation editor can be used in MathJax enabled web pages.

TeX support

MathJax replicates the math environment commands of LaTeX. AMS-LaTeX math commands are supported via extensions. MathJax also supports TeX macros and miscellaneous formatting like \color and \underline.[25]

MathML support

MathJax added partial support for MathML 2.0 and some MathML 3.0 constructs in its beta 2 release. MathJax supports presentation MathML and, as of version 2.2, provides experimental support for content MathML.[26]

CDN servers

The MathJax site has been providing a content delivery network (CDN) where the JavaScript needed for MathJax to work can be loaded by the browser at run time from the CDN. This simplifies the installation and ensures the latest version of the library is always used. Over time usage of the server has grown from 1.3TB per month traffic in 2011 to 70TB per month in 2017. Due to increasing cost of hosting the server, the main CDN server shut down at the end of April 2017. Alternative third party CDN servers are available.[27]

See also

References

  1. ^ "MathJax v3.2.2". MathJax. 2022-06-08.
  2. ^ "MathJax: Rich Math display from LaTeX and MathML". 17 November 2015.
  3. ^ "MathJax AsciiMath support". Archived from the original on 2018-03-23. Retrieved 2013-04-07.
  4. ^ Cuellar, Autumn; Topping, Paul (June 2013). Mathews, Bob (ed.). "What you need to know about the Maths Stack". XML London 2013: 63–68. doi:10.14337/XMLLondon13.Cuellar01 (inactive 2024-03-14). ISBN 978-0-9926471-0-0.{{cite journal}}: CS1 maint: DOI inactive as of March 2024 (link)
  5. ^ Hayes, Brian (2009), "Writing Math on the Web: The Web would make a dandy blackboard if only we could scribble an equation", American Scientist, 92 (2): 98, doi:10.1511/2009.77.98.
  6. ^ "AMS becomes managing partner of the MathJax Consortium". 2013-03-20.
  7. ^ "MathJax Sponsorship".
  8. ^ "arXiv.org help – What is MathJax?".
  9. ^ "MathJax on ScienceDirect". Archived from the original on 2014-08-26. Retrieved 2014-08-24.
  10. ^ "MathSciNet What's New".
  11. ^ Schubotz, Moritz; Wicke, Gabriel (2014-01-01). "Mathoid: Robust, Scalable, Fast and Accessible Math Rendering for Wikipedia". Intelligent Computer Mathematics. Lecture Notes in Computer Science. Vol. 8543. pp. 224–235. arXiv:1404.6179. doi:10.1007/978-3-319-08434-3_17. ISBN 978-3-319-08434-3. S2CID 16123116.
  12. ^ "Extension:Math - MediaWiki". www.mediawiki.org. Retrieved 2017-04-06.
  13. ^ "What is MathJax?".
  14. ^ "IEEE Xplore Help". ieeexplore.ieee.org. Retrieved 2021-08-05.
  15. ^ "All-Russian Mathematical Portal".
  16. ^ a b Cervone, Davide (2012), "Math Jax: A Platform for Mathematics on the Web" (PDF), Notices of the American Mathematical Society, 59 (2): 312–316, doi:10.1090/noti794
  17. ^ "MathJax v2.0-beta now available on CDN". February 11, 2012.
  18. ^ MathJax Font Help Archived 2012-07-28 at the Wayback Machine accessed 2012-08-14.
  19. ^ "MathJax: Accessibility".
  20. ^ "MathJax: Browser Compatibility". Archived from the original on 2015-04-06. Retrieved 2017-06-05.
  21. ^ "Using MathJax in popular web platforms". Archived from the original on 2017-08-31. Retrieved 2017-06-05.
  22. ^ "What's New in MathJax 3".
  23. ^ "mathjax-node". 5 June 2018.
  24. ^ "Copy and Paste Math".
  25. ^ "MathJax: Supported LaTeX Commands". Archived from the original on 2018-12-16. Retrieved 2017-06-05.
  26. ^ "MathJax MathML Support — MathJax 2.3 documentation". Archived from the original on 2018-12-15. Retrieved 2014-02-14.
  27. ^ "MathJax CDN shutting down on April 30, 2017". MathJax. 31 March 2017.

External links

This page was last edited on 9 April 2024, at 23:31
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.