Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
projects:corsipp [2025/10/09 21:07] – ayush | projects:corsipp [2025/10/09 21:28] (current) – ayush | ||
---|---|---|---|
Line 1: | Line 1: | ||
| | ||
+ | |||
+ | < | ||
+ | <!-- 1) KaTeX CSS/JS + auto-render --> | ||
+ | <link rel=" | ||
+ | <script defer src=" | ||
+ | <script defer src=" | ||
+ | onload=" | ||
+ | |||
+ | <!-- 2) Style so math blends with Inter --> | ||
+ | < | ||
+ | /* Keep math color and weight in step with Inter */ | ||
+ | .katex { color: inherit; font-weight: | ||
+ | /* Inline math size tuned to Inter x-height (adjust 0.98–1.00 if you want) */ | ||
+ | .katex { font-size: 1.125em; } | ||
+ | /* Display math: a touch bigger and with roomy margins */ | ||
+ | .katex-display { margin: 0.6em 0 0.8em; } | ||
+ | .katex-display .katex { font-size: 1.03em; } | ||
+ | /* Make \text{...} use Inter so labels/ | ||
+ | .katex .text, .katex .mathnormal.text { | ||
+ | font-family: | ||
+ | | ||
+ | font-weight: | ||
+ | } | ||
+ | /* Slightly snug subscripts/ | ||
+ | .katex .mord + .msup, .katex .mord + .msub { margin-left: | ||
+ | </ | ||
+ | |||
+ | <!-- 3) Render *only* inside .katex-zone, | ||
+ | < | ||
+ | document.addEventListener(' | ||
+ | // Render every KaTeX zone with TeX delimiters like MathJax ($...$, $$...$$) | ||
+ | document.querySelectorAll(' | ||
+ | renderMathInElement(el, | ||
+ | delimiters: [ | ||
+ | {left: " | ||
+ | {left: " | ||
+ | {left: " | ||
+ | {left: " | ||
+ | ], | ||
+ | throwOnError: | ||
+ | strict: false // be permissive like MathJax | ||
+ | }); | ||
+ | }); | ||
+ | }); | ||
+ | </ | ||
+ | </ | ||
+ | |||
< | < | ||
Line 52: | Line 99: | ||
</ | </ | ||
</ | </ | ||
+ | < | ||
<WRAP tablewidth 90% center> | <WRAP tablewidth 90% center> | ||
Line 283: | Line 331: | ||
</ | </ | ||
</ | </ | ||
+ | < | ||