You get three times a page 1 in the front matter: in the report
class the titlepage
environment which is used also by abstract
resets the page number to 1.
I suggest you to use the book
class with its \frontmatter
and \mainmatter
commands, with \chapter{\abstractname}
for the abstract in the front matter.
However also the report
class can be used, after patching the relevant commands; I show only the important parts, add the rest to suit. It's probably better to \usepackage[<options>]{geometry}
for setting the page parameters and \usepackage{setspace}
for the interline spacing.
Remember the \clearpage
command before \pagenumbering{arabic}
.
\documentclass[12pt]{report}
%%% PATCHES %%%
\usepackage{etoolbox}
\makeatletter
% Patch `titlepage` not to reset the page number
\patchcmd{\titlepage}{\setcounter{page}\@ne}{}{}{}
\patchcmd{\endtitlepage}{\setcounter{page}\@ne}{}{}{}
% Patch `abstract` so that it shows the page number
\patchcmd{\abstract}{\titlepage}{\titlepage\thispagestyle{plain}}{}{}
\makeatother
%%% END PATCHES %%%
\begin{document}
\pagenumbering{roman}
\begin{titlepage}
abc
\end{titlepage}
\begin{abstract}
dddd
\end{abstract}
\tableofcontents
\clearpage %%%%% <---- IMPORTANT
\pagenumbering{arabic}
\pagestyle{myheadings} \markright{}
\chapter{A}
\end{document}
Another possible solution, with setspace
and geometry
packages.
A wild jumping from one \baselinestretch
to another one is confusing, as well as the redefinition of that length is strongly discouraged. The titlepage was too large, therefore shipped out on the 2nd page, leaving the 1st one empty.
%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,twoside,a4paper]{report}
\pagestyle{headings}
\usepackage{latexsym,amsfonts,amssymb}
\usepackage[tmargin=1.5cm,lmargin=1.5cm,rmargin=1.5cm,bmargin=1.5cm]{geometry}%
\usepackage{setspace}%
%\def\baselinestretch{1.6}
\usepackage[dvips]{graphicx}
\usepackage{graphicx}
\usepackage{makeidx,paralist,verbatim,psfrag}
\usepackage {amssymb,amsmath,amsfonts}
\usepackage{psfrag}
\usepackage{multirow}
\usepackage{float}
\usepackage{mathtools}
\restylefloat{table}
%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{plain}
\title{{\large B.Sc. Engg. Thesis}\\
\vspace{2cm}
\textbf{On Cover Contact Graphs}}
\author{ By \\
Md. Taufique Hussain \\
Student No. 0805050 \\
Shohedul Hasan \\
Student No. 0805060\\
\vspace{2cm}
\\
{ Submitted to}\\
{Department of Computer Science and Engineering} \\
{ in partial fulfilment of the requirements for the
degree of}\\
\vspace{3cm}
{ Bachelor of Science in Computer Science and Engineering}\\
%\vspace{3cm}
%{(Preliminary version)}\\
{ Department of Computer Science and Engineering}\\
{ Bangladesh University of Engineering and Technology (BUET)}\\
\vspace{1cm}
{ Dhaka-1000}
}
\date{June 13, 2014}
%
%\usepackage{latexsym,amsfonts,amssymb}
%\usepackage{graphicx,amssymb,}
\def\squareforqed{\hbox{${\cal Q.E.D.}$}} %modified
\def\qed{\ifmmode\squareforqed\else{\unskip\nobreak\hfil
\penalty50\hskip1em\null\nobreak\hfil\squareforqed
\parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi
\vskip 10pt}
%\topmargin=-.5cm
%\leftmargin=0true cm
%\oddsidemargin=-.5true cm
%\evensidemargin=-.5true cm
%\topmargin=-.5cm \leftmargin=.5true cm \oddsidemargin=0true cm
%\evensidemargin=0true cm
%\textwidth=17cm
%\textheight=23cm
\newcounter{linenumber}
\newenvironment{listprog}{%
\begin{list}{%
\footnotesize\arabic{linenumber}}{%
\usecounter{linenumber}%
% \setlength{\baselineskip}{14pt}
\setlength{\itemsep}{0pt}%
\setlength{\parsep}{0pt}}}%
{\end{list}}
\newcommand{\namelistlabel}[1]{\mbox{#1}\hfil}
\newenvironment{listing}[1]{%
\begin{list}{*}{%
\let\makelabel\namelistlabel
\settowidth{\labelwidth}{#1}%
\setlength{\leftmargin}{1.1\labelwidth}%
\advance \leftmargin by 18pt
\setlength{\labelsep}{5pt}%
\setlength{\itemsep}{0pt}%
% \setlength{\parsep}{0pt}%
\setlength{\topsep}{5pt}%
% \setlength{\parskip}{0pt}%
}%
}{%
\end{list}}
\newcommand{\bta}{\hspace{7pt}}
\newcommand{\btb}{\hspace{14pt}}
\newcommand{\btc}{\hspace{21pt}}
\newcommand{\btd}{\hspace{28pt}}
\newcommand{\bte}{\hspace{35pt}}
\newcommand{\btf}{\hspace{42pt}}
\newcommand{\btg}{\hspace{49pt}}
\newcommand{\bth}{\hspace{56pt}}
\newcommand{\bti}{\hspace{63pt}}
\newcommand{\btj}{\hspace{70pt}}
\newcommand{\btk}{\hspace{77pt}}
\newcommand{\btl}{\hspace{84pt}}
\newcommand{\btm}{\hspace{91pt}}
\newcommand{\btn}{\hspace{98pt}}
\newcommand{\bto}{\hspace{150pt}}
\newcommand{\btp}{\hspace{160pt}}
\newcommand{\btq}{\hspace{170pt}}
\newcommand{\btr}{\hspace{180pt}}
\newcommand{\bts}{\hspace{190pt}}
\newcommand{\btt}{\hspace{200pt}}
\newcommand{\btu}{\hspace{210pt}}
\newcommand{\btv}{\hspace{220pt}}
\newcommand{\btw}{\hspace{230pt}}
\newcommand{\btx}{\hspace{240pt}}
\newcommand{\bty}{\hspace{250pt}}
\newcommand{\btz}{\hspace{260pt}}
\newcommand{\Begin} {{\bf begin}}
\newcommand{\End} {{\bf end}}
\newcommand{\If} {{\bf if }}
\newcommand{\Then} {{\bf then }}
\newcommand{\Else} {{\bf else }}
\newcommand{\For} {{\bf for }}
\newcommand{\To} {{\bf to }}
\newcommand{\DownTo} {{\bf downto }}
\newcommand{\Do} {{\bf do }}
\newcommand{\While} {{\bf while }}
\newcommand{\Repeat}{{\bf repeat }}
\newcommand{\Until} {{\bf until}}
\newcommand{\Procedure} {{\bf Procedure }}
\newcommand{\Function} {{\bf Function }}
\newcommand{\Return} {{\bf return }}
\newcommand{\Integer} {{\bf integer}}
\newcommand{\Boolean} {{\bf Boolean}}
\newcommand{\boxbox}{\rule{3mm}{3mm}}
\newcounter{tmp}
\newcommand{\setcount}[2]{\setcounter{#1}{\arabic{#2}}}
\newcommand{\num}[2]{\setcounter{tmp}{\arabic{#1}}\addtocounter{tmp}{#2}{\arabic{section}.\arabic{tmp}}}
\newcommand{\fdeg}{$f$-degree }
\newcommand{\bound}[1]{$#1$-bounded}
\newcommand{\dBound}[1]{$(d_f,#1)$-partition}
\newcommand{\DBound}[1]{$(\Delta,#1)$-partition}
\newcommand{\class}{${\cal C}$}
\newcommand{\Delt}{\Delta_{f}}
\newcommand{\chr}{\chi^\prime}
\newcommand{\case}[1]{\noindent{\em Case} #1: }
\newcommand{\Case}[1]{\noindent{\em Case} #1: }
\newcommand{\minvp}{\min\{\#\varphi,\#\psi\}}
\newtheorem{lemma}{Lemma}[section]
%\newtheorem{theorem}{Theorem}%[section]
\newtheorem{theorem}[lemma]{Theorem}
\newtheorem{corollary}[lemma]{Corollary}
\newtheorem{fact}[lemma]{Fact}
\newcommand{\proof}{\noindent {\bf Proof.} \ \ }
%\newcommand{\proofend}{\begin{flushright${\cal Q.E.D.}$\end{flushright}}
%\newcommand{\proofend}{
% {\hfill{${\cal Q.E.D.}$}}
%
% \ }
\newcommand{\dvgraph}{divided vertex graph}
\newcommand{\wrt}{with respect to }
\newcommand{\A}{{\cal A}}
\newcommand{\D}{{\cal D}}
\newcommand{\E}{{\cal E}}
\newcommand{\F}{{\cal F}}
\newcommand{\G}{{\cal G}}
\renewcommand{\H}{{\cal H}}
\newcommand{\I}{{\cal I}}
\renewcommand{\L}{{\cal L}}
\newcommand{\LC}{L^*}
\newcommand{\aaa}{{\"a}}
\newcommand{\pp}{{\prime\prime}}
\newcommand{\ppp}{{\prime\prime\prime}}
\newcommand{\Eq}[1]{(\ref{#1})}
\newcommand{\lsup}{\beta_{\rm sup}}
\newcommand{\color}[1]{\lceil (#1+2)^2/2\rceil}
\newcommand{\gcolor}{\lceil 72(g(G)+2)^2/5\rceil}
\newcommand{\newsubset}{$\subseteq$\hspace{-7pt}{$_{_/}$}}
\renewcommand{\bibname}{References} % without this line the Refenrence will be replaced by bibliography
\makeindex
\makeglossary
\begin{document}
\linespread{1.1}%
\maketitle
\pagenumbering{arabic}
\linespread{1.0}
\normalsize{
\tableofcontents \newpage
\listoffigures \newpage
\listoftables
\newpage
}
\chapter{First}
\end{document}
Repost of the basically unchanged original OP post
\documentclass[12pt, twoside, makeidx,a4paper]{report}
\pagestyle{headings}
\usepackage{latexsym,amsfonts,amssymb}
\usepackage[dvips]{graphicx} % Was commented out in original post version
\usepackage{graphicx}
\usepackage{makeidx,paralist,verbatim,psfrag}
\usepackage {amssymb,amsmath,amsfonts}
\usepackage{psfrag}
\usepackage{multirow}
\usepackage{float}
\usepackage{mathtools}
\restylefloat{table}
%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{latexsym,amsfonts,amssymb}
%\usepackage{graphicx,amssymb,}
\parskip=5pt
\def\squareforqed{\hbox{${\cal Q.E.D.}$}} %modified
\def\qed{\ifmmode\squareforqed\else{\unskip\nobreak\hfil
\penalty50\hskip1em\null\nobreak\hfil\squareforqed
\parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi
\vskip 10pt}
%\topmargin=-.5cm
%\leftmargin=0true cm
%\oddsidemargin=-.5true cm
%\evensidemargin=-.5true cm
\topmargin=-.5cm \leftmargin=.5true cm \oddsidemargin=0true cm
\evensidemargin=0true cm
\textwidth=17cm
\textheight=23cm
\newcounter{linenumber}
\newenvironment{listprog}{%
\begin{list}{%
\footnotesize\arabic{linenumber}}{%
\usecounter{linenumber}%
% \setlength{\baselineskip}{14pt}
\setlength{\itemsep}{0pt}%
\setlength{\parsep}{0pt}}}%
{\end{list}}
\newcommand{\namelistlabel}[1]{\mbox{#1}\hfil}
\newenvironment{listing}[1]{%
\begin{list}{*}{%
\let\makelabel\namelistlabel
\settowidth{\labelwidth}{#1}%
\setlength{\leftmargin}{1.1\labelwidth}%
\advance \leftmargin by 18pt
\setlength{\labelsep}{5pt}%
\setlength{\itemsep}{0pt}%
% \setlength{\parsep}{0pt}%
\setlength{\topsep}{5pt}%
% \setlength{\parskip}{0pt}%
}%
}{%
\end{list}}
\newcommand{\bta}{\hspace{7pt}}
\newcommand{\btb}{\hspace{14pt}}
\newcommand{\btc}{\hspace{21pt}}
\newcommand{\btd}{\hspace{28pt}}
\newcommand{\bte}{\hspace{35pt}}
\newcommand{\btf}{\hspace{42pt}}
\newcommand{\btg}{\hspace{49pt}}
\newcommand{\bth}{\hspace{56pt}}
\newcommand{\bti}{\hspace{63pt}}
\newcommand{\btj}{\hspace{70pt}}
\newcommand{\btk}{\hspace{77pt}}
\newcommand{\btl}{\hspace{84pt}}
\newcommand{\btm}{\hspace{91pt}}
\newcommand{\btn}{\hspace{98pt}}
\newcommand{\bto}{\hspace{150pt}}
\newcommand{\btp}{\hspace{160pt}}
\newcommand{\btq}{\hspace{170pt}}
\newcommand{\btr}{\hspace{180pt}}
\newcommand{\bts}{\hspace{190pt}}
\newcommand{\btt}{\hspace{200pt}}
\newcommand{\btu}{\hspace{210pt}}
\newcommand{\btv}{\hspace{220pt}}
\newcommand{\btw}{\hspace{230pt}}
\newcommand{\btx}{\hspace{240pt}}
\newcommand{\bty}{\hspace{250pt}}
\newcommand{\btz}{\hspace{260pt}}
\newcommand{\Begin} {{\bf begin}}
\newcommand{\End} {{\bf end}}
\newcommand{\If} {{\bf if }}
\newcommand{\Then} {{\bf then }}
\newcommand{\Else} {{\bf else }}
\newcommand{\For} {{\bf for }}
\newcommand{\To} {{\bf to }}
\newcommand{\DownTo} {{\bf downto }}
\newcommand{\Do} {{\bf do }}
\newcommand{\While} {{\bf while }}
\newcommand{\Repeat}{{\bf repeat }}
\newcommand{\Until} {{\bf until}}
\newcommand{\Procedure} {{\bf Procedure }}
\newcommand{\Function} {{\bf Function }}
\newcommand{\Return} {{\bf return }}
\newcommand{\Integer} {{\bf integer}}
\newcommand{\Boolean} {{\bf Boolean}}
\newcommand{\boxbox}{\rule{3mm}{3mm}}
\newcounter{tmp}
\newcommand{\setcount}[2]{\setcounter{#1}{\arabic{#2}}}
\newcommand{\num}[2]{\setcounter{tmp}{\arabic{#1}}\addtocounter{tmp}{#2}{\arabic{section}.\arabic{tmp}}}
\newcommand{\fdeg}{$f$-degree }
\newcommand{\bound}[1]{$#1$-bounded}
\newcommand{\dBound}[1]{$(d_f,#1)$-partition}
\newcommand{\DBound}[1]{$(\Delta,#1)$-partition}
\newcommand{\class}{${\cal C}$}
\newcommand{\Delt}{\Delta_{f}}
\newcommand{\chr}{\chi^\prime}
\newcommand{\case}[1]{\noindent{\em Case} #1: }
\newcommand{\Case}[1]{\noindent{\em Case} #1: }
\newcommand{\minvp}{\min\{\#\varphi,\#\psi\}}
\newtheorem{lemma}{Lemma}[section]
%\newtheorem{theorem}{Theorem}%[section]
\newtheorem{theorem}[lemma]{Theorem}
\newtheorem{corollary}[lemma]{Corollary}
\newtheorem{fact}[lemma]{Fact}
\newcommand{\proof}{\noindent {\bf Proof.} \ \ }
%\newcommand{\proofend}{\begin{flushright${\cal Q.E.D.}$\end{flushright}}
%\newcommand{\proofend}{
% {\hfill{${\cal Q.E.D.}$}}
%
% \ }
\newcommand{\dvgraph}{divided vertex graph}
\newcommand{\wrt}{with respect to }
\newcommand{\A}{{\cal A}}
\newcommand{\D}{{\cal D}}
\newcommand{\E}{{\cal E}}
\newcommand{\F}{{\cal F}}
\newcommand{\G}{{\cal G}}
\renewcommand{\H}{{\cal H}}
\newcommand{\I}{{\cal I}}
\renewcommand{\L}{{\cal L}}
\newcommand{\LC}{L^*}
\newcommand{\aaa}{{\"a}}
\newcommand{\pp}{{\prime\prime}}
\newcommand{\ppp}{{\prime\prime\prime}}
\newcommand{\Eq}[1]{(\ref{#1})}
\newcommand{\lsup}{\beta_{\rm sup}}
\newcommand{\color}[1]{\lceil (#1+2)^2/2\rceil}
\newcommand{\gcolor}{\lceil 72(g(G)+2)^2/5\rceil}
\newcommand{\newsubset}{$\subseteq$\hspace{-7pt}{$_{_/}$}}
\renewcommand{\bibname}{References} % without this line the Refenrence will be replaced by bibliography
\makeindex
\makeglossary
\begin{document}
\bibliographystyle{plain}
%\def\baselinestretch{1.1}
\title{{\large B.Sc. Engg. Thesis}\\
\vspace{2cm}
\textbf{On Cover Contact Graphs}}
\author{ By \\
Md. Taufique Hussain \\
Student No. 0805050 \\
Shohedul Hasan \\
Student No. 0805060\\
\vspace{2cm}
\\
{ Submitted to}\\
{Department of Computer Science and Engineering} \\
{ in partial fulfilment of the requirements for the
degree of}\\
\vspace{3cm}
{ Bachelor of Science in Computer Science and Engineering}\\
%\vspace{3cm}
%{(Preliminary version)}\\
{ Department of Computer Science and Engineering}\\
{ Bangladesh University of Engineering and Technology (BUET)}\\
\vspace{1cm}
{ Dhaka-1000}
}
\date{June 13, 2014}
\maketitle
\pagenumbering{arabic}
%\input board.tex \newpage
%\input declaration.tex \newpage
\normalsize{
\tableofcontents \newpage
\listoffigures \newpage
\listoftables
\newpage
}
%\def\baselinestretch{1.6}
\normalsize{
%\input%\input Acknowledgement.tex \newpage
%\input%\input Abstract.tex \newpage
}
%\def\baselinestretch{1.8}
%\input%\input Chap_1.tex %introduction
%\input%\input Chap_2.tex %preliminery
%\input%\input Chap_3.tex %CCG of convex point sets
%\input chap4.tex %CCG of non-convex point sets
%\input%\input Chap_5.tex %Conclusion
%\input chap6.tex
%\input publication.tex
%\input references.tex
%
%\input conclusion.tex
%
%\bibliography{Book,PhDThesis,Journal,Proceeding,Report,Manuscript,Zhou,Zhou.world}
%
%\newpage
% \printmypapers
%
%
%
\newpage
\printindex
%
%\newpage
%\printglossary
\end{document}
Best Answer
Don't use
titlepage
(which makes a blank page in which to typeset title elements) and\maketitle
Use one or the other. This makes a 1 page document with a title on that page.