From 20a0082f81ae88d58791223f2abdd87a2b146321 Mon Sep 17 00:00:00 2001 From: Nova <69091361+qzxtu@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:44:01 -0500 Subject: [PATCH] Add files via upload --- js/INICIO.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/INICIO.js b/js/INICIO.js index 9c659a4..31c01bd 100644 --- a/js/INICIO.js +++ b/js/INICIO.js @@ -46,3 +46,15 @@ document.getElementById("output").innerHTML = result; const historyItem = document.createElement("li"); historyItem.innerHTML = `Expresión: \[${expression}\]
Variable: \[${variable}\]
Resultado: \[${result}\]`; document.getElementById("historyList").prepend(historyItem); +window.MathJax = { + tex: { + inlineMath: [['$', '$'], ['\\(', '\\)'], ['\\[', '\\]']], // Puedes añadir otros delimitadores aquí + tags: 'ams' + }, + startup: { + ready: function() { + MathJax.startup.defaultReady(); + // Tu código existente aquí + } + } +};