Page LayoutTitlepage with textpos is treated as empty

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
carandraug
Posts: 5
Joined: Tue Aug 18, 2009 6:50 pm

Titlepage with textpos is treated as empty

Post by carandraug »

Hi,

I've managed to design the titlepage using only the textpos package. However, since all the text and images in the titlepage are inside textblocks, LaTeX seems to treat it as empty and what should be on the second page is placed on top of the titlepage. Here's a minimal example of what I mean

Code: Select all

\documentclass[a4paper,12pt,oneside,titlepage]{article}

\usepackage[absolute,showboxes]{textpos}
  \setlength{\TPHorizModule}{1mm}
  \setlength{\TPVertModule}{1mm}

\begin{document}

  \begin{titlepage}
    \begin{textblock}{52}(79,10)
      this should be alone in the titlepage
    \end{textblock}
  \end{titlepage}

  this should be the second page but is printed on top of the titlepage instead

\end{document}
If however, I add some text in the titlepage but don't place it on a texblock, then it works as expected.

I tried a \newpage after the end of titlepage but it doesn't work. Any help is appreciated.
Last edited by carandraug on Wed Jun 30, 2010 12:54 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Titlepage with textpos is treated as empty

Post by Stefan Kottwitz »

Hi carandraug,

perhaps use

Code: Select all

\mbox{}\newpage
\vspace*{...} could also be useful.

Stefan
LaTeX.org admin
carandraug
Posts: 5
Joined: Tue Aug 18, 2009 6:50 pm

Titlepage with textpos is treated as empty

Post by carandraug »

Stefan_K wrote:Hi carandraug,

perhaps use

Code: Select all

\mbox{}\newpage
\vspace*{...} could also be useful.

Stefan
Thanks, I found out about the \null command and it works by placing it inside the titlepage environment. That's enough for latex to not treat it as empty.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Re: Titlepage with textpos is treated as empty

Post by Stefan Kottwitz »

Hi carandraug,

if a problem is solved you could mark the topic as "solved" by editing the first post choosing the check mark as topic icon.

Stefan
LaTeX.org admin
carandraug
Posts: 5
Joined: Tue Aug 18, 2009 6:50 pm

Titlepage with textpos is treated as empty

Post by carandraug »

Stefan_K wrote:Hi carandraug,

if a problem is solved you could mark the topic as "solved" by editing the first post choosing the check mark as topic icon.

Stefan
Done. I was looking for some sort of "Mark as solved" button but didn't found it. Thanks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Titlepage with textpos is treated as empty

Post by Stefan Kottwitz »

carandraug wrote:I was looking for some sort of "Mark as solved" button but didn't found it.
Maybe we should introduce such a button - marking solved doesn't seem straight-forward now.

Stefan
LaTeX.org admin
Post Reply