I'm writing a document to my college and it requires a header on every page with two logos and some text, as shown below:

enter image description here

Here are the images:

enter image description here

enter image description here

Any ideas on how to do it? I have tried with the package fancyhdr, but I just couldn't make the figures work with it. The document class is article.

Please note that this header must be on the top of every page of the document and not on just particular ones.

  • Possible duplicate of tex.stackexchange.com/q/34040/24974
    – erik
    Apr 27, 2016 at 22:48
  • Is it two-sided? Is thee text just under the horizontal line part of the header?
    – Bernard
    Apr 27, 2016 at 22:52
  • @Bernard It's one sided and the text below the horizontal line is not part of the header. Apr 28, 2016 at 21:39

2 Answers 2


Here is a solution, with geometry and titleps, instead of fancyhdr:


\SetTracking[no ligatures={f}]{encoding=*}{40}
\usepackage{graphicx, array}
\usepackage[headheight=136pt, top=6.5cm]{geometry}

\usepackage{lipsum} %
  Centro Universitário da FEI\\[3ex]Projeto de Iniciação Científica}}}{\scalebox{0.75}{\includegraphics{aNF04}}}


\section{Section One}


enter image description here

  • Thank you very much for your answer! It worked very well. The only remaining problem is that the header doesnt show up on tittlepage, abstract and the table of contents page. Apr 28, 2016 at 21:35
  • Which class of document do you have?
    – Bernard
    Apr 28, 2016 at 21:37
  • Its an article. I managed to add the header to the title page and abstract by using \thispagestyle{myheader} Dont know how to do it with the TOC however. Apr 28, 2016 at 21:48
  • Oops, nevermind. Problem solved! Thank you very much! Apr 28, 2016 at 21:50
  • That's what I was going to answer for this case. Fine! Often the page style in title pages is set to plain.
    – Bernard
    Apr 28, 2016 at 21:50

I'm a bit in a rush so I will comment the code later.

I hope this can inspire you.

header with logos

The Code

\lhead{\begin{tikzpicture}[remember picture,overlay]
\node [anchor=west,inner sep=0] (logoLEFT) at (current page header area.west) {\includegraphics[height=3cm]{logoSX}};   
\node [anchor=east,inner sep=0] (logoRIGHT) at (current page header area.east) {\includegraphics[height=3.5cm]{logoDX}};  
\coordinate (tt) at ($(logoLEFT.east)!.5!(logoRIGHT.west)$);
\node [above=.5cm,font=\bfseries\Large] at (tt) {Centro Universitário da FEI};
\node [below=.5cm,font=\bfseries\Large] at (tt) {Projeto de Iniciação Científica};
\section{First section}
Type your document as usual!
\section{Second section}
Type your document as usual!

You must log in to answer this question.

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