1

Code

\documentclass{article}

\usepackage{fancyhdr}

\pagestyle{fancy}
\rhead{\textsc{Department}}
\cfoot{\thepage}

\begin{document}

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

\subsection{Status localis}

Hello world

\end{document}

Output

enter image description here

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


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

3

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}
\rhead{\textsc{Department}}
\lhead{}%
\cfoot{\thepage}

\begin{document}

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

\subsection{Status localis}

Hello world

\end{document}
  • 1
    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

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.