LaTeX forum ⇒ Theses, Books, Title pagesSmall capitals for Chapter titles, sections, subsection.. Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
janelle
Posts: 4
Joined: Sat Oct 29, 2016 1:12 am

Small capitals for Chapter titles, sections, subsection..

Postby janelle » Sat Oct 29, 2016 1:19 am

Hi everybody,

Here's my first question for the community, hope you can help.

Im using template master-doctoral-thesis for my msc thesis and im wondering how to change all titles (Chapters titles, Sections, Subsections, Bibliography, toc) to Small Capitals.

Any suggestions?

Thanks in advance!

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4163
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Oct 29, 2016 2:34 am

You can use package titlesec just like you would do with any other LaTeX-class.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

janelle
Posts: 4
Joined: Sat Oct 29, 2016 1:12 am

Postby janelle » Sat Oct 29, 2016 10:43 am

thx. im still a beginner and am not quite sure how or where to implement that
i tried by including the following in the "main.tex" file's preamble part

1.
usepackage(titlesec)
\titleformat{\section}{\textsc}
\titleformat{\chapter}{\textsc}
...

but i get this error:
! Paragraph ended before \ttl@format@ii was complete.

2. then i tried
\titleformat*{\section}{\textsc}

which results in:
! Package titlesec Error: Entered in horizontal mode.
See the titlesec package documentation for explanation.
Type H <return> for immediate help.

can you see what goes wrong here?

User avatar
Johannes_B
Site Moderator
Posts: 4163
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Oct 29, 2016 11:43 am

Thinking about it more, you have two possibilities. Using package titlesec and define the headings by yourself entirely (destroys template defaults), or use package sectsty and just change the font. The design will be with changed to the sectsty defaults, so, default template design destroyed as well.

  1. \usepackage{titlesec}
  2. \makeatletter
  3. \titleformat{\chapter}[display]{\huge\bfseries\scshape}{\@chapapp~\thechapter}{1\baselineskip}{}
  4. \titleformat{\section}{\large\bfseries\scshape}{\thesection}{1em}{}
  5. \makeatother

Pay attention, titleformat has a few arguments than you tried to give.

Or use the following block to change the fonts.
  1. \let\chapterfont\relax
  2. \usepackage{sectsty}
  3. \allsectionsfont{\scshape}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

janelle
Posts: 4
Joined: Sat Oct 29, 2016 1:12 am

Postby janelle » Sat Oct 29, 2016 5:42 pm

that works!

minor detail
chapter and section names at the top of each page are still normal
would there be a fast method to change that font to smallcaps too?

User avatar
Johannes_B
Site Moderator
Posts: 4163
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Oct 29, 2016 6:05 pm

  1. \addtokomafont{pagehead}{\scshape}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

janelle
Posts: 4
Joined: Sat Oct 29, 2016 1:12 am

Postby janelle » Sat Oct 29, 2016 9:40 pm

i couldnt be more thankful

User avatar
Johannes_B
Site Moderator
Posts: 4163
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Oct 29, 2016 10:44 pm

Glad to be helpful.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests