| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.LaTeX.Builder.Color
Synopsis
- data Color
- pagecolor :: Color -> ParItem
- color :: Color -> TexDecl
- textcolor :: Color -> LatexItem -> LatexItem
- colorbox :: Color -> LatexItem -> LatexItem
- fcolorbox :: Color -> Color -> LatexItem -> LatexItem
- preamblecolor :: Color -> PreambleItem
- normalcolor :: TexDecl
- named :: String -> Color
- rgb :: Rational -> Rational -> Rational -> Color
- cmyk :: Rational -> Rational -> Rational -> Rational -> Color
- gray :: Rational -> Color
- html :: String -> Color
- rgb256 :: Word8 -> Word8 -> Word8 -> Color
- red :: Color
- green :: Color
- blue :: Color
- black :: Color
- white :: Color
- cyan :: Color
- magenta :: Color
- yellow :: Color
- orange :: Color
- pkg :: PackageName
The type of colors
Coloring commands
pagecolor :: Color -> ParItem Source #
pagecolor sets the background colour for the current and following pages
color :: Color -> TexDecl Source #
color is a declaration to switch to setting text in the given colour
textcolor :: Color -> LatexItem -> LatexItem Source #
textcolor sets the text of its argument in the given colour
colorbox :: Color -> LatexItem -> LatexItem Source #
colorbox sets its argument in a box with the given colour as background
fcolorbox :: Color -> Color -> LatexItem -> LatexItem Source #
fcolorbox c1 c2 text is like colorbox, with a frame of c1 around a box
of background colour c2.
For example, fcolorbox red green Text sets Text in the current text colour
on a green background with a red frame.
The two specifications must either both be defined ones, or both use the same model, which is given only once, this limitation only make sense in LaTeX parlance but is helpful here to understand why this function can fail.
preamblecolor :: Color -> PreambleItem Source #
Like color but usable in the preamble.
normalcolor :: TexDecl Source #
normalcolor switches to the colour that was active at the end of the preamble.
Thus placing a color declaration in the preamble can change the standard colour
for the whole document. This is the equivalent to normalfont for font selection.
Making colors
Predefined colors
Package name
pkg :: PackageName Source #