Example here e.g. on page 20 http://www.minuszerodegrees.net/manuals ... _APR84.pdf
I could create the box and that simulates it, but not as part of a chapter marker on each page:
Code: Select all
\documentclass{article}\usepackage[explicit]{titlesec}\usepackage{xcolor}\usepackage{lipsum}\usepackage{array}\usepackage{makecell}\usepackage{graphicx}\usepackage{titlesec}\newdimen\parboxheight\makeatletter\newcommand*{\org@iiiparbox}{}\let\org@iiiparbox\@iiiparbox\renewcommand*{\@iiiparbox}[2]{%\ifx\relax#2%\setlength{\parboxheight}{0pt}%\else\setlength{\parboxheight}{#2}%\fi\org@iiiparbox{#1}{#2}%}\makeatother\setlength{\fboxsep}{-\fboxrule}\titleformat{\section}[display]{\normalfont\normalsize\bfseries}{}{0pt}{\colorbox{black}{\fbox{\parbox[][3.7cm][c]{1cm}{\centering\rotatebox{90}{\textcolor{white}{\thesection\quad#1}}}}}}\titleformat{name=\section,numberless}{\normalfont\normalsize\bfseries}{}{0em}{\colorbox{black}{\parbox{1cm}{\textcolor{white}{#1}}}}\begin{document}\setlength{\fboxsep}{-\fboxrule}\section{Hardware}\lipsum[4]\section{Another Test Section}\lipsum[4]\section{Another Test Section with a long title spanning more than one line}\lipsum[4]\section*{An Unnumbered Test Section}\lipsum[4]\end{document}