To modify the header of a chapter you can use on of the predefined styles of the package fncychap
In relation to your question I present a small example:
\documentclass{book}
\usepackage[Lenny]{fncychap}
\begin{document}
\chapter{Compiler Construction Tools}
\end{document}
As Werner mentioned you can also use the memoir class which also provides some styles. Examples can be found in the documentation of memoir (6.5.1 Defining a chapter style, p 83.)
The chapter head is typeset by \@makechapterhead, which is a macro with one argument, while the TOC entry and the heading are direct responsibiity of \@chapter and independent of \@makechapterhead. If we temporarily redefine it to simply gobble its argument, we're done.
\documentclass{report}
\makeatletter
\newcommand{\unchapter}[1]{%
\begingroup
\let\@makechapterhead\@gobble % make \@makechapterhead do nothing
\chapter{#1}
\endgroup
}
\makeatother
\pagestyle{headings}
\begin{document}
\tableofcontents
\chapter{Regular}
Text
\unchapter{No chapter head}
Text\newpage
text: check the heading
\chapter{This is regular again}
\end{document}
Best Answer
Here is an example of what can be done with
titlesec
(andxrfill
+xcolor
):