I am currently writing my final master thesis in tex. I am stuck up in the following place. Firstly I have a chapter called Introduction which is not numbered. In the table of contents page, the introduction page starts with a different page number than 1. Ex:enter image description here

Next problem is in the introduction chapter. The heading is different from what it supposed to be. In my template, the first page of the chapter only has a header line with page number and the subsequent pages have the chapter name as header. In this case it is throwing up something else. Ex. enter image description here

and this is the next page enter image description here

How to resolve this ?

The third problem is in the table of contents as shown in the figure, "Acknowledgements" and "Abstract" have been assigned some roman numbers. But actually there are no page numbers in the respective tex files. How to set page numbering for these two pages and also incorporate the same in the table of contents. I am also attaching my code in the main file thesis.tex so that it is helpful:

% Start Global Settings
%use color for the document
%for allowing word-wrap around images.
\newfontfamily\devanagarifont[Script=Devanagari]{Lohit Devanagari}
%Indent the first line of the first paragraph after each section heading.
%Enable HyperLinks
\setcounter{secnumdepth}{4} %By doing this, we allow subsubsubsections to be numbered :)
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

    \fancyhf{} % delete current setting for header and footer
    \addtolength{\headheight}{1pt} % make space for the rule
    \fancyfoot[L]{\bfseries \it{\bfseries{}}}       %footer here

    \fancyhead{}% get rid of headers on plain pages
    \fancyfoot[C]{\bfseries \thepage}

%End Global Settings

%\setlength{\topskip}{0.3in}    % between header and text
\setlength{\textheight}{8.4in} % height of main text
%\setlength{\textwidth}{5.8in}    % width of text
%\setlength{\oddsidemargin}{0.75in} % odd page left margin
%\setlength{\evensidemargin}{0.75in} % even page left margin



% !TeX program = xelatex
%\addcontentsline{toc}{chapter}{List of Figures}
%\addcontentsline{toc}{chapter}{List of Figures}
%input your tex files using the input command

%create a bibiliograpgy file using jabref and input the file name below. In this case it is refs.bib

thanks for the help and suggestions.


1 Answer 1


The first issue should be solvable by using the following after starting your mainmatter:


This resets the page number.

For the second issue, I would use the titlesec package to set the pagestyle of the chapter page:


This is necessary as the \chapter sets the plain pagestyle by default.

  • If \mainmatter would be used, the problem wouldn't occure. This is probably due to using \pagenumbering . The pagestyle matter is dealt with in the example code but probably overridden later. Nobody knows.
    – Johannes_B
    Commented Mar 19, 2016 at 14:10
  • As far as I can see, \mainmatter is used in the code posted?
    – Vidar
    Commented Mar 19, 2016 at 14:24
  • Oh yes, i am sorry. The manual toc entry is added at the wrong place.
    – Johannes_B
    Commented Mar 19, 2016 at 14:27
  • Also, while I see that the chapter style is attempted dealt with in the code, the titlesec package might have more robust implementation? At least it has worked well for me for this issue in the past.
    – Vidar
    Commented Mar 19, 2016 at 14:27
  • 1
    For the third issue: Open up a new question. Generally we have one question, one issue.
    – Johannes_B
    Commented Mar 21, 2016 at 6:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .