Attention
Version 3 is now the current version of MathJax. This document is for version 1.
The MathZoom extension¶
The options below control the operation of the Math-Zoom feature that
allows users to see an enlarged version of the mathematics when they
click or hover over typeset mathematics. They are listed with their
default values. To set any of these options, include a MathZoom
section in your MathJax.Hub.Config()
call. For example
MathJax.Hub.Config({
MathZoom: {
delay: 600
}
});
would set the delay
option to 600 milliseconds.
Mathematics is zoomed when the user “triggers” the zoom by an action,
either clicking on the mathematics, double-clicking on it, or holding
the mouse still over it (i.e., “hovering”). Which trigger is used is
set by the user via the math contextual menu (or by the author using
the menuSettings
configuration section).
- delay: 400
This the time (in milliseconds) that the mouse must be still over a typeset mathematical formula before the zoomed version is displayed (when the zoom trigger is set to Hover).
- styles: {}
This is a list of CSS declarations for styling the zoomed mathematics. See the definitions in
extensions/MathZoom.js
for details of what are defined by default. See CSS Style Objects for details on how to specify CSS style in a JavaScript object.