# Page numbering with \mainmatter and \frontmatter [duplicate]

I'm compiling my thesis want the initial page numbering to be roman and the following to be arabic. I divide the two sections using \mainmatter and \frontmatter. Any direction will be highly appreciated. Thank you

\documentclass[a4paper,twoside,11pt]{report}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\graphicspath{{/Users/Amaan/Desktop/REPORT_Amaan_Ghole_v2/pics/}}
\usepackage[numbered, framed]{mcode}
\usepackage{appendix}
\usepackage{caption}
\usepackage{natbib}
\captionsetup{figurewithin=none}
\captionsetup{tablewithin=none}
\setlength{\parskip}{3mm}
\usepackage{enumitem}
\usepackage{fancyhdr}

\pagestyle{fancyplain}
\parskip=0cm
\voffset=-0.54cm
\hoffset=0.46cm
\oddsidemargin=0pt
\evensidemargin=0pt
\topmargin=0pt
\textheight=23.7cm
\textwidth=15cm
\setlength{\parindent}{0pt}                         % copied from DCSSS04 style file to stop indenting paragraphs (the default)
%    \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}    % copied from DCSSS04 style file, spaces paragraphs and titles
\setlength{\parskip}{10pt}                          % makes a fixed space between paragraphs
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\bibname}{References}

\cfoot[\fancyplain{}{}]{\fancyplain{}{}}
\newcommand{\R}{\mathbb{R}} % real line

\begin{document}
\pagenumbering{roman}
\include{C&T_v2}
\include{abstract&ack_v2}
\listoffigures
\listoftables
\include{acronyms_v2}
\tableofcontents
\pagenumbering{arabic}
\include{Intro_v2}
\include{LitRev_v2}
\include{Kinematics_v2}
\include{Control_v2}
\include{smith_v2}
\include{Robust_v2}
\include{Comparison_v2}
\include{Simulations_v2}
\include{Conclusion_v2}

\appendix
\include{appendixA_v2}
\include{appendixB_v2}
\include{appendixC_v2}
\include{appendixD_v2}
\include{appendixE_v2}

\bibliographystyle{dcu}
\bibliography{THESIS_v2}

\end{document}


## marked as duplicate by Johannes_B, user36296, barbara beeton, user31729, user13907 Jan 29 '17 at 16:02

• Welcome to TeX.SX! Your 'document' does not compile since it misses the \documentclass and there are a lot of \include statements for files we don't have access to. – user31729 Jun 22 '16 at 14:56
• @AmaanGhole - You may have misunderstood Christian's comment. We have no doubt that you have a \documentclass instruction in your document and that you are able to include various tex files. The issue is that nobody else can do so and hence that the problem(s) your facing can't be replicated. For sure, please do share with us which document class you use. – Mico Jun 22 '16 at 15:05
• you might consider switching to the book class. there are a few differences besides the presence of \frontmatter and \mainmatter, in particular the default to twoside (can be overruled by [oneside] as option to \documentclass) and the use of page headers (can be overruled by \pagestyle{plain}), but they shouldn't change the results radically. – barbara beeton Jun 22 '16 at 15:35