Skip to content

Commit a78bd96

Browse files
committed
Testing to get the fonts
1 parent be2106b commit a78bd96

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

webapp/templates/base.html.twig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717
window.MathJax = {
1818
tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] },
1919
svg: { fontCache: 'global' },
20-
chtml: { fontURL: "{{ app.request.basePath }}/mathjaxfonts" }
20+
chtml: { fontURL: "{{ app.request.basePath }}/mathjaxfonts" },
21+
loader: {
22+
paths: {
23+
'mathjax': "{{ app.request.basePath }}/mathjax",
24+
'mathjax-newcm-font': "{{ app.request.basePath }}/mathjaxfonts",
25+
},
26+
load: ['input/tex', 'output/svg', 'mathjax-newcm-font']
27+
},
2128
};
2229
</script>
2330
<script src="{{ app.request.basePath }}/mathjax/tex-chtml.js"></script>

0 commit comments

Comments
 (0)