log in

Using MathJax in JSXGraph

info iconDescriptive name for your fiddle.
Edit to suit. (Only available to the logged in author.)

Author: mbourne

<div id="jxgbox" class="jxgbox"></div>

#jxgbox {
  max-width: 400px;
  aspect-ratio: 1;
  max_height: calc(100vh - 1.5em)
}
      
JSXGraph version: 1.12.0

info icon You aren't the author of this fiddle, so clicking "run" will only update the graph, not save your changes.

To save your changes, make a fork of this fiddle.

info icon Create a new version of this fiddle.
It's like "Save as..."

Save any recent changes (by clicking "Run") first.

info icon Export a HTML page of this Fiddle from the current saved settings.

In the downloaded file, if you see console errors complaining about CORS policy, make sure you run the exported file from a localhost/ or an actual server.

smartphone icon Device size:

spinner

In jxgFiddle, MathJax is automatically loaded if you set the following variable at the top of your code:

JXG.Options.text.useMathJax = true;

... Or, if your HTML has math (e.g. $$ ... $$), or if you have a math expression within JSXGraph, MathJax will automatically load.

×