header, footer
要在 LaTeX 文件中產生精美的 header 與 footer 可以透過 fancyhdr 這個 package 來達成。以下是一個簡單的範例:
\usepackage{fancyheadings}
\pagestyle{fancy}
\fancyheadoffset{0.3in}
\fancyfootoffset{-2.0in}
\renewcommand{\headrulewidth}{1.3pt}
\renewcommand{\footrulewidth}{0.5pt}
\lhead{\slshape \rightmark}
\chead{}
\rhead{\thepage}
\lfoot{}
\cfoot{\slshape \leftmark}
\rfoot{}
另外還有一些特殊的功能請參考 fancyhdr.pdf