Tuesday, September 28, 2010

How to Type Math Equations in your Email/Blog/Website

Latex is a markup language used by scientists/academicians to type math equations. I have attempted to explain how to include math-equations in your email/blog/site. Drop in a mail at sudarshaniisc at gmail in case of problems.

Point your browser to http://codecogs.com/latex/eqneditor.php . You can now type your equation (you can use the buttons on the top if you are not acquainted to latex). For example if you type (a+b)^2 = a^2 + b^2 +2ab in the equation box the following appears . In the tiny window in the middle bottom you will see the corresponding html code. Note that you can also copy the equation as an image or a weblink by right clicking on it.


1) Email: If you are using gmail, you must first enable "insert picture option". You can do this in your gmail account by enabling settings-Labs-insertingimages. Once this is done, you are ready to insert images into your email. Use the above method to type your equation and then copy the weblink of the equation. You can now use the insert image feature to insert the weblink of the equation.

2) Website: To include an equation in a webpage, just copy paste the html code.


3) Blog: Pasting the html code works fine for blogs. If you are using blogger.com--as an alternative--you can consider doing the following: 
  • Go to your blog homepage and click on design.
  • You will see something like this:
  • Click on add a gadget and select "html/Java Script" (there are several places where you can add gadgets, you must select the one in the bottom. (look at the figure above)
  • Paste the following code :


There you are, you can now type latex equations in your blogspot blog by enclosing your latex code between $   $. You can now complicate your webpage/blog with equations and math structures. Please note that the rendering is a little bad. The equations tend to get misoriented from the line of text. Wonder if someone knows how to fix it. Until a fix arrives, lets use  and appreciate what we have :-)

2 comments: