0

How can I make it so that the header text and header line disappear on pages where a new section starts, i.e. when I use \section? To be clear, I would like to footer to remain, so \fancyhf{} does not work.

2
  • 1
    \thispagestyle{plain} as opposed to \thispagestyle{empty} Jun 22, 2016 at 3:40
  • @JohnKormylo almost -- can I keep the line at the bottom?
    – user217285
    Jun 22, 2016 at 4:56

1 Answer 1

1

Define a fancy page style, by:

\fancypagestyle{sectionpage}{
    \fancyfoot{your footer}
    \fancyhead{}
    \renewcommand{\headrulewidth}{0pt}
    \renewcommand{\footrulewidth}{1pt)% or however thick
}

Then for each new section use \thispagestyle{sectionpage}.

After this page (the first of the section), it'll revert to whatever \fancyfoot/head (and rule widths) you have defined for the general document.

3
  • This puts "your footer" on the left, center, and right. How can use the center footer only?
    – user217285
    Jun 22, 2016 at 5:08
  • You can specify location of the footer either (or all) of L,C,R as \fancyfoot[L]{your footer}. Also, if you want some footer/header styles to be L only, others to be different, it's helpful to first refresh the respective styles by adding a blank def first, then one with what you want - when you define it. (Like \fancypagestyle{sectionpage}{ \fancyfoot{}\fancyfoot[L]{your footer}, etc.} Jun 22, 2016 at 5:18
  • It appears that entirely removing the '\fancyfoot' command restores the original footer I had in place, so that accidentally fixes the problem. Thanks for the words of wisdom!
    – user217285
    Jun 22, 2016 at 5:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .