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!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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