17

I am using a predefined document class that I downloaded from my school website to write my thesis. It creates the front page, table of contents, and then rest of the document in the given sequence. Page numbering starts from the first chapter. My school requires a scanned copy of a signed form right after the table of content. When I insert it, the page numbering starts from the page on which this figure (form takes a whole page) is inserted. I want page numbering to start from my first chapter.

\documentclass[12pt]{gatech-thesis}

\begin{document}
\bibliographystyle{thesis}
\begin{preliminary}
\contents
\end{preliminary}
\pagenumbering{gobble} 
\begin{figure}[htp] \centering{
\includegraphics[scale=0.80]{myfile.pdf}}
\end{figure}
\thispagestyle{empty}
\newpage
\pagenumbering{arabic} 
\setcounter{page}{1}
\chapter{Introduction}\label{introduction}

\end{document}

Now page number is removed from the page on which I have inserted the figure, but the number '2' is showing up on the introduction section.

This means that \setcounter{page}{1} didn't work.

How should I fix this problem?

NAASI
  • 2,809

3 Answers3

25

I don't know if this is still active, but actually I think that you should reset the counter exactly after the chapter title.

\chapter{Title}
\setcounter{page}{1}

like so.

Lpax
  • 351
8

I think this might help. I have reset page counter just before chapter one. Hence chapter one starts at page number 1.

\documentclass{book}
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\begin{document}
    \thispagestyle{empty}
    \pagenumbering{gobble} 

    \lipsum[1]
    \begin{figure}[h]
        \includegraphics{demo}
    \end{figure}

    \newpage
    \setcounter{page}{0}
    \pagenumbering{arabic}
    \setcounter{page}{1}

    \chapter{Introduction}
\end{document}
5

When compiling this MWE, there is no page number on the first page, and there is the page number "1" on the second page of the document, which is the one with the "Introduction" chapter. I downloaded gatech-thesis.sty from the zip file at (1), and I also tried using the CTAN version at (2).

(1) http://www.grad.gatech.edu/theses-dissertations-templates

(2) https://www.ctan.org/tex-archive/macros/latex/contrib/gatech-thesis

\documentclass{gatech-thesis}
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\begin{document}
    \thispagestyle{empty}
    \pagenumbering{gobble} 

    \lipsum[1]
    \begin{figure}[h]
        \includegraphics{demo}
    \end{figure}

    \newpage
    \pagenumbering{arabic}
    \setcounter{page}{1}

    \chapter{Introduction}
\end{document}

This is what I get using MiKTeX pdflatex on Windows:

enter image description here

bers
  • 5,404
  • this didn't work….Introduction is still starting from '2' – NAASI Jul 14 '15 at 13:25
  • When you write "this doesn't work", you mean you compile the exact code that I posted in my answer, and your resulting file (pdf, for example) has a "2" typeset at the bottom of the second page? – bers Jul 14 '15 at 13:26
  • yes….everything same except document class \documentclass[12pt]{gatech-thesis} – NAASI Jul 14 '15 at 13:29
  • 1
    "Our cars have the same color, except that mine is red and yours is green." Please see my comment to your question. One needs knowledge of the document class as part of the question because this determines 100% of the behavior of your document. – bers Jul 14 '15 at 13:32
  • sorry about that….i have added it in original post – NAASI Jul 14 '15 at 13:35
  • Try updating your TeX distribution. Although that would surprise me, both the CTAN version and the version at your university's web site are dated 2010. – bers Jul 14 '15 at 13:40
  • I am an end user kind of person and i have not experimented much with this template……I will look into what it means to update TeX distribution and how can one do it – NAASI Jul 14 '15 at 13:43
  • 3
    You will find much help here as soon as you let us know what kind of distribution you are using :) – bers Jul 14 '15 at 13:45