summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-06-03 09:57:07 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-06-03 09:57:07 +0000
commitfa1b3cb700b25aea78eb84392e44993c2799b9e4 (patch)
tree9199e3b46e03084553d208c87d38823580be6a79
parent6da08042854ff934c54d42f1f0314a3652031fda (diff)
downloaddocutils-fa1b3cb700b25aea78eb84392e44993c2799b9e4.tar.gz
Add section on customizing page headers and footers
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7666 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--docs/user/latex.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/user/latex.txt b/docs/user/latex.txt
index 3eac80f4e..25d4582f2 100644
--- a/docs/user/latex.txt
+++ b/docs/user/latex.txt
@@ -1356,6 +1356,28 @@ Example 2:
http://mirror.ctan.org/macros/latex/contrib/geometry/geometry.pdf
+page headers and footers
+------------------------
+
+With the fancyhdr_ package or the `KOMA-script`_ classes, you can define
+custom page head- and foot-lines.
+
+The "header" and "footer" directives save their content in the macros
+``\DUheader`` rsp. ``\DUfooter``. The macros can be used in LaTeX code and
+will be replaced by LaTeX with the content of the directives.
+
+Example:
+ Place left-aligned "header" and "footer" on every page with fancyhdr_::
+
+ \usepackage{fancyhdr}
+ \fancyhead[L]{\DUheader}
+ \fancyfoot{} % reset
+ \fancyfoot[L]{\DUfooter}
+ \pagestyle{fancy}
+
+.. _fancyhdr: http://www.ctan.org/pkg/fancyhdr
+
+
page numbering
--------------