Page LayoutText placed in the upper right corner help?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
rrafique
Posts: 1
Joined: Tue Feb 10, 2015 4:17 am

Text placed in the upper right corner help?

Post by rrafique »

I am using following commands in my dissertation page numbering. I need page number in the upper right corner 0.5 inch from the top and 1 inch from the right edge of the paper. How to update the below mentioned command to get that setting. Thanks.

Code: Select all

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyheadoffset{0cm}
\renewcommand{\headrulewidth}{0pt} 
\renewcommand{\footrulewidth}{0pt}
\fancyhead[R]{\thepage}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyhead[R]{\thepage}%
}

Can someone plz help me here.
Last edited by Stefan Kottwitz on Tue Feb 10, 2015 12:58 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Text placed in the upper right corner help?

Post by Stefan Kottwitz »

Welcome to the forum!

Did you already read the fancyhdr manual? There are some offsets explained which can be used.

Since you don't mentioned your document class, your paper and page geometry settings, I cannot provide a solution working with the relative offsets of fancyhdr as in the manual. I guess you can find it out. Generally, it' always good to post a Infominimal working example, which is mostly a guarantee for a solution. There we would see all what is needed to fix it.

An absolute positioning could be achieved anyway using the textpos package together with fancyhdr.

By the way, we are not used to leetspeek here, so "plz" is not suitable here, we speak like normal humans. ;)

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Text placed in the upper right corner help?

Post by Johannes_B »

Independant from the class in use, you could drop fancyhdr (which does a quite good job for a long time) and switch to the very modern and state of the art package scrlayer-scrpage of the KOMA-bundle.

It has a bit more features in it, but is also a bit more complicated to use.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply