I use the code below
<script type="tet/x-mathjax-config">
MathJax.Hub.Config({
showMathMenu: false
});
</script>
to disable right-clicking menu on my math website, however It seems not to work. Is it an outdated code or something?
For Mathjax version 3, the information is here: https://docs.mathjax.org/en/latest/options/menu.html
Use this configuration:
<script>
MathJax = {
...
options: {
enableMenu: false
...
}
}
</script>
For version 2 the corresponding setting is documented here: https://docs.mathjax.org/en/v2.7-latest/options/hub.html#configure-hub
and involves the showMathMenu
property listed in the question.