🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #5987

Re: LaTeX page number placement

#5987
From: Douglas Miller
Date: Thu, 16 Mar 1989 02:46
18 lines
1146 bytes
In article <3051@nunki.usc.edu>, dwu@nunki.usc.edu (Daniel Wu) asks
how to get a LaTeX page number in the top right corner of the page.

The following .sty option file produces the specified format:

   \oddsidemargin=? \evensidemargin=\oddsidemargin
   \textheight=?
   \textwidth=?
   \topmargin=0.5in
   \headheight=12pt
   \headsep=0.5in \advance\headsep by -\headheight
   \newdimen\headwidth \headwidth=\textwidth \advance\headwidth by 0.5in
   \let\@mkboth\markboth
   \def\@oddhead{\hbox to \headwidth{\hfil\sl\thepage}%
      \hskip-0.5in} % This last hskip prvents 'overfull hbox' message
   \pagenumbering{arabic}

This style assumes that the DVI program doesn't insert a vertical offset.
Technical Details
Message-ID: <170@csv.viccol.edu.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!munnari!vax1!dougcc
References: <3051@nunki.usc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!munnari!vax1!dougcc
From: dougcc@csv.viccol.edu.au (Douglas Miller)
Newsgroups: comp.text
Subject: Re: LaTeX page number placement
Keywords: LaTeX, page, number
Message-ID: <170@csv.viccol.edu.au>
Date: 16 Mar 89 02:46:31 GMT
References: <3051@nunki.usc.edu>
Organization: Computer Services, Victoria College, Melbourne
Lines: 18