How do I "translate" the following from memoir class to report class?
I'm currently writing a dissertation in report class and it would be great if I could use this chapter heading:
\documentclass{memoir}
\usepackage{tikz, blindtext}
\makechapterstyle{box}{
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapnumfont}{\normalfont\sffamily\huge\bfseries}
\renewcommand*{\printchapternum}{
\flushright
\begin{tikzpicture}
\draw[fill,color=black] (0,0) rectangle (2cm,2cm);
\draw[color=white] (1cm,1cm) node { \chapnumfont\thechapter };
\end{tikzpicture}
}
\renewcommand*{\chaptitlefont}{\normalfont\sffamily\Huge\bfseries}
\renewcommand*{\printchaptertitle}[1]{\flushright\chaptitlefont##1}
}
\chapterstyle{box}
\begin{document}
\chapter{Introduction}
\end{document}
Best Answer
The following is a fairly adequate adaptation of
memoir
'sbox
chapter style (left ismemoir
; right isreport
):I've included a similar update to
\@makeschapterhead
that is responsible for setting a starred chapter heading. Some tweaking may be necessary, but that's left up to the reader.