LaTeX Typesetting
The tutorials on this website were written using the LaTeX typesetting language. I have written a very brief tutorial on getting started with LaTeX which can be downloaded below. As described in the tutorial, plain text files written in LaTeX can printed as a pdf document with the MiKTex LaTeX program which can be downloaded from http://miktex.org/portable/about.
Here is an example .tex file that demonstrates some basic techniques and the .pdf file shows the result.
Searching on Google for LaTeX will give you an enormous amount of information to help you on your way.