MWE
\documentclass{article}
\usepackage{lipsum}
\usepackage[showframe]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{something centered in footer}
\lhead{\rule{\textwidth}{3pt}}
\pagestyle{fancy}
\begin{document}
A normal page.
\clearpage
\newgeometry{margin=.5in,includeheadfoot,hcentering}
\lipsum[1-2]
\noindent\rule{\textwidth}{3pt}
\end{document}
Problem
As is shown in the MWE, the footer is not centered on the second page, after the geometry has been changed. Is there a way to correct this?
Best Answer
This will force it to the center:
Code: