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'm trying to compile the following:

\documentclass[twoside,11pt,titlepage]{article}
\usepackage[paperwidth=5in,paperheight=7in]{geometry}
\usepackage{graphicx}
\usepackage[absolute]{textpos}
\begin{document}
\thispagestyle{empty}
 \begin{textblock*}{125mm}(0mm,0mm)
  \noindent
  \includegraphics[width=\textwidth]{front.jpg}
\end{textblock*}
\newpage
Hello!
\end{document}

I get the jpg image on the first page. But the second page with "Hello" comes over the first page itself. I tried \clearpage and \cleardoublepage instead of \newpage as per the following question:

Why is \newpage ignored sometimes ?

But to no avail. Any suggestions so as to how to get a new page started after the first page?

share|improve this question

3 Answers 3

up vote 10 down vote accepted

It happens because TeX thinks the page is empty, so \newpage is ignored. Use \null\newpage instead. See section 2.2 of the textpos package documentation for details.

share|improve this answer
    
It is amazing how every problem has an answer. Thanks a lot! –  harisibrahimkv Aug 3 '12 at 10:26

This works for me (skips two pages) :

\phantom{p. 1}
\clearpage
\thispagestyle{empty}
\phantom{p. 2}
\clearpage
share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

The textblock is avoiding the newpage working. This code works fine :

\documentclass[twoside,11pt,titlepage]{article}
\usepackage[paperwidth=5in,paperheight=7in]{geometry}
\usepackage{graphicx}
\usepackage[absolute]{textpos}
\begin{document}
      \thispagestyle{empty}
      \includegraphics[width=\textwidth]{front.jpg}
      \newpage
      Hello!
\end{document}

Why do you need it ?

share|improve this answer
    
You are not using package textpos so the given error by the op can not appear. Perhaps he wants the image on a special place so that he needs to use testpos? The accepted answer is the solution for the given MWE by the op. –  Kurt Oct 21 '13 at 20:11

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.