Coloured Text for LaTeX

See the download page to obtain this style

Description

This (La)TeX style file allows PostScript colour directives to be inserted with:

\colouring{Green}
set current colour to be green
\begin{colour}{Blue} ... \end{colour}
set colour in environment to be blue (may be nested)

New colours can be defined with:

\addcolour{Mauve}{0.5}{0.0}{0.5}

which gives the colour a name and fractions of red/green/blue. The fractions must be in the range 0.0 to 1.0 inclusive. If a colour is added that is already defined, it overrides the current definition.

The following command disables colour-setting commands and preserves the current colour (typically used at the start of a document for black printing):

\nocolours

The current colour can be saved and restored with:

\colourpush
save current colour
\colourpop
restore colour

This might typically be necessary because a header or footer needs to be printed in a colour that is different from the current body colour. The last should be saved in the footer and restored in the following header.

An attempt to use an undefined colour name defaults to black. An attempt to add an illegal colour definition is ignored. The American spelling "color" is also acceptable in command names.

The \special convention of Rokicki's dvips is followed.

Colours

The pre-defined colours are as follows. They are searched linearly, which is rather inefficient, but since colour changes should be relatively infrequent this should not matter too much.
Blacks
BlackIvoryBlackLampBlack
Blues
AliceBlueBlueBlueLightBlueMedium
CadetCobaltCornflowerCerulean
DodgerBlueIndigoManganeseBlueMidnightBlue
NavyPeacockPowderBlueRoyalBlue
SlateBlueSlateBlueDarkSlateBlueLightSlateBlueMedium
SkyBlueSkyBlueDeepSkyBlueLightSteelBlue
SteelBlueLightTurquoiseBlueUltramarine
Browns
BeigeBrownBrownOadderBrownOchre
BurlywoodBurntSiennaBurntUmberChocolate
DeepOchreFleshFleshOchreGoldOchre
GreenishUmberKhakiKhakiDarkLightBeige
PeruRosyBrownRawSiennaRawUmber
SepiaSiennaSaddleBrownSandyBrown
TanVanDykeBrown
Cyans
AquamarineAquamarineMediumCyanCyanWhite
TurquoiseTurquoiseDarkTurquoiseMediumTurquoisePale
Greens
ChartreuseChromeOxideGreenCinnabarGreenCobaltGreen
EmeraldGreenForestGreenGreenGreenDark
GreenPaleGreenYellowLawnGreenLimeGreen
MintOliveOliveDrabOliveGreenDark
PermanentGreenSapGreenSeaGreenSeaGreenDark
SeaGreenMediumSeaGreenLightSpringGreenSpringGreenMedium
TerreVerteViridianLightYellowGreen
Greys
ColdGreyDimGreyGreyLightGrey
SlateGreySlateGreyDarkSlateGreyLightWarmGrey
Magentas
BlueVioletCobaltVioletDeepMagentaOrchid
OrchidDarkOrchidMediumPermanentRedVioletPlum
PurplePurpleMediumUltramarineVioletViolet
VioletDarkVioletRedVioletRedMediumVioletRedPale
Oranges
CadmiumOrangeCadmiumRedLightCarrotDarkOrange
MarsOrangeMarsYellowOrangeOrangeRed
YellowOchre
Reds
AlizarinCrimsonBrickCadmiumRedDeepCoral
CoralLightDeepPinkEnglishRedFirebrick
GeraniumLakeHotPinkIndianRedLightSalmon
MadderLakeDeepMaroonPinkPinkLight
RaspberryRedRoseMadderSalmon
TomatoVenetianRed
Whites
AntiqueAzureBisqueBlanchedAlmond
CornsilkEggshellFloralGainsboro
GhostHoneydewIvoryLavender
LavenderBlushLemonChiffonLinenMintCream
MistyRoseMoccasinNavajoOldLace
PapayaWhipPeachPuffSeashellSmoke
SnowThistleTitaniumWheat
WhiteZinc
Yellows
AureolineYellowBananaCadmiumLemonCadmiumYellow
CadmiumYellowLightGoldGoldenrodGoldenrodDark
GoldenrodLightGoldenrodPaleLightGoldenrodMelon
NaplesYellowDeepYellowYellowLight

History

First public version Ken Turner, 25/02/97


Up one level to LaTeX Utilities

Web Ken Turner Home   Email    Search Search Web Pages

Last Update: 15th July 2006
URL: https://www.cs.stir.ac.uk/~kjt/software/latex/colours.html