Text Formattingnumber abstract

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

number abstract

Post by neumannturing »

Hi,
It seems that my latex turn off the numbering for the abstract page and reset the page number to one after abstract. How can I turn on the numbering for the abstract page and NOT reset the page number to one. Thank you.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

number abstract

Post by localghost »

This behaviour is quite intentionally because the abstract isn't really part of the document thus placed on a kind of title page without numbering. Starting from report as your document class, you can borrow the code for the abstract environment from the class file and modify it as shown below.

Code: Select all

\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\author{neumannturing}
\title{Page numbering issue on abstract page}
%\date{\today}

\makeatletter
\if@titlepage
  \renewenvironment{abstract}{%
%      \titlepage                       % <------
      \null\vfil
      \@beginparpenalty\@lowpenalty
      \begin{center}%
        \bfseries \abstractname
        \@endparpenalty\@M
      \end{center}}%
     {\par\vfil\null}% \endtitlepage}   % <------
\else
  \renewenvironment{abstract}{%
      \if@twocolumn
        \section*{\abstractname}%
      \else
        \small
        \begin{center}%
          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
        \end{center}%
        \quotation
      \fi}
      {\if@twocolumn\else\endquotation\fi}
\fi
\makeatother

\begin{document}
  \maketitle

  \begin{abstract}
    \blindtext
  \end{abstract}

  \blinddocument
\end{document}
I commented the critical parts of the code in the branch for the case that there is a title page and so made them noneffective.

I never used it, but perhaps the abstract package offers an interface that might be much easier than this way of problem-solving.


Best regards
Thorsten
Post Reply