Writing LaTeX

From String Theory Wiki
Revision as of 20:07, 24 December 2006 by Tom (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

LaTeX is the language in which most mathematics and physics documents are written. Mathematical symbols and equations are written in a special markup. For example an integral sign is inserted with \int. The best way to learn LaTeX is by example. Here is a basic LaTeX file:

\title{Simple example} 

\section{Quadratic equation}

We want to solve $ax^2+bx+c$.  The solution is
  x= \frac{-b\pm \sqrt{b^2 -4ac}}{2a}


LaTeX commands start with a back slash \. Sometimes they have an argument in curly brackets, e.g \sqrt{b^2-4ac}.

To convert this into a readable document first save it into a file with a .tex extension, e.g. sample.tex. Then you need to process it. If you are using GNU/Linux, see Processing LaTeX with GNU/Linux systems.