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've made myself custom title-page, put it in separate .tex file and when I input it, it is numbered with 1. The very next page is numbered with 1 also, and page-number increases on the following pages. Main file looks like this

\documentclass[11pt,a4paper,draft]{article}
\usepackage{./mystyle}

\begin{document}
\thispagestyle{empty}
\input{./titlepage.tex}
\input{./text.tex}
...
\end{document}

How do I suppress page-number on that title-page? (Why \thispagestyle{empty} doesn't work?) edit: Here's the title-page:

\begin{titlepage}
    \begin{center}

        % Upper part of the page
        \textsc{\large Uni}\\[0.1cm]
        \textsc{\Large Faculty}\\[2.8cm]
        \textsc{\Large Sensors}\\[0.1cm]
        {\Large Paper}\\[0.25cm] 

        % Title
        \HRule \\[0.3cm]
            { \Large \bfseries Occupancy}\\[0.3cm]
            { \huge \bfseries Tribos}\\[0.05cm]
        \HRule \\[0.05cm]

        % Author and supervisor
        \begin{center} \large
            \emph{Student:}\\
            An \textsc{Ant}
        \end{center}
        \vspace{1.8cm}
        \begin{spacing}{0}
            \tableofcontents
        \end{spacing}
        \vfill
        % Bottom of the page
        {\large \today}

    \end{center}
\end{titlepage}
share|improve this question
2  
Did you try \pagestyle{empty}? –  Yiannis Lazarides Dec 18 '10 at 18:56
    
@Yiannis Lazarides As a matter of fact, it actually did turn of page-numbering, but I was unable to return it afterwards. –  user1996 Dec 18 '10 at 19:16
    
@everyone_with_same_problem: this fixed the problem - 1. add \pagenumbering{gobble} before title input 2. add \pagenumbering{arabic} after title input 3. add \pagestyle{empty} inside titlepage.tex. This could probably be generalized. –  user1996 Dec 18 '10 at 19:32

3 Answers 3

up vote 62 down vote accepted

You could use \pagenumbering{gobble} to switch off page numbering.

To switch it on afterwards, use \pagenumbering{arabic} for arabic numbers or alph, Alph, roman, or Roman for lowercase resp. uppercase alphabetic resp. Roman numbering.

share|improve this answer
    
I'm using \pagenumbering{gobble}, but I'm having some problems with "already used pagenumber", I'm getting the warning message destination with the same identifier (name{page.}) has been already used, duplicate ignored<to be read again>... and it seems to be complaining on the second page in the document. How can I fix that? I'm also using the hyperref package. –  StrawberryFieldsForever Apr 26 '13 at 13:50

Maybe try to enclose your title page (or the input file) into a \begin{titlepage} and \end{titlepage}; and put \pagenumbering{arabic} just before your main body starts.

share|improve this answer
1  
+1 for begin/end titlepage, it is necessary. –  BAR Nov 1 '13 at 9:25
    
Thanks, that’s literally all that’s needed, and helped me. Commit –  mirabilos Nov 15 at 18:50

I had the exact same problem. What worked for me was \thispagestyle{empty} after inputting the title page, not before.

share|improve this answer
2  
This will remove both the header and footer and page numbering. –  Werner Jul 18 at 17:28

Your Answer

 
discard

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