Safe Haskell | Safe-Inferred |
---|
Make your documents colorful using this module.
Different functionalities are provided, like changing the color of the text and the paper, or creating colorful boxes.
- pcolor :: PackageName
- monochrome :: LaTeXC l => l
- dvipsnames :: LaTeXC l => l
- nodvipsnames :: LaTeXC l => l
- usenames :: LaTeXC l => l
- data Color
- data ColorName
- = Apricot
- | Aquamarine
- | Bittersweet
- | BlueGreen
- | BlueViolet
- | BrickRed
- | Brown
- | BurntOrange
- | CadetBlue
- | CarnationPink
- | Cerulean
- | CornflowerBlue
- | Dandelion
- | DarkOrchid
- | Emerald
- | ForestGreen
- | Fuchsia
- | Goldenrod
- | Gray
- | GreenYellow
- | JungleGreen
- | Lavender
- | LimeGreen
- | Mahogany
- | Maroon
- | Melon
- | MidnightBlue
- | Mulberry
- | NavyBlue
- | OliveGreen
- | Orange
- | OrangeRed
- | Orchid
- | Peach
- | Periwinkle
- | PineGreen
- | Plum
- | ProcessBlue
- | Purple
- | RawSienna
- | RedOrange
- | RedViolet
- | Rhodamine
- | RoyalBlue
- | RubineRed
- | Salmon
- | SeaGreen
- | Sepia
- | SkyBlue
- | SpringGreen
- | Tan
- | TealBlue
- | Thistle
- | Turquoise
- | Violet
- | VioletRed
- | WildStrawberry
- | YellowGreen
- | YellowOrange
- data ColorModel
- data ColSpec
- data Word8
- pagecolor :: LaTeXC l => ColSpec -> l
- color :: LaTeXC l => ColSpec -> l
- textcolor :: LaTeXC l => ColSpec -> l -> l
- colorbox :: LaTeXC l => ColSpec -> l -> l
- fcolorbox :: LaTeXC l => ColSpec -> ColSpec -> l -> l
- normalcolor :: LaTeXC l => l
Color package
The pcolor
package.
usepackage [] pcolor
Package options
monochrome :: LaTeXC l => lSource
To convert all colour commands to black and white, for previewers that cannot handle colour.
dvipsnames :: LaTeXC l => lSource
nodvipsnames :: LaTeXC l => lSource
Types
Basic colors.
Other predefined colors.
data ColorModel Source
Specify your own color using one of the different color models.
Color specification.
Words
RGB255 colors are determined by three parameters of the Word8
type.
Values of type Word8
lie within 0 and 255.
data Word8
8-bit unsigned integer type
Commands
pagecolor :: LaTeXC l => ColSpec -> lSource
Set the background color for the current and following pages.
colorbox :: LaTeXC l => ColSpec -> l -> lSource
Put its argument in a box with the given colour as background.
fcolorbox :: LaTeXC l => ColSpec -> ColSpec -> l -> lSource
Application of fcolorbox cs1 cs2 l
put l
in a framed box with
cs1
as frame color and cs2
as background color.
normalcolor :: LaTeXC l => lSource
Switch to the colour that was active at the end of the preamble.
Thus, placing a color
command in the preamble can change the
standard colour of the whole document.