I have two problems occurring with both pdflatex and latex-dvips-ps2pdf:
The first:
The page numbering in report class has two counters, the first is for the first introductory pages, and the second starts with the first chapter.
When I use the environment "abstract" in the beginning, the page numbering will reset at abstract, and at the first chapter twice!
How to fix that?
This is a minimum code:
Code: Select all
\documentclass[12pt]{report}
\begin{document}
\title{title}
\author{author}
\maketitle
\newpage
\pagenumbering{roman}
\addcontentsline{toc}{chapter}{Test1}
test1
\newpage
\addcontentsline{toc}{chapter}{TOC}
\tableofcontents
\newpage
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
test
\end{abstract}
\newpage
\pagenumbering{arabic}
\chapter{Introduction}
\end{document}
Problem 2:
In addition to the previous problem, there is a problem when I use babel package.
I have assigned the first pages in the report to roman numbering, while the rest of the report (starting from chapter 1) to arabic numbering
Now, when I use babel, the numbering of the table of contents will become arabic and not roman!
How to fix that?
This is a minimum example:
Code: Select all
\documentclass[12pt]{report}
\usepackage[arabic,french,english]{babel}
\begin{document}
\title{title}
\author{author}
\maketitle
\newpage
\pagenumbering{roman}
\addcontentsline{toc}{chapter}{Test1}
test1
\newpage
\addcontentsline{toc}{chapter}{TOC}
\tableofcontents
\newpage
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
test
\end{abstract}
\newpage
\pagenumbering{arabic}
\chapter{Introduction}
\end{document}