Page LayoutTurn off Page Numbering on first Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Turn off Page Numbering on first Page

Post by latexhelp1 »

I would like to create a document such that there is no page number on the first page, and the page numbering begins on the second page as page 1. How would you suggest doing this?

Currently, at the beginning of the document, I put

Code: Select all

\addtocounter{page}{-1}
However, that results in the first page being numbered as page 0. I would rather that page number not appear. Otherwise, I like the feature that the page numbering with page 1 begins on page 2.

I would very much appreciate your help! :)
Last edited by latexhelp1 on Sat Nov 12, 2011 1:28 am, 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Turn off Page Numbering on first Page

Post by localghost »

You can use the titlepage environment for the first page. It will be automatically unnumbered and the following page will be numbered as you want.


Thorsten
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Turn off Page Numbering on first Page

Post by latexhelp1 »

Thorston,

Thank you so deeply for your response. I can see how that would work. However, I am no longer able to produce the title page as I would like.

When I inset the \begin{titlepage} \end{titlepage} as follows in the code, the first page is numbered as 1, the 2nd page is numbered on the 3rd page, the 3rd on the 4th, and so forth. In other words, the first page does not drop the page number that it is arbitrarily assigned as 1.

I notice, however, that it is related to how I make my titlepage. If I drop the command, \maketitle, then the page numbering works as I would like. However, then the title, date, and author disappear.

So in sum, I cannot seem to use both the titlepage and my current format to get the result I would like.

I would very much appreciate your feedback on how to have the title page I have as before but drop the page number on the first page and start the counting on the subsequent page.

Code: Select all

\documentclass[12pt]{article}

\usepackage{fullpage}
\usepackage{setspace} 

\begin{document}
\begin{titlepage}
\vspace{-0.3in}
\title{Title\thanks{Footnotes}}
\begin{singlespace}
\author{Name}

\date{Date}

\maketitle

\end{singlespace}
\vspace{-0.05in}
\setlength{\parskip}{-0.12in}
\begin{onehalfspace}
\begin{abstract}

Abstract

\end{abstract}
\end{onehalfspace}
 
\end{titlepage}

\setlength{\parskip}{0.00in}
\newpage
\onehalfspace
\section{Introduction}

Sample introduction. 

\newpage

Sample page 2

\end{document}

localghost wrote:You can use the titlepage environment for the first page. It will be automatically unnumbered and the following page will be numbered as you want.


Thorsten
Last edited by latexhelp1 on Fri Nov 11, 2011 11:45 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Turn off Page Numbering on first Page

Post by localghost »

Your example is not compilable due to occurring errors. Please fix these errors first and then report back with a working example that reproduces the undesired behaviour. Get used to always checking your examples for functionality and minimal content.

From your example I can only say that for the »article« class you have to turn on a title page by the »titlepage« option for the document class. And if you use the \maketitle command, you don't have to explicitly specify the titlepage environment.

Code: Select all

\documentclass[12pt,titlepage]{article}
\usepackage[T1]{fontenc}

\title{The Title}
\author{The Author}

\begin{document}
  \maketitle
    
  \section{Foo}
\end{document}
As in former threads you initiated I again strongly recommend to do some basic reading. Furthermore you still have to learn what a minimal example is.
soTo
Posts: 8
Joined: Tue Aug 23, 2011 1:00 pm

Turn off Page Numbering on first Page

Post by soTo »

What about the following?

Code: Select all

\addtocounter{page}{-1}
\thispagestyle{empty}
Does it work?
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Turn off Page Numbering on first Page

Post by latexhelp1 »

I have no idea how my code is not compiling. It is compiling on my computer, and I will attach the .pdf
localghost wrote:Your example is not compilable due to occurring errors.

Code: Select all

\documentclass[12pt]{article}

\usepackage{fullpage}
\usepackage{setspace} 

\begin{document}
\begin{titlepage}
\vspace{-0.3in}
\title{Title\thanks{Footnotes}}
\begin{singlespace}
\author{Name}

\date{Date}

\maketitle

\end{singlespace}
\vspace{-0.05in}
\setlength{\parskip}{-0.12in}
\begin{onehalfspace}
\begin{abstract}

Abstract

\end{abstract}
\end{onehalfspace}
 
\end{titlepage}

\setlength{\parskip}{0.00in}
\newpage
\onehalfspace
\section{Introduction}

Sample introduction. 

\newpage

Sample page 2

\end{document}

