Theses, Books, Title pages ⇒ Small capitals for Chapter titles, sections, subsection..
Small capitals for Chapter titles, sections, subsection..
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!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Small capitals for Chapter titles, sections, subsection..
Re: Small capitals for Chapter titles, sections, subsection.
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?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Small capitals for Chapter titles, sections, subsection..
Code: Select all
\usepackage{titlesec}
\makeatletter
\titleformat{\chapter}[display]{\huge\bfseries\scshape}{\@chapapp~\thechapter}{1\baselineskip}{}
\titleformat{\section}{\large\bfseries\scshape}{\thesection}{1em}{}
\makeatother
titleformat
has a few arguments than you tried to give.Or use the following block to change the fonts.
Code: Select all
\let\chapterfont\relax
\usepackage{sectsty}
\allsectionsfont{\scshape}
Re: Small capitals for Chapter titles, sections, subsection.
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?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Small capitals for Chapter titles, sections, subsection..
Code: Select all
\addtokomafont{pagehead}{\scshape}
Re: Small capitals for Chapter titles, sections, subsection.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm