1

I am designing a newsletter. The cover page will have an edge-to-edge banner image at the top of the page. I will have images and text below that, which will be different each issue.

I don't know how to place the banner so that the following content will start below it, rather than placed on top. Here's a MWE:

\documentclass[twocolumn]{article}
\usepackage{mwe}
\usepackage[absolute]{textpos}

\textblockorigin{0mm}{0mm}

\begin{document}

\begin{textblock}{16}(-0.25,0)
  \includegraphics[width=\paperwidth]{example-image-a}  
\end{textblock}

\blindtext

\end{document}

Page with text overlapping banner image

I've also tried the solution using everpage suggested here with similar results. I am aware of TikZ, but I don't understand it - maybe it would help here, but I'm not sure and there is a lot of documentation to work through to figure out if it might be useful.

What should I do to place an image across the entire page, absolutely positioned, and have subsequent content start below the image?

  • Have you considered using the wallpaper package to put a page-sized PDF into the background? – Christian Lindig Nov 19 '15 at 17:06
  • @ChristianLindig No. I don't know what that means. If the image is in the background, will I still have the same problem with the subsequent text being placed without regard to the location of the image? – Tyler Nov 19 '15 at 17:28
  • Sorry, I misunderstood the problem - wallpaper is indeed not a good idea as the foreground material is not aware of it. – Christian Lindig Nov 19 '15 at 18:18
1

A different approach that might meet your needs.

EDIT I have extended the code to cater for your desire to have the banner at the top of the sheet (but beware of any typos).

\documentclass{article}
\usepackage{mwe}
\usepackage{multicol}
\newlength{\mylen}
\setlength{\mylen}{\oddsidemargin}
\addtolength{\mylen}{1in} % = distance from paper edge to textblock

\newlength{\tlen} \setlength{\tlen}{\topmargin}
\addtolength{\tlen}{\headheight} \addtolength{\tlen}{\headsep}
\addtolength{\tlen}{1.15in} % final tweak for sheet top to textblock top

\begin{document}
\vspace*{-\tlen}
\noindent\hspace{-\mylen} \includegraphics[width=\paperwidth]{example-image-a}
\begin{multicols}{2}
The contents of your document now in two columns after the banner 
spanning the width of the page.

\blindtext
\end{multicols}
\end{document}

enter image description here

  • How do I transfer a PDF file from my computer to show up in StackExchange? – Peter Wilson Nov 19 '15 at 20:24
  • This doesn't compile for me, I get a 'missing number, treated as zero' error – Tyler Nov 19 '15 at 21:10
  • Found the problem, a missing \ – Tyler Nov 19 '15 at 21:13
  • This doesn't work, as the banner is not placed at the top of the page. I need it to be flush with the top, which is why I was using the textpos package to set the position absolutely. – Tyler Nov 19 '15 at 21:16
  • @Tyler I have revised the example code so that the banner is placed at the top of the page. – Peter Wilson Nov 22 '15 at 18:41

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.