How to Embed Latex Equations in HTML for Beginners

  • Context: LaTeX 
  • Thread starter Thread starter neurocomp2003
  • Start date Start date
  • Tags Tags
    Html Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
neurocomp2003
Messages
1,359
Reaction score
4
Hi, Does anyone have any references on how to embed simple latex equations into HTML?
And can it be done using javascript or does it have to be php?

I've seen websites that allow you to link to their on-the-fly converters
via <img src="link/latex"> but usually this comes with a cap limit. I'd rather have it
on the localhost (because i don't know how to setup php =[)

Also is the process simply using system calls
-latex [eqn.tex] [eqn.dvi]
-dvipng [eqn.dvi] [eqn.png]

I saw this one example where you always temporarily wrap the equation on the backend inside a complete latex file before executing the latex/dvipng calls.
 
Physics news on Phys.org