yoheinakajima / instagraph

Converts text input or URL into knowledge graph and displays
MIT License
3.47k stars 293 forks source link

Enhancement (drafted) - extend graph to allow latex equations in popups #5

Open johndpope opened 1 year ago

johndpope commented 1 year ago

https://chat.openai.com/share/ab2b5332-30c5-4900-b607-be4c89da3f60

Shoheb06 commented 1 year ago
<script>
window.MathJax = {
  tex: {
    inlineMath: [['$', '$'], ['\\(', '\\)']]
  }
};
</script>
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.0/es5/tex-chtml.min.js"></script>

Also, in the renderMathJax function, use MathJax.typesetPromise() instead of MathJax.Hub.Queue(). Here's an updated version of the function:

function renderMathJax(content) {
  MathJax.typesetPromise([content]).catch(function (err) {
    console.log(err.message);
  });
}
johndpope commented 1 year ago

did you get chatgpt to spit out anything ? I've asked it before - give me in latex format - can you share picture? It would be awesome to get a blow out of dissecting the maths that each paper is built on.

Shoheb06 commented 1 year ago

Use Bard, because is train with the latest data and it is free, whereas in chatgpt you have to pay to use chatgpt4