TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to insert a logo on the first page without moving the header on every page down. With the following code the logo get inserted but every header on every page is pushed down.

The code (before \begin{document}):

\usepackage{fancyhdr, graphicx}

The code (after \begin{document}):


Appreciate if someone can point me in the right direction.

share|improve this question
up vote 3 down vote accepted

If you include it like this,


then it will not change the vertical header position. But you must make sure there is enough space to the top margin so that the logo doesn't go off the page.

Edit: If you want to move the logo down, replace {0pt} by e.g. {-1ex}.

share|improve this answer
I have set the top margin to the following: \setlength{\topmargin}{-8mm} - any changes to it will cause all top-margins to move. I also tried to change the first 0pt but then all pages move. This seems to be a good solution but the logo needs to be pushed down without moving the top-margin of subsequent pages. – kexxcream Apr 7 '12 at 6:25
I updated the answer with a way to move the logo down (without moving anything else). The fancyhdr package doesn't seem to offer an easy interface to changing the page geometry for accomodating a larger header. Try the geometry package for this. – Stephan Lehmke Apr 7 '12 at 6:58
This seems to work quite well. It produce the result that I wanted. What is the function of {0pt}? – kexxcream Apr 7 '12 at 8:23
It is the primary function of \raisebox: To raise (or lower in case of a negative value) something relative to the baseline. – Stephan Lehmke Apr 7 '12 at 12:28

This is tikz way of doing things like this. You can use \thispagestyle option to apply logo settings only for one page.

\usepackage[demo]{graphicx}% <-----remove demo in your file
\usepackage{lipsum} %<-----provides dummy text, remove in your file
   headsep=7mm,footskip=13mm,showframe]{geometry} % <-----remove showframe and alter other things in your file
  \fancyhf{}   % Clear all headers and footers first
\begin{tikzpicture}[baseline,remember picture,overlay]
\node at ([xshift=-2.5cm,yshift=-2.5cm]current page.north east) {\includegraphics[width=3.5cm]{jedem.pdf}};
%Change the values in xshift and yshift as per your needs

The first page:

enter image description here

and the second page:

enter image description here

Edit: This is the confusion you will be causing by not providing a complete MWE. You gave only a code snippet and I was left wandering alone to make wild guesses regarding your need. Now that I know - you are using a \maketiltle. \maketitle comes bundled with \thispagestyle{plain}. Hence you have to redefine the \pagestyle{plain}.

Further you used xshift=3cm,yshift=3cm that falls outside the page range. Hence with these shifts you will never get an image inside the page. Please keep these values negative. Here is the code.



\usepackage[a4paper,margin=1in,,headheight=\baselineskip, headsep=7mm,footskip=13mm]{geometry}
\begin{tikzpicture}[baseline,remember picture,overlay]
\node at ([xshift=-3cm,yshift=-3cm]current page.north east) {\includegraphics[width=3.5cm]{jedem.pdf}};


\postauthor{\par\end{flushleft}\vskip 1.5em}
\postdate{\par\end{flushleft}\vskip -5em}

\setlength{\parskip}{1.2ex}        % space between paragraphs
\setlength{\parindent}{1em}        % amount of indention
\setlength{\textwidth}{17cm}       % default = 6.5"
\setlength{\oddsidemargin}{-5mm}   % default = 0"
\setlength{\textheight}{225mm}     % default = 9"
\setlength{\topmargin}{-8mm}       % default = 0"

\author{Mr Test}
{\bf Abstract}

enter image description here

share|improve this answer
I have tried your suggestion but the logo in the pdf does not show up. This is the current code: pastebin.com/PM77sKPD – kexxcream Apr 7 '12 at 8:18
@kexxcream You have to remove the [demo] option from \usepackage{graphicx}, which Harish Kumar used not having your graphic file available. – egreg Apr 7 '12 at 23:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.