LaTex…it Just Looks Good

Well for those of you that don’t know what LaTex is-and I’m not talking about the “fabric”-I suggest you head over to Google and find out.

I’m not all too sure on how to install Tex from the command line, but if I had to guess I would say it is something like sudo apt-get install texlive.  TexLive is the package that gives you LaTex functionality.   I installed this a while back by System>Administration>Synaptic Package Manager then chose to install TexLive from the menu.

Now that you have all that you need (well enough to get started) just open up Gedit or some other text editor.  Let us call this file FIRST.tex and enter the following and save:


\documentclass{article}
\begin{document}

Hey check this out
$$\int_0^\infty\left(\frac{\sin x}{x}\right)^2dx=\frac{\pi}{2}$$
\end{document}

Now to view your creation you just need to “compile” it to a PDF (or a dvi if you would rather do that).  This is done with the command pdflatex FIRST.tex then to view it you just open up a PDF viewer.  If you are using Adobe this can be accomplished with acroread FIRST.pdf .

Your file should look something like:

Hey check this out \displaystyle\int_0^\infty\left(\frac{\sin x}{x}\right)^2dx=\frac{\pi}{2}

Best of luck ‘Tex-ing’.

Advertisements

One Response to LaTex…it Just Looks Good

  1. Miorel says:

    LaTeX is awesome 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: