Created
December 2, 2022 05:34
-
-
Save zaptrem/717b168583a323ef8215ada1fb057d1d to your computer and use it in GitHub Desktop.
ChatGPT Improves Itself
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
var timeout = null; | |
var delay = 1000; | |
var script = document.createElement('script'); | |
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'; | |
document.head.appendChild(script); | |
script.addEventListener('load', function() { | |
var mathJaxConfig = { | |
jax: ["input/TeX", "output/HTML-CSS"], | |
tex: { | |
inlineMath: [ ['$','$'], ['\\(','\\)'] ], | |
displayMath: [ ['$$','$$'], ['\\[','\\]'] ], | |
processEscapes: true, | |
processEnvironments: true, | |
}, | |
options: { | |
ignoreHtmlClass: 'tex2jax_ignore', | |
processHtmlClass: 'tex2jax_process' | |
} | |
}; | |
window.MathJax.config = mathJaxConfig; | |
(function() { | |
function typeset() { | |
try { | |
window.MathJax.typeset(); | |
} catch (err) { | |
console.error(err); | |
} | |
} | |
typeset(); | |
var timeout = null; | |
var delay = 1000; | |
var observer = new MutationObserver(function() { | |
if (timeout) { | |
clearTimeout(timeout); | |
} | |
timeout = setTimeout(function() { | |
typeset(); | |
}, delay); | |
}); | |
observer.observe(document.body, { childList: true, subtree: true }); | |
})(); | |
}); | |
})(); |
Any idea why it's not working for inlineMath?
This is a life saver. But how to solve the inline situation?
This is a life saver. But how to solve the inline situation?
@aiwen324 as well
this extension might be a more stable solution: https://chrome.google.com/webstore/detail/tex-all-the-things/cbimabofgmfdkicghcadidpemeenbffn
I just give ChatGPT the first question: "I want to see math without LaTex." so that the following answers will be display in math.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't seem to work for inline still- maybe just me though. Still this is crazy and my mind is blown, my use case was I asked ChatGPT to solve a step-response to a given transfer function:
