HaTeX-3.20.0.0: The Haskell LaTeX library.

Safe HaskellNone
LanguageHaskell2010

Text.LaTeX.Packages.Fancyhdr

Contents

Description

This package provides extensive control of page headers and footers.

CTAN page for fancyhdr: http://www.ctan.org/pkg/fancyhdr.

Synopsis

fancyhdr package

fancyhdr :: PackageName Source #

The fancyhdr package. Please, consider to use applyHdrSettings instead of importing the package manually. If you really want to do it manually, use the functions from the raw interface exposed below.

Simple interface

data HdrSettings Source #

Header and footer settings of a LaTeX document. Use applyHdrSettings to apply these settings in your document. A default value is provided by defaultHdrSettings, which you can modify using record syntax.

mySettings :: HdrSettings
mySettings = defaultHdrSettings
    { centerHeader = "Amazing header"
    , headRuleWidth = Pt 2
      }

defaultHdrSettings :: HdrSettings Source #

Default header and footer settings.

It leaves everything empty but the centerFooter field, which is filled with thePage.

Also, it sets to 0.4 points the headRuleWidth field.

applyHdrSettings :: LaTeXC l => HdrSettings -> l Source #

Apply custom header and footer settings to a LaTeX document. It takes care of package importing and page style settings, so using this function is enough to get the settings applied. Do not import the fancyhdr package again. To be used in the preamble.

Raw interface

fancy :: PageStyle Source #

Page style of the fancyhdr package.

lhead :: LaTeXC l => l -> l Source #

Set the left header.

chead :: LaTeXC l => l -> l Source #

Set the center header.

rhead :: LaTeXC l => l -> l Source #

Set the right header.

lfoot :: LaTeXC l => l -> l Source #

Set the left footer.

cfoot :: LaTeXC l => l -> l Source #

Set the center footer.

rfoot :: LaTeXC l => l -> l Source #

Set the right footer.

renewheadrulewidth :: LaTeXC l => Measure -> l Source #

Set the headrulewidth attribute.

renewfootrulewidth :: LaTeXC l => Measure -> l Source #

Set the footrulewidth attribute.