0

i wish to remove the header and the footer of my acknowledgements page but retain the page number, i'm easily able to do this by using thispagestyle{plain} but it ends up placing the page number in the center of the footer, i want it in the right corner, how do i do that? also editing the code as given in the documentation of the package fancyhdr, which is \thispagestyle{fancy}{ \fancyhead{} \fancyfoot{} \fancyfoot[R]{\thepage} }, works for the acknowledgements page but ends up editing all the other pages too, which is removing their headers too... my question is, is there no way in which i can edit a single page's header, footer and pagenumber without altering the ones of other pages.

  • Welcome to TeX.SX! You can help us to help you by providing the code for a small compilable document that shows your problem called MWE. Just edit your question and add missing code. – Bobyandbob Dec 17 '17 at 11:58
2

Adapted from the documentation of fancyhdr:

\fancypagestyle{plain}{%
  \fancyhf{}% clear all header and footer fields
  \fancyfoot[R]{\thepage}%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0pt}%
}
  • it doesn't help, because the fancyhf{} removes my header and footer – RBK Dec 17 '17 at 11:29
  • ...@RBK, you said "I wish to remove the header and footer". So yes, it removes your header and footer. – Rmano Dec 17 '17 at 11:46
  • More exactly: After Bernard's code, \thispagestyle{plain} removes the header and footer, and the page number will be in the right corner of the footer. – user91669 Dec 17 '17 at 11:57
  • @RBK: It first removes header and footer. But the second action is to add a footer in the right corner. So globally, it replaces the previous page style. – Bernard Dec 17 '17 at 11:57
  • @Rmano, yes i did say that, but only for that particular page, but the code ends up removing header and footer from all the pages, i just don't want it on that particular page – RBK Dec 17 '17 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.