Page LayoutRemove Rule from Header

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
poilou2607
Posts: 4
Joined: Mon Nov 05, 2012 3:38 pm

Remove Rule from Header

Post by poilou2607 »

Hello,

I am writing a document using the template available here:

http://openwetware.org/wiki/LaTeX_te...for_PhD_thesis

I can't remove the line at the top of the second page. The text of this page can be removed easily because it's present in the source file "thesis.tex". However, for the rule, I removed the header pages, and look at the code on the document class "PhDthesisPSnPDF.cls", but without success.

Thank you very much for your help.

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

alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm

Remove Rule from Header

Post by alainremillard »

Hi and welcome to the board
poilou2607 wrote:Hello,

I am writing a document using the template available here:

http://openwetware.org/wiki/LaTeX_te...for_PhD_thesis
First, your link didn't work in my browser. A little research on the website gave me the following:

http://openwetware.org/wiki/LaTeX_templ ... PhD_thesis

I just want to make sure I have the right one.
poilou2607 wrote:I can't remove the line at the top of the second page. The text of this page can be removed easily because it's present in the source file "thesis.tex". However, for the line, I removed the header pages, and look at the code on the document class "PhDthesisPSnPDF.cls", but without success.
Don't ever modify the class file unless you know exactly what you're doing.

The line is part of the header. By looking trough the class, they used the fancyhdr package to make those headers. To remove the line, simply add the following before the \begin{document} in your source file.

Code: Select all

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
Have a nice day
Alain Rémillard
poilou2607
Posts: 4
Joined: Mon Nov 05, 2012 3:38 pm

Re: Remove Rule from Header

Post by poilou2607 »

Thank you very much! it works.
Post Reply