How to insert equations in HTML webpages

  • Context: HTML/CSS 
  • Thread starter Thread starter cire
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
7 replies · 3K views
cire
1. How to insert equations?
2. How to make a html web page with equations?
 
Physics news on Phys.org
Gokul's link show how to insert equations on this website.

In order to include equations on your own website, you need to provide a Latex capability or resort to saving each equation as an image and then inserting into your html page as an image (this sucks!).
 
You're probably best to ask this in one of the technology subforms if you want Latex capabilities on you're webserver. Otherwise, resort to what BobG said about saving the Latex as images and inserting them in your page with HTML. I think Greg stated that he wouldn't like you generating personal Latex images using this site (check Gokul's link.)
 
Last edited:
this is a test

[tex] <br /> documentclass[a4paper,11pt]{article}<br /> \usepackage{latexsym} <br /> \usepackage{sparticles} %Package for displaying sparticle names. <br /> \usepackage{feynmf} %Package for feynman diagrams. <br /> \author{William Ruddick}<br /> \title{Example Selectron Feynman Diagrams}<br /> \begin{document}<br /> \maketitle<br /> <br /> \begin{figure}[!htb]<br /> \begin{center}<br /> \begin{tabular}{cccccccccccccccc} %Adds several centered Columns<br /> <br /> \begin{fmffile}{one} %one.mf will be created for this feynman diagram <br /> \fmfframe(1,7)(1,7){ %Sets dimension of Diagram<br /> \begin{fmfgraph*}(110,62) %Sets size of Diagram<br /> \fmfleft{i1,i2} %Sets there to be 2 sources <br /> \fmfright{o1,o2} %Sets there to be 2 outputs<br /> \fmflabel{$e^-$}{i1} %Labels one of the left sources<br /> \fmflabel{$e^+$}{i2} %Labels one of the left sources<br /> \fmflabel{${\ensuremath{\erlpm}}$}{o1} %Labels one of the right outputs<br /> \fmflabel{${\ensuremath{\erlpm}}$}{o2} %Labels one of the right outputs<br /> \fmf{fermion}{i1,v1,i2} %Connects the sources with a vertex.<br /> \fmf{fermion}{o1,v2,o2} %Connects the outputs with a vertex.<br /> \fmf{photon,label=$\gamma/Z^0$}{v1,v2} %Labels the conneting line.<br /> \end{fmfgraph*}<br /> }<br /> \end{fmffile}<br /> &&&&<br /> [/tex]