Tips on using colour in LaTeX

To use colours in regular LaTeX files, just do the following:

  1. To put colours into a usual LaTeX file just include the line \usepackage{color} directly below the line which looks approximately like \documentclass{article}

  2. Ensure that the file rgb.tex is in your current directory or path.

  3. Include the following line below the \usepackage{color} line:
    \input{rgb}

  4. Then colour bits of text or equations etc with a construction like:
    {\color{red} ...bit of LaTeX text...}
    an example of making an equation the colour DarkSeaGreen (rather a sophisticated shade, I think) one types the following:
    \begin{equation}
    {\color{DarkSeaGreen} x = \log_{10} (\nu/\rm MHz) }
    \end{equation}

  5. Then just run latex filename in the usual way.


Here are some examples of the LaTeX seminar slides:

  1. An example of a regular LaTeX file which is coloured is example_latex.tex - you can view what this should look like by ghostviewing example_latex.ps

  2. An example of a LaTeX file which makes use of the seminar.cls package is example_ohps.tex -- you can view what this should look like by ghostviewing example_ohps.ps


Home page | Publications | Useful links | PGP public key | The other Dr Blundell | Tips on observe | AIPS runfiles | High-z Long-wavelength meeting | Oxford Radio Galaxy Workshop | Colour in LaTeX | Tips on posters | Lecture course |

Katherine Blundell
Last modified: Sat Sep 20 16:01:07 2003