I'm using document class report
and I have decided for chapter headings to use one of the predefined style of Vincent Zoonekynd's like this:
\documentclass{report}
\usepackage{xcolor}
\makeatletter
\def\LigneVerticale{\vrule height 1.5cm depth 0.9cm\hspace{0.1cm}\relax}
\def\LignesVerticales{%
\let\LV\LigneVerticale\LV\LV\LV\LV\LV\LV\LV\LV\LV\LV}
\def\GrosCarreAvecUnChiffre#1{{\setlength{\fboxsep}{-\fboxrule}%
\fbox{\color{white}%
\rlap{\vrule height 0.8cm width 1cm depth 0.2cm}%
\rlap{\hbox to 1cm{\hss\mbox{\color{black}#1}\hss}}%
\vrule height 0pt width 1cm depth 0pt}}}
\def\@makechapterhead#1{
\vspace*{-20pt}
\hbox{%
\huge\bfseries
\LignesVerticales
\hspace{-0.5cm}%
\GrosCarreAvecUnChiffre{\thechapter}
\hspace{0.2cm}\hbox{#1}%
}\par\vskip 0.5cm}
\def\@makeschapterhead#1
\vspace*{-20pt}
{\hbox{%
\huge\bfseries
\LignesVerticales
%\hspace{0.5cm}%
\hbox{#1}%
}\par\vskip 0.3cm}
\makeatother
\begin{document}
\chapter{Here we go}
\end{document}
However, I would like to make some changes.
I would need to move all construction up to the page, in other words to get smaller space between the top of any page and the construction.
I would like to change the small box. I would prefer white square with black number (not like this one-black square with white number).
report
document class. The main change is that I had to change the instruction\white #1
to\textcolor{white}{#1}
.