🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #306

Re: How to change \pagestyle{myheadings} font?

#306
From: David Howell
Date: Wed, 22 Jul 1992 10:08
50 lines
1777 bytes
After getting into a fight with LaTeX over its stubborn behavior
regarding those page numbers, I dug into latex.tex, and stripped out
the head/foot code, thustly:
 
%Part 1:

\pagestyle{custom}


%Part 2:
%Here is where we create meaning for the "custom" pagestyle.

\makeatletter

\def\ps@custom{\let\@mkboth\@gobbletwo
	\def\@oddhead{\rightmark}
	\def\@oddfoot{%whatever you want at the bottom of the page
		}
	\def\@evenhead{\leftmark}
	\def\@evenfoot{%ditto. MyHeadings leaves these empty
		}
	\def\chaptermark##1{}%
	\def\sectionmark##1{}%
	\def\subsectionmark##1{}%
}

\makeatother

%Part 3:


\markboth{%spiffy stuff
}%following is what *I* used
{\vbox{%I'm not sure what boxes are required, so I make 1 vbox
      \hbox to \pagewidth{% that contained an hbox
         \it \protect\headtext \hfil\protect\thepage\/ %with the header
                                %text that changed every page, and the
                                %page number, >in italic<
      }%
      \vskip 2pt
      \hrule height\rulewidth  %then I ran a rule along the page
   }\hss                       %underneath the pagenumber and headtext
}

%ta da!


%I had fancy stuff in the feet as well.

%warning: my upload *may* have dropped characters. Check spelling. :)
Technical Details
Message-ID: <1992Jul22.100837.18728@u.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!plains!news.u.washington.edu!blegga!howell
References: <7389170@MVB.SAIC.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!plains!news.u.washington.edu!blegga!howell
From: howell@blegga.u.washington.edu (David Howell)
Newsgroups: comp.text.tex
Subject: Re: How to change \pagestyle{myheadings} font?
Message-ID: <1992Jul22.100837.18728@u.washington.edu>
Date: 22 Jul 92 10:08:37 GMT
Article-I.D.: u.1992Jul22.100837.18728
References: <7389170@MVB.SAIC.COM>
Sender: news@u.washington.edu (USENET News System)
Organization: University of Washington
Lines: 50