Skip to content

Commit

Permalink
try add more styles for blog
Browse files Browse the repository at this point in the history
  • Loading branch information
hxf0223 committed May 23, 2024
1 parent f3a98d7 commit 43e3484
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions assets/js/data/mathjax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: compress
# WARNING: Don't use '//' to comment out code, use '{% comment %}' and '{% endcomment %}' instead.
---

{%- comment -%}
See: <https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options>
{%- endcomment -%}

MathJax = {
loader: { load: ['[tex]/physics','ui/lazy',] },
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)']
],
displayMath: [
['$$', '$$'],
['\\[', '\\]']
],
packages: {'[+]': ['physics']},
tags: 'ams',
macros: {
'e': '\\mathrm{e}',
'RR': '\\mathbb{R}',
'ZZ': '\\mathbb{Z}',
'QQ': '\\mathbb{Q}',
},
},
options: {
lazyMargin: '200px',
},
svg: { fontCache: 'global'},
};

0 comments on commit 43e3484

Please sign in to comment.