I am using the memoir
class to write a thesis, and find the veelo
chapter style well enough. However, its chapter title is in times roman, and it does not have subsection counting.
\documentclass{memoir}
\usepackage{amsmath,amsthm,amssymb,amsfonts,amscd}
\usepackage[width=14cm]{geometry}
\usepackage{graphicx}
\chapterstyle{veelo}
\setsecheadstyle{\bfseries\sffamily}
\setsubsecheadstyle{\bfseries\sffamily}
\begin{document}
\chapter{Chapter Name}
\section{Section Name}
\subsection{Subsection Name}
\end{document}
Therefore, I want to do the following changes:
(1) Replace the chapter default font with the sans font (the problem is that I could only change the section and subsection titles into sans font, but could not change the chapter title (counter and name) into the sans font);
(2) Add the subsection counting.
Is there anyone know how to achieve this? Thanks very much.
Best Answer
There are three macros that set the font for elements of the chapter:
Chapter
":\chapnamefont
\chapnumfont
\chaptitlefont
The following example appends
\sffamily
to these font macros using\g@addto@macro
. This way, there is no need to know, what font settings the macros also contain (font size, ...).Numbering of the subsections can be achieved by:
Full example file:
Chapter number
The chapter number has two differences:
It is scaled by a large factor, the height of the number is resized to
18mm
by chapter styleveela
.The chapter number is not bold in opposite to the section numbers.
The following example shows the effect of the scaling: