|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T h
Length: 2203 (0x89b) Types: TextFile Names: »headerfooter.sty«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦this⟧ »latex-style/headerfooter.sty«
% headerfooter.sty 9 Dec 88 % 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 % minor changes 14 Oct 87 gildea % added \pageheaderlinetrue feature 9 Dec 88 gildea % 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{}{\thepage}{} % Say \pageheaderlinetrue if you want the header underlined. \newif\ifpageheaderline \pageheaderlinefalse \newdimen\pageheaderlineskip \pageheaderlineskip=1.5pt \def\@headerline#1#2#3{% \ifpageheaderline \vbox{\hbox to \textwidth{\rlap{#1}\hss{#2}\hss\llap{#3}}% \vskip\pageheaderlineskip \hrule}% \else{\rlap{#1}\hss{#2}\hss\llap{#3}}\fi} \newcommand\oddpageheader[3]{\def\@oddhead{\@headerline{#1}{#2}{#3}}} \newcommand\evenpageheader[3]{\def\@evenhead{\@headerline{#1}{#2}{#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}}