[comp.text.tex] Footers on every page in LaTeX

mandel@granite.cr.bull.com (Mark Mandel) (02/21/90)

I have to get footers on every page, including chapter-initial pages,
of a largish (>100pp.) document that I have just about completed in
LaTeX.  It would be sufficient for all of them to be identical -- it's
a piece of boilerplate, 4 words.  I'm using book style, and I don't
know Plain TeX.  Our local guru has given me some advice, but he too
is not familiar enough with Plain TeX to help me through this
situation.  The weirdest part is that it was working for a while,
though not on first pages of chapters.  Naturally, I'm not aware of
anything in the footer code changing interim.

Here is what I'm using.  It's extracted and modified from book.sty,
and it's at the very end of my preamble.  I've added one space of
indentation to defeat any fill mechanisms that might choose to apply
between my typing and your reading.

 \gdef\ps@headings{\let\@mkboth\markboth
 \gdef\@oddfoot{\bf\hfil BOILERPLATE TEXT GOES HERE\hfil\rm DOCUMENT NUMBER}
 \gdef\@evenfoot{DOCUMENT NUMBER\hfil \bf BOILERPLATE TEXT GOES HERE\hfil}
 \gdef\@evenhead{\rm \thepage\hfil \sl
 \leftmark}\gdef\@oddhead{\hbox{}\sl \rightmark \hfil
 \rm\thepage}\gdef\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
 >\m@ne
  \@chapapp\ \thechapter. \ \fi ##1}}{}}\gdef\sectionmark##1{\markright
 {\uppercase{\ifnum \c@secnumdepth >\z@
  \thesection. \ \fi ##1}}}}

Any help would be most welcome, and The Sooner The Better (he
pleaded).
-- 

	-- Mark Mandel          (InterNet: Mandel@granite.cr.bull.com)

 /* My employer is not responsible for anything I say, do, think, or eat. */

piet@cs.ruu.nl (Piet van Oostrum) (02/22/90)

In article <1990Feb21.152216.12541@granite.cr.bull.com>, mandel@granite (Mark Mandel) writes:
 `I have to get footers on every page, including chapter-initial pages,
 `of a largish (>100pp.) document that I have just about completed in
 `LaTeX.  It would be sufficient for all of them to be identical -- it's
 `a piece of boilerplate, 4 words.  I'm using book style, and I don't
 `know Plain TeX.  Our local guru has given me some advice, but he too
 `is not familiar enough with Plain TeX to help me through this
 `situation.  The weirdest part is that it was working for a while,
 `though not on first pages of chapters.  Naturally, I'm not aware of
 `anything in the footer code changing interim.
 `
LaTeX switches to pagestyle plain on first pages of chapters. You can give
a \thispagestyle command on each chapter to change that.

Alternatively you can use my fancyheadings.sty which gives you very much
freedom to specify your headers and footers with a few simple commands. 

Get it from the clarkson archive or from ours:
ftp from sol.cs.ruu.nl [131.211.80.5], directory pub/TEX/latexstyle, or
request from mail-server@cs.ruu.nl (send a HELP message first),
The files are fancyheadings.doc and fancyheadings.sty.
-- 
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31-30-531806   Uucp:   uunet!mcsun!hp4nl!ruuinf!piet
Telefax:   +31-30-513791   Internet:  piet@cs.ruu.nl   (*`Pete')