Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include LaTeX formulas in HTML files?

Tags:

html

latex

I saw some sites include LaTeX formulas in their sites. How they do that?
Is there any HTML tag or maybe a SSI command to include LaTeX formulas?
I prefer there be a server-side command, not a client-side. Some clients don't have LaTeX compiler.

Thanks in advance

like image 311
Pro.Hessam Avatar asked Aug 10 '11 10:08

Pro.Hessam


2 Answers

MathJax is a possible solution. It is a client-side solution (Javascript) which is compatible with LaTeX syntax.

I think MathTran provides an online outsourcing of your LaTeX files, which you can later embed in your HTML code (much in the way of the Google Chart Tools)

Depending on your server configuration (ie assuming you can install what you want), if the LaTeX files don't change often you could easily schedule a (say) LaTeX -> PNG render (lots of info the web on how to do it) and link the resulting PNG.

Last resort (but the simplest) if you have server limitations (say a shared host), you can just render the LaTeX to an image offline and upload the result.

like image 59
Rui Vieira Avatar answered Oct 19 '22 14:10

Rui Vieira


MathJax can do that job for you. Check out the website.

like image 40
Efraín Soto Apolinar Avatar answered Oct 19 '22 14:10

Efraín Soto Apolinar