1

I have prepared table of contents for my thesis like thatenter image description here

But our university wants like that

enter image description here

The main difference between them, In the second screenshot, chapter and section heading numbers are bold and also contains dot for example

1. INTRODUCTION

I have used to prepare table of content for chapter this code blocks

\titlecontents{chapter}
[25pt]         % left margin
{}%
{\contentsmargin{10pt}         % numbered entry format
    \thecontentslabel\enspace%
    \normalfont }
{\contentsmargin{10pt}\normalfont}      % unnumbered entry format
{\titlerule*[1mm]{.}\contentspage}                 % filler-page format (e.g dots)
[]
  • Is the flush-left vs flush-right alignment of the page numbers important? – Mico Aug 18 '14 at 21:13
  • 3
    Welcome to TeX.SX! Please show us a complete but minimal working document which yields your first picture. Like this, we do not have to type everything for you. – LaRiFaRi Aug 18 '14 at 21:14
  • alignment not important for me – ugur Aug 18 '14 at 21:15
  • 1
    Please post a complete compilable example in your question. This should start with \documentclass and end with \end{document}. Somebody who cuts, pastes and hits compile should produce the output in your (first) screenshot. Right now, I'm not even sure what you are posting. What is the relationship between the different code fragments? – cfr Aug 18 '14 at 21:39
  • 2
    @ugur EDIT your question and post the code IN the question, formatted AS code. It is currently unreadable, incomplete and fragmented. – cfr Aug 18 '14 at 21:43
1

Just modify the given code to:

\titlecontents{chapter}
[25pt]         % left margin
{}%
{\contentsmargin{10pt}         % numbered entry format
    \textbf{\thecontentslabel.}\enspace%
    \normalfont }
{\contentsmargin{10pt}\normalfont}      % unnumbered entry format
{\titlerule*[1mm]{.}\contentspage}                 % filler-page format (e.g dots)
[]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.