Update assets/latex.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -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 + "}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user