removed mjx context menu

This commit is contained in:
ucrhh 2021-02-06 11:50:17 +01:00
parent 648b5f6752
commit b5f114303f
3 changed files with 8 additions and 3 deletions

View File

@ -4,7 +4,7 @@ SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformTo
return elem.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
window.MathJax = {
loader: {load: ['[tex]/bussproofs', '[tex]/unicode']},
loader: {load: ['input/tex-full', 'output/svg', '[tex]/bussproofs', '[tex]/unicode']},
tex: {
packages: {'[+]': ['bussproofs', 'unicode']},
inlineMath: [['$', '$'], ['\\(', '\\)']]
@ -144,3 +144,10 @@ mjx-container {\
}
}
};
(function () {
let script = document.createElement('script');
script.src = 'http://cdn.jsdelivr.net/npm/mathjax@3.1.2/es5/startup.js';
// script.async = true;
document.head.appendChild(script);
})();

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,6 @@ import java.util.List;
@CssImport("./styles/view/main/main-view.css")
@JsModule("./styles/shared-styles.js")
@JavaScript("./src/svg-pan-zoom.min.js")
@JavaScript("./src/tex-svg-full.js")
@PageTitle("Typicalc")
public class MainViewImpl extends AppLayout implements MainView, HasErrorParameter<NotFoundException> {
private static final long serialVersionUID = -2411433187835906976L;