Skip to content

Instantly share code, notes, and snippets.

@pkra
Last active September 16, 2015 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkra/4c57afc70c4f1a4fb356 to your computer and use it in GitHub Desktop.
Save pkra/4c57afc70c4f1a4fb356 to your computer and use it in GitHub Desktop.
Development version of MathJax's now-accessible menu
<!DOCTYPE html>
<html>
<head>
<title>MathJax Accessible Menu Test Page</title>
<!-- Copyright (c) 2015 The MathJax Consortium -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","output/HTML-CSS"],
extensions: ["tex2jax.js","MathMenu.js","MathZoom.js","AssistiveMML.js"],
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]},
});
</script>
<script type="text/javascript" src="https://rawgit.com/mathjax/MathJax/fix_separator_bug/unpacked/MathJax.js
"></script>
</head>
<body>
<p>
This page demonstrates the accessible menu from MathJax's development branch.
You can tab through equations and access menu via space/menu-key, navigate via arrow keys
</p>
<p>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</p>
<h2>The Lorenz Equations</h2>
<p>
\begin{align}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{align}
</p>
<h2>The Cauchy-Schwarz Inequality</h2>
<p>\[
\left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
\left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
\]</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment