2

I would like to re-create the following style using the memoir class

enter image description here

I made a .cls file with

\chapterstyle{veelo} \renewcommand*{\printchaptername}{} \renewcommand{\chapnumfont}{\normalfont\sffamily} \renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily\bfseries}

and I get

enter image description here

Can you please tell me how I can modify the code to get the closest to the first picture? Thanks!!!

1 Answer 1

3

First version

\documentclass{memoir}
\usepackage{xcolor}


% chapter style %%%%%%%%%%%%%%%%
\renewcommand{\printchaptername}{}
\renewcommand{\printchapternum}{%
\makebox[0pt][l]{\chapnumfont \thechapter}%
\textcolor{gray}{\rule[7mm]{1.5cm}{4mm}}%
\hspace{-1.5cm}%
\rule[-3mm]{1.5cm}{2mm}%
}
\renewcommand{\afterchapternum}{}
\renewcommand{\chapnumfont}{\chaptitlefont}
\renewcommand{\chaptitlefont}{\normalfont\Huge\sffamily\bfseries}

% section style %%%%%%%%%%%

\setsecheadstyle{
\textcolor{gray}{\rule[4mm]{1.75cm}{2mm}}%
\hspace{-1.75cm}%
\rule[-2mm]{1.75cm}{1mm}%
\hspace{-1.75cm}%
\normalfont\Large\sffamily\bfseries
}



\begin{document}

\chapter{Noise in oscillators}

\section{Introduction}

\end{document}

enter image description here

Second version

\documentclass{memoir}
\usepackage{xcolor}


% chapter style %%%%%%%%%%%%%%%%
\renewcommand{\printchaptername}{}
\renewcommand{\printchapternum}{}
\renewcommand{\afterchapternum}{}
\renewcommand{\chapnumfont}{\chaptitlefont}
\renewcommand{\chaptitlefont}{\hfill\normalfont\Huge\sffamily\bfseries}
\renewcommand{\afterchaptertitle}{%
\makebox[0pt][l]{\chapnumfont \thechapter}%
\textcolor{gray}{\rule[7mm]{1.5cm}{4mm}}%
\hspace{-1.5cm}%
\rule[-3mm]{1.5cm}{2mm}
\par\nobreak\vskip \afterchapskip
}

% section style %%%%%%%%%%%

\setsecheadstyle{
\textcolor{gray}{\rule[4mm]{1.75cm}{2mm}}%
\hspace{-1.75cm}%
\rule[-2mm]{1.75cm}{1mm}%
\hspace{-1.75cm}%
\normalfont\Large\sffamily\bfseries
}



\begin{document}

\chapter{Noise in oscillators}

\section{Introduction}

\end{document}

enter image description here

2
  • Thanks a lot! Do you know how to make a mirrored version? (First the title and then the chapter number on the right side?) Commented Mar 26, 2019 at 23:42
  • @clidrevandijk answer updated Commented Mar 27, 2019 at 7:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .