Code: Select all
\fancyhead[R]{\leavevmode\rlap{\hspace{0.5in}\thepage}}
I guess the reqs are simply no more than 0.5".
ds
Code: Select all
\fancyhead[R]{\leavevmode\rlap{\hspace{0.5in}\thepage}}
Code: Select all
\documentclass[11pt,a4paper,twoside,english]{report}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{babel}\usepackage[%headheight=14pt,includeheadfoot,inner=3cm,outer=4cm,vmargin=3cm]{geometry}\usepackage{fancyhdr}\usepackage{blindtext}\fancyhf{}\fancyhead[LE]{\leavevmode\llap{\thepage\hspace{0.5in}}\nouppercase{\leftmark}}\fancyhead[RO]{\leavevmode\nouppercase{\rightmark}\rlap{\hspace{0.5in}\thepage}}\pagestyle{fancy}\begin{document}\blinddocument\end{document}
Can you, please, create an example .lyx file, put it together with all additional necessary files in a ZIP archive and attach it here?dschneiderch wrote:I'm trying to define the header (and footer) to ensure the page number is no more than 0.5 inches from any edge (so top right it should be 'square' and the bottom 0.5" from bottom edge). As it was, I was using \qquad\thispage to approx. align the page number so it "looks" right. The code posted with \hspace{0.5} causes the page number to shift 0.5" to the left instead of to the right.
I'm using LyX and am only beginning to the understand the Latex typesetting functions so I'm not sure what else I can provide other than the class file from http://sites.google.com/site/nathanandr ... isusinglyx
I'd be happy to post anything that could help though. Thanks for trying.
Code: Select all
\usepackage{fancyhdr}\fancyhf{} % Delete current setting for header and footer\fancypagestyle{main}{% page style for normal pages\fancyhfoffset[R]{0.5in}\fancyhead[R]{\thepage}\renewcommand{\headrulewidth}{0pt}\renewcommand{\footrulewidth}{0pt}}\fancypagestyle{plain}{\fancyhfoffset[R]{-0.5in}\fancyhead{} % Get rid of headers and footers on plain pages...\fancyfoot[C]{\hspace*{0.75in}\thepage}\renewcommand{\headrulewidth}{0pt} % ...and of the lines\renewcommand{\footrulewidth}{0pt}}\fancypagestyle{empty}{\fancyhead{} % Get rid of headers and footers on empty pages...\fancyfoot{}\renewcommand{\headrulewidth}{0pt} % ...and of the lines\renewcommand{\footrulewidth}{0pt}}
Code: Select all
\pagestyle{main}