# Why Subsection at top-bar in fancyhdr?

Code

\documentclass{article}

\usepackage{fancyhdr}

\pagestyle{fancy}
\cfoot{\thepage}

\begin{document}

% \section{Objective Data} % nothing at left top when this active

\subsection{Status localis}

Hello world

\end{document}


Output

Expected output: without 0.1 Status localis at the top-left bar.

How can you have no subsection at top-left bar?

Just say \lhead{}, i.e. an empty left page heading, because this is used by \leftmark{} normally, which prints a section etc. title.

\documentclass{article}

\usepackage{fancyhdr}

\pagestyle{fancy}
\cfoot{\thepage}

\begin{document}

%\section{Objective Data} % nothing at left top when this active

\subsection{Status localis}

Hello world

\end{document}

• It would be better to issue \fancyhf{} to clear all fields, before filling them up. – egreg May 1 '16 at 21:00
• @egreg: True,but in fancy style most of the fields aren't occupied right from start, so it's only \lhead left to be filled/changed. (I am speaking of a 'virgin' fancy style, not something that has been changed already) – user31729 May 1 '16 at 21:09
• It depends on the class used, I guess. – egreg May 1 '16 at 21:13
• @egreg: I'll take a look into fancyhdr whether there is a class-switch or a specific setting for ps@myheading etc. – user31729 May 1 '16 at 21:15