From http://www.enel.ucalgary.ca/People/vigmond/latex/latex.html