# How do I move the oddhead and evenhead by 0.5 inch?

I'm working on fixing a document that used to require page number on top right and from about 1 inch. Currently, it was defined as:

\def\@@evenhead{\hfil\textrm{\thepage}}


The new requirements need the page number up by 0.5 inch. I have tried to set the \hoffset to -0.5inch, or \topmargin to -0.5 inch. Never of them worked. They will move the entire body of text up by 0.5 inch.

My question is: can I move the page number up by revising this evenhead definition? I really don't want to use fancyhdr package.

Thank you!

• WELCOME! Please, can you add a MWE? – Sebastiano Dec 21 '16 at 18:00
• (1) welcome (2) you probably want to post some code others can test. As your question is now noone will have any chance to help as they know nothing at all about your document – daleif Dec 21 '16 at 18:00
• Thank you for the comments. The code is too complex... I need to greatly simply it.. :( – Lonnie Lee Dec 21 '16 at 18:24

\def\@@evenhead{\hfil\raisebox{.5in}[0pt][0pt]{\thepage}}

The [0pt][0pt] optional addition removes any vertical height/depth adjustments that may result from raising the page number.
• @LonnieLee: If you just want to move the page number up, \raisebox should suffice. See my updated answer. – Werner Dec 21 '16 at 18:44