Tutorial for Everyone: LaTeX

There may be times in your life where you need to make a mathematical figure or equation on your computer.

For me, as a high school student, this occurs often in both math and biology. There is no easy way to create a fraction that looks nice in word. Most people use awkward line spacing and tabulation to make fractions, but isn’t there an easier way?

Yup. It’s called LaTeX. LaTeX is basically a markup language that is often used to draw equations.

Start out by going to The Codecogs Equation Editor.

Up above you’ll notice a giant bank of mathematical symbols and templates.

Click one of these and you’ll get some markup in the text box with some empty brackets. Stick some numbers in the brackets and see what happens below the box.

Screen Shot 2013-10-08 at 11.43.46 PM

 

Look at that, you’ve created a mathematical figure!

To extend your equation, just keep adding symbols and they’ll fill from left to right. You can also nest these items within each other, so you can have a fraction within a fraction, a number with an exponent within another symbol, and so on.

Screen Shot 2013-10-08 at 11.46.24 PM

Using this, I bet most of you will be able to figure out how to write some great and useful equations just by playing around with it.

Once you’re satisfied with your equation, you can click the “Click here to Download Image (GIF)” link and a GIF of your equation will be downloaded. It won’t be very high resolution, but if it’s resolution you want I recommend copying your completed LaTeX markup from the Codecogs editing website and pasting it into Roger’s Online Equation Editor. Here you can put in a giant resolution and download an image in some other format.

Screen Shot 2013-10-08 at 11.52.11 PM

 

Another use I’ve found for LaTeX is in my high school chemistry class. As we discuss radioactive decay, it is necessary to notate isotopes and decay equations on a computer. Luckily, LaTeX is here to save the day.

Lets say that you have an Iodine-131 atom on the left which decays into a Xenon-131 atom and a beta particle. This can be notated in LaTeX with

_{53}^{131}\textrm{\textbf{I}}\rightarrow_{54}^{131}\textrm{\textbf{Xe}}+_{-1}^{0}\textrm{\textbf{e}}

You can probably figure out what all of those things relate to in the result:

eqn8694

So there’s your primer on the basics of LaTeX. Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *