I have indicated there are good reasons to use LaTeX, the markup language developed by Lamport to run on top of Knuth's Tex. If you have read my earlier post and installed LaTeX here is an annotated file you can use as a building block for a simple project. I developed it on an Apple powerbook using MacTex
% File to show basic usage of Latex
% © Alex Kashko 2009
% a "%" sign is a comment
\documentclass[11pt]{article} % This tells LaTeX what type of document to produce
% This is the prolog to the document. MOST things here apply to the whole
% Document and any documents read in using \include{filename}
% Font size changes made here seem to have no effect
\usepackage{hyperref} % package (stylesheet) used to convert
%every \ref to a link
\pagestyle{myheadings} % Define how headers and page
%numbering are handled
\parskip 0.3 cm % Gap between paragraphs
% \newfont{\helvetica}{cmss12} % Define a reference to a font.
\textheight 9 in % Depth of printed matter on page.
% start of document
\begin{document}
\section{in the beginning \label{math}} % Define a label for the section
\Huge %change fontsize till further notice
%(\normalsize for example)
% Case sensitive
\bf{HELLO WORLD} \rm %\rm returns font style to normal
\begin{equation}
x=3\alpha \label{magnify} % label the equation
% refer to the equation with %\ref{magnify}
\end{equation}
\begin{equation}
2^{\aleph_0} = C \label{continuum}
\end{equation}
Equation \ref{magnify} deals with scaling and \ref{continuum} is to do with logic
\section{next}
And now for something totally different from \ref{math}
\end{document}
\end
The structure of the file is
\documentclass[11pt]{article}
% Document prologue goes here
\begin{document}
% Latex commands go here
\end{document}
\end
The prologue defines global formatting and this can be over-ridden in the document.
Cut and paste the document (bold text above) into a file beginlatex.tex
From the command line type
latex beginlatex.text
dvipdf beginlatex.dvi
Ignore the other files produced. They are fun to look at though
You should get a PDF file you can open in any reader and see the formatting. On my powerbook the links are highlighted.
In future posts I will look at top down document structuring basing the presentation on the maths textbook I had published a few years ago.
Enjoy