langer@aero.org (John V. Langer) (05/01/91)
Does anyone know how to specify the contents of the running footer in LaTeX? I guess what I am looking for is a \pagestyle analagous to "myheadings", but for footings. -- John Langer langer@aerospace.aero.org -- -- John Langer langer@aerospace.aero.org
langer@aero.org (John V. Langer) (05/10/91)
In article <1991May1.092944.19999@aero.org> I wrote: >> Does anyone know how to specify the contents of the running footer >> in LaTeX? I guess what I am looking for is a \pagestyle analagous >> to "myheadings", but for footings. I received many helpful suggestions, all of which boiled down to two "style file" solutions. Each lets you put just about anything you want in the header and/or *footer*. I tried them both and, for my application at least, they work. The simplest solution is embodied in a very small style file called "headerfooter.sty". Since I couldn't find it in an archive and it's not too long, I appended it to this article. The other solution, available in many style archives, is called "fancyheadings.sty". In a recent note, one respondent wrote the following: >> ... the ultimate style file ... which allows you to specify up to >> three part, possibly multi-line or underlined headers and footers. In it's simplest usage, "fancyheadings.sty" is just about as simple as "headerfooter.sty", but it allows for much greater complexity. One example shows how to set up chapter- and section-dependent underlined headings in the style of Lamport's LaTeX user's guide. One way to get "fancyheadings.sty" is to send a note to FILESERV@SHSU.BITNET containing the line "SEND STY.FANCYHEADINGS". -- John =============================================================================== | langer@aerospace.aero.org | jvl@mickey.aero.org | langer@130.221.192.10 | =============================================================================== ======================= headerfooter.sty ==================================== %%% BEGIN % headerfooter.sty 14 Oct 87 % Use with LaTeX version 2.09: % \documentstyle[headerfooter]{article} % Copyright (c) 1987 by Stephen Gildea % Permission to copy all or part of this work is granted, provided % that the copies are not made or distributed for resale, and that % the copyright notice and this notice are retained. % % THIS WORK IS PROVIDED ON AN "AS IS" BASIS. THE AUTHOR PROVIDES NO % WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK, % INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS % FOR ANY PARTICULAR PURPOSE. % If you make any improvements, I'd like to hear about them. % Stephen Gildea % MIT Earth Resources Lab % Cambridge, Mass. 02139 % mit-erl!gildea % gildea@erl.mit.edu % \pageheader{LEFT}{CENTER}{RIGHT} % \pagefooter{LEFT}{CENTER}{RIGHT} % There is no reason why these commands should not be available % to the user. Of course, I did fancy up the interface a bit. % By mit-erl!gildea 11 October 1986 % All of these commands take three arguments, which are printed at % the left, center, and right of each page. All three args must be % provided even if some of them are empty. The odd and even % variations are only useful if you are using the twoside option. % Example: \pagefooter{Draft of \today}{}{\thepage} \newcommand\oddpageheader[3]{\def\@oddhead {\rlap{#1}\hss{#2}\hss\llap{#3}}} \newcommand\evenpageheader[3]{\def\@evenhead {\rlap{#1}\hss{#2}\hss\llap{#3}}} \newcommand\oddpagefooter[3]{\def\@oddfoot {\rlap{#1}\hss{#2}\hss\llap{#3}}} \newcommand\evenpagefooter[3]{\def\@evenfoot {\rlap{#1}\hss{#2}\hss\llap{#3}}} \newcommand\pageheader[3]{% \oddpageheader{#1}{#2}{#3}\evenpageheader{#1}{#2}{#3}} \newcommand\pagefooter[3]{% \oddpagefooter{#1}{#2}{#3}\evenpagefooter{#1}{#2}{#3}} %%% END -- =============================================================================== | langer@aerospace.aero.org | jvl@mickey.aero.org | langer@130.221.192.10 | ===============================================================================