I am currently using the titlesec package in order to personalise my chapter and section headings with these commands:
Code: Select all
\titleformat{\section}
{\titlerule
\vspace{.8ex}%
\normalfont\Large\bfseries} {\thesection}{.5em}{}
\titleformat{\chapter}[display]
{\normalfont\Large\filcenter\sffamily}
{\titlerule[1pt]%
\vspace{1pt}%
\titlerule
\vspace{1pc}%
\LARGE\MakeUppercase{\chaptertitlename} \thechapter} {1pc} {\titlerule
\vspace{1pc}%
\Huge}
However, I would like to prevent the package from drawing a line above a section heading when it appears at the top of a page. I use the fancyhdr package to draw a line under the header of the page and would prefer to not have the duplicate line at the top of a page if that is where a new section begins.
Any ideas?