projects:corsipp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
projects:corsipp [2025/10/09 21:07] ayushprojects:corsipp [2025/10/09 21:28] (current) ayush
Line 1: Line 1:
  ~~NOTOC~~  ~~NOTOC~~
 +
 +<html>
 +<!-- 1) KaTeX CSS/JS + auto-render -->
 +<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.23/dist/katex.min.css" integrity="sha384-//SZkxyB7axjCAopkAL1E1rve+ZSPKapD89Lo/lLhcsXR+zOYl5z6zJZEFXil+q0" crossorigin="anonymous">
 +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.23/dist/katex.min.js" integrity="sha384-cpAIxua0Xbyc+XrpHQpCtJzGSZ6U2kS/FeyoKjnS+BgAYNV6uVUetVs/LC9+l3rs" crossorigin="anonymous"></script>
 +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.23/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous"
 +    onload="renderMathInElement(document.body);"></script>
 +
 +<!-- 2) Style so math blends with Inter -->
 +<style>
 +/* Keep math color and weight in step with Inter */
 +.katex { color: inherit; font-weight: 400; }
 +/* 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/units match body text */
 +.katex .text, .katex .mathnormal.text {
 +  font-family: "Inter", system-ui, -apple-system, "Segoe UI",
 +               Roboto, Helvetica, Arial, sans-serif !important;
 +  font-weight: 400 !important;
 +}
 +/* Slightly snug subscripts/superscripts */
 +.katex .mord + .msup, .katex .mord + .msub { margin-left: -0.03em; }
 +</style>
 +
 +<!-- 3) Render *only* inside .katex-zone, and tell MathJax v2 to ignore it -->
 +<script>
 +document.addEventListener('DOMContentLoaded', function () {
 +  // Render every KaTeX zone with TeX delimiters like MathJax ($...$, $$...$$)
 +  document.querySelectorAll('.katex-zone').forEach(function (el) {
 +    renderMathInElement(el, {
 +      delimiters: [
 +        {left: "$$", right: "$$", display: true},
 +        {left: "\\[", right: "\\]", display: true},
 +        {left: "$",  right: "$",  display: false},
 +        {left: "\\(", right: "\\)", display: false}
 +      ],
 +      throwOnError: false,   // don’t explode on unknown macros
 +      strict: false          // be permissive like MathJax
 +    });
 +  });
 +});
 +</script>
 +</html>
 +
  
 <html> <html>
Line 52: Line 99:
 </style> </style>
 </html> </html>
 +<html><div class="tex2jax_ignore katex-zone"></html>
  
 <WRAP tablewidth 90% center> <WRAP tablewidth 90% center>
Line 283: Line 331:
 </WRAP> </WRAP>
 </WRAP> </WRAP>
 +<html></div></html>
  
  • projects/corsipp.txt
  • Last modified: 2025/10/09 21:28
  • by ayush