How to Copy LaTeX Equations as Text, Not Images?

I take lots of notes with mathematical equations. I write equations using the Latex pack. I have like 1000 words and 30 equations in a page.

I want to be able to copy-paste these notes to LLMs. LLMs are good at recognizing and discussing Latex formatted equations.

It’s also easier to paste a bunch of notes into Overleaf when everything is already in Latex format .

Since Latex pack renders equations as images, it becomes hard to copy-paste them as text. I end up needing to copy each equation individually.

  • this is what I write:

    • some text image
  • this is what code copies as text:

    • some text data:image/svg+xml;supportsDarkMode=1;base64,PHN2ZyBzdHlsZT0idmVydGljYWwtY…
      (the binary data of the image)
  • this is what I want to copy:

    • some text “e_{ij} = s_{i-1}^T h_j”
  • this is also okay:

    • some text LaTeX::Math(“e_{ij} = s_{i-1}^T h_j”)

Is there a way to do this?