## LaTeX forum ⇒ Fonts & Character Sets ⇒ How to bold the Table of Contents (PDF screen shot attached)

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm

Please, find the attached screen shot.
I have prepared the table of contents. But, all are is normal font. I want to bold them.
Could you please, provide me the code to bold the list of contents.

The present code in preamble is:
Attachments
contentsBOLD.png (169.56 KiB) Viewed 943 times

Stefan Kottwitz
Posts: 9244
Joined: Mon Mar 10, 2008 9:44 pm

\bfseries\tableofcontents\normalfont

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm

One more request, I want to bold only the Chapter titles, but not the sections and subsections in TABLE OF CONTENTS. I want remaining sections and subsections to be in normal series and NOT bold.
Please, check the attachment and help me with code.
Attachments
contentsSECTIONSnotBOLD.png (138.99 KiB) Viewed 846 times

Johannes_B
Site Moderator
Posts: 3933
Joined: Thu Nov 01, 2012 4:08 pm
I haven't addressed any of your questions so far. The problem is your class file, which is unknown. There used to be a template defining a class called Thesis.cls and it was terrible. There have been serious copyright and license issues and basically everybody using the class broke some law of some country. Luckily/Unfortunately, nobody cares about that.

For a minimal document, chapters are in bold in the table of contents. So, something in your document is changing that. Maybe the class file, maybe something in your very very long preamble. I don't know, i didn't test.

What i keep telling people, is not to use any templates. See LaTeX for scientific writing and Template confusion
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9244
Joined: Mon Mar 10, 2008 9:44 pm
Over many years, there appeared several different classes thesis.cls. That's because on different universities people developed kind of templates and classes for the students theses, and called it the same way, that's a bit careless. So we cannot know which thesis class or template you are using.

I usually based on the assumption, that it's like a report class plus some tweaking. That could be a good guess. Where did you get your thesis.cls or thesis template from? Do you have a link, where we can download it and test it?

By the way, today the Masters Doctoral template is popular. There's even a manual for it, by Johannes.

Stefan

Johannes_B
Site Moderator
Posts: 3933
Joined: Thu Nov 01, 2012 4:08 pm
Stefan Kottwitz wrote:By the way, today the Masters Doctoral template is popular. There's even a manual for it, by Johannes.

Yes, there is. But nobody needs it really.
I am against using templates.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9244
Joined: Mon Mar 10, 2008 9:44 pm
I made my peace with the existence of templates. Somehow users needs to start, also those users who want to focus on writing instead of learning some dozen packages to use them or not.

Still there are too many bad templates out in the world. I remember also good templates, with folder structure, where each line in the preamble was explained with options and alternatives.

Stefan