@@ -9,11 +9,13 @@ import remarkMath from 'remark-math'
99import rehypeMathjax from 'rehype-mathjax/chtml'
1010import expressiveCode from 'astro-expressive-code'
1111import { expressiveCodeOptions } from './src/site.config'
12+ import { mathJaxMacros } from './src/mathjax.macros'
1213import icon from 'astro-icon'
1314
1415// https://astro.build/config
1516export default defineConfig ( {
1617 site : 'https://agustinus.kristia.de' ,
18+ prefetch : true ,
1719 redirects : {
1820 '/about' : '/'
1921 } ,
@@ -43,55 +45,7 @@ export default defineConfig({
4345 fontURL : 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/output/chtml/fonts/woff-v2'
4446 } ,
4547 tex : {
46- macros : {
47- qed : [ '\\tag*{$\\square$}' ] ,
48- R : [ '\\mathbb{R}' ] ,
49- dint : [ '\\mathrm{d}' ] ,
50- vphi : [ '\\boldsymbol{\\phi}' ] ,
51- vpi : [ '\\boldsymbol{\\pi}' ] ,
52- vpsi : [ '\\boldsymbol{\\psi}' ] ,
53- vomg : [ '\\boldsymbol{\\omega}' ] ,
54- vsigma : [ '\\boldsymbol{\\sigma}' ] ,
55- vzeta : [ '\\boldsymbol{\\zeta}' ] ,
56- vx : [ '\\mathbf{x}' ] ,
57- vy : [ '\\mathbf{y}' ] ,
58- vz : [ '\\mathbf{z}' ] ,
59- vh : [ '\\mathbf{h}' ] ,
60- b : [ '\\mathbf' ] ,
61- vec : [ '\\mathrm{vec}' ] ,
62- vecemph : [ '\\mathrm{vec}' ] ,
63- mvn : [ '\\mathcal{MN}' ] ,
64- G : [ '\\mathcal{G}' ] ,
65- M : [ '\\mathcal{M}' ] ,
66- N : [ '\\mathcal{N}' ] ,
67- S : [ '\\mathcal{S}' ] ,
68- I : [ '\\mathcal{I}' ] ,
69- diag : [ '\\mathrm{diag}(#1)' , 1 ] ,
70- diagemph : [ '\\mathrm{diag}(#1)' , 1 ] ,
71- tr : [ '\\mathrm{tr}(#1)' , 1 ] ,
72- C : [ '\\mathbb{C}' ] ,
73- E : [ '\\mathbb{E}' ] ,
74- D : [ '\\mathcal{D}' ] ,
75- inner : [ '\\langle #1 \\rangle' , 1 ] ,
76- innerbig : [ '\\left \\langle #1 \\right \\rangle' , 1 ] ,
77- abs : [ '\\lvert #1 \\rvert' , 1 ] ,
78- norm : [ '\\lVert #1 \\rVert' , 1 ] ,
79- two : [ '\\mathrm{II}' ] ,
80- GL : [ '\\mathrm{GL}' ] ,
81- Id : [ '\\mathrm{Id}' ] ,
82- grad : [ '\\mathrm{grad} \\, #1' , 1 ] ,
83- gradat : [ '\\mathrm{grad} \\, #1 \\, \\vert_{#2}' , 2 ] ,
84- Hess : [ '\\mathrm{Hess} \\, #1' , 1 ] ,
85- T : [ '\\mathrm{T}' ] ,
86- dim : [ '\\mathrm{dim} \\, #1' , 1 ] ,
87- partder : [ '\\frac{\\partial #1}{\\partial #2}' , 2 ] ,
88- rank : [ '\\mathrm{rank} \\, #1' , 1 ] ,
89- inv : [ '-1' ] ,
90- map : [ '\\mathrm{MAP}' ] ,
91- L : [ '\\mathcal{L}' ] ,
92- argmax : [ '\\operatorname{arg,max}' ] ,
93- argmin : [ '\\operatorname{arg,min}' ]
94- }
48+ macros : mathJaxMacros
9549 }
9650 }
9751 ]
@@ -101,6 +55,5 @@ export default defineConfig({
10155 className : [ '' ]
10256 }
10357 }
104- } ,
105- prefetch : true
58+ }
10659} )
0 commit comments