Take the 2-minute tour ×
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.

I am probably not the first to ask this question but I have tried every answer I could find before asking it here. The problem is that I want an image (eps) be on the top of the page.

I want to add a header on the top of the page starting at an inch from the top and starting at the side of the page (no margin). I have tried \noindent , raisebox & makebox, outlining it to the left.... All the answers I could find.

However, I keep getting this. I want it to be higher and starting from the left side of the paper.

enter image description here

Code:

\documentclass[11pt]{article}
\usepackage{graphicx} 
\usepackage[a4paper]{geometry}  
\usepackage{epstopdf}
\begin{document}
\begin{titlepage}
\begin{center}
\raisebox{100pt}{\includegraphics[width=\paperwidth]{figures/eb.eps}}
\end{center}
\end{titlepage}
\end{document}

Thank you in advance!

share|improve this question
    
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. –  hugovdberg Mar 31 at 12:10

2 Answers 2

up vote 6 down vote accepted
\documentclass{article}
\usepackage{graphicx}
\usepackage{eso-pic}



\begin{document}
\AddToShipoutPicture*{%
 \AtPageUpperLeft{\raisebox{-\height}{\includegraphics{example-image-a}}}}

blub 
\end{document}
share|improve this answer
    
Works like a charm. Thank you very much! –  user2883786 Mar 31 at 13:07

With tikz

\documentclass{article}
\usepackage{tikz}



\begin{document}
\tikz[remember picture,overlay]\node[anchor=north,inner sep=0pt,outer sep=0pt] at
       ([yshift=-1in]current page.north) 
                       {\includegraphics[width=\paperwidth,height=0.75in]{example-image-a}};

blub
\end{document}

enter image description here

Adjust yshift, width and height suitable as you need.

share|improve this answer

Your Answer

 
discard

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.