行动

这个 action 扩展允许您访问mathml <maction> 元素。它定义了三个新的非标准宏:

\\mathtip{math}{tip}

使用 tip (在数学模式下)作为工具提示 math .

\\texttip{math}{tip}

使用 tip (纯文本)作为工具提示 math .

\\toggle{math1}{math2}...\\endtoggle

math1 ,单击时显示 math2 ,等等。单击最后一个时,返回到 math1 .

autoload 使用分机。装入 action 显式扩展,添加 '[tex]/action'load 数组 loader 块的mathjax配置,并添加 'action'packages 数组 tex 块。

window.MathJax = {
  loader: {load: ['[tex]/action']},
  tex: {packages: {'[+]': ['action']}}
};

或者,使用 \require{{action}} 在tex表达式中,从页面上的数学中动态加载它,如果 require 已加载包。


操作命令

这个 action 扩展实现以下宏: \mathtip\texttip\toggle