Last edited by latexhelp1 on Sat Nov 12, 2011 10:02 pm, edited 2 times in total.
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Turn off Page Numbering on first Page

Post by latexhelp1 »

Thank you soooo much for replying! I am so grateful for your generosity and time. The extra line doesn't seem to change anything, however. Code below.
soTo wrote:What about the following?

Code: Select all

\addtocounter{page}{-1}
\thispagestyle{empty}
Does it work?

Code: Select all

\documentclass[12pt]{article}

\usepackage{fullpage}
\usepackage{setspace} 

\begin{document}

\addtocounter{page}{-1}
\thispagestyle{empty}


\vspace{-0.3in}
\title{Title\thanks{Footnotes}}
\begin{singlespace}
\author{Name}

\date{Date}

\maketitle

\end{singlespace}
\vspace{-0.05in}
\setlength{\parskip}{-0.12in}
\begin{onehalfspace}
\begin{abstract}

Abstract

\end{abstract}
\end{onehalfspace}
 
\setlength{\parskip}{0.00in}
\newpage
\onehalfspace
\section{Introduction}

Sample introduction. 

\newpage

Sample page 2

\end{document}

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Turn off Page Numbering on first Page

Post by localghost »

latexhelp1 wrote:I have no idea how my code is not compiling. It is compiling on my computer, and I will attach the .pdf
Your example was not compiling! The code you presented first began two times a »singlespacing« environment and ended it only once. In the meantime you obviously edited your post. Please don't take me for a fool. And don't tell me that it compiled on your machine. You probably use TeXnicCenter which is compiling in nonstop mode that doesn't stop in case of upcoming errors.

If you would have tested my example you would have seen that it does exactly what you want. You only have to translate it to your document.
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Turn off Page Numbering on first Page

Post by latexhelp1 »

Dear Thoroston,

I do not at all take you at all as a fool! In fact, it is the opposite. I think you more are a Latex super genius. A gd among mere mortals like myself. I'm not kidding. I read LaTeX manuals endlessly and do not understand how it is possible that you have such an exemplary mastery of the material. I think you are beyond incredible.

I told you already that I do use TeXnicCenter. I do not know if the earlier code had a typo or not. My deepest apologies if it did. I really mean my deepest! But I reposted it just in case as a second attempt. I reedited the original post and I added it in a new post. I did that so you would not miss it. It came through with zero errors when I compiled it. It produced the .pdf per the file attached. I'm not sure how that corresponds with a broken code if it is producing a .pdf with zero errors and zero warnings.

I did test your example, and it does not do exactly what I want. I want to include an abstract that is one-and-a-half (1.5) spaced and indented slightly on both the left and right sides of the paragraph. I previously did this with the \begin{abstract}. The version you sent me does not have that. When I tried to add this to your version, I receive 3 errors in the code. I consider 3 errors as not compiling, and hence it is not a minimum working example.

Would you like for me to post that code? I don't think it would be a minimum working example because it does not work. But I would happily post it. I am trying very hard to help you help me.

I would still very much appreciate your help!! I hope you realize that I am beyond grateful for your time and help. I tell you this routinely. I think you do a tremendous service.

localghost wrote: Your example was not compiling! The code you presented first began two times a »singlespacing« environment and ended it only once. In the meantime you obviously edited your post. Please don't take me for a fool. And don't tell me that it compiled on your machine. You probably use TeXnicCenter which is compiling in nonstop mode that doesn't stop in case of upcoming errors.

If you would have tested my example you would have seen that it does exactly what you want. You only have to translate that it to your document.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Turn off Page Numbering on first Page

Post by localghost »

Take the code below as a basic structure and incorporate it into your document. It produces a first page including title and abstract without page numbering. The next page is numbered as desired.

Code: Select all

\documentclass[12pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{setspace}
\usepackage{blindtext}

\title{The Title}
\author{The Author}

\begin{document}
  \pagenumbering{gobble}  % turn off page numbering
  \maketitle
  
  \begin{abstract}
    \onehalfspacing
    \blindtext
  \end{abstract}

  \newpage
  \pagenumbering{arabic}  % turn on page numbering starting at "1"
  \blinddocument
\end{document}
I turned off page numbering with a not so well known command and started »arabic« page numbering after the first page which results in the following page being numbered as "1" (see comments in the code above). The solution proposed by soTo might also work, but I'm not sure if it causes trouble in conjunction with the hyperref package.

Very important note:
The packages babel (with its global language option) and blindtext have only been used to create the dummy text. They are not part of the solution, thus have to be dropped in your real document.
Post Reply