Update assets/latex.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Matthias Jung
2026-02-11 13:18:28 +01:00
committed by GitHub
co-authored by Copilot
parent 0af159852c
commit 1419fad378
+2 -2
View File
@@ -15,10 +15,10 @@ document.addEventListener("DOMContentLoaded", function() {
expValue = expValue.slice(1);
}
// Exponent numerisch prüfen
// Parse exponent as a numeric value
const expNum = parseInt(expValue, 10);
// e0 → komplett unterdrücken
// Suppress exponent if it is 0 (no \cdot 10^0 shown)
if (expNum !== 0) {
exponent = "\\cdot 10^{" + expNum + "}";
}