# Placing picture above \chapter?

Can anyone recommend/provide an example as to include pictures in the chapter headers? Any packages known for this?

I have read about fncychap which looks great, but would still require add'l programming to include pictures which is what I would apparently need anyway.

-

Here's an example using the memoir class; perhaps one of the other options would have an easier approach. You'll need to load some sort of package like memoir or KOMA-Script or fncychap to be able to write this sort of thing without too much programming, but as you can see below, there's still some manual bits and pieces.

\documentclass{memoir}
\usepackage{graphicx}
\vspace*{\beforechapskip}
\noindent
\smash{%             = don't take up any vertical space
\raisebox{1cm}{%   = place graphic at a certain height
\rule{5em}{5em}% = insert graphic
}%
}%
\par
}
\begin{document}
\chapter{foo}
\end{document}

-
Nice! I was reading titlesec's documentation for an alternative, but just gave up after a while. –  Juan A. Navarro Sep 28 '10 at 12:31
but this will always be the same picture, won't it? –  pluton Sep 28 '10 at 19:32
Writing a macro to change the picture is left as an exercise for the reader :-) –  Will Robertson Sep 29 '10 at 2:02
hum, I see. Not an easy one I think. –  pluton Oct 1 '10 at 13:30
In the example above, how about \insertmygraphic where the rule is and then a command \newcommand\specifygraphic[1]{\def\insertmygraphic{\includegraphics{#1}}}. –  Will Robertson Oct 1 '10 at 14:06

Here's a solution using book (or report) class and the titlesec package. I include it here mainly for reference, since I would strongly recommend using the memoir class over book for any large project. But if you are bent on using the standard classes, titlesec provides a simple solution to the problem.

\documentclass{book}
\usepackage{graphicx}
\usepackage{titlesec}
\titleformat{\chapter}[block]
{\rule{1in}{1in}% (to auto-insert graphic use) \includegraphics{\chaptername-\thechapter-graphic}
\normalfont\huge\bfseries}
{\\\chaptertitlename\ \thechapter\\}
{0pt}
{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{40pt}
\begin{document}
\chapter{A chapter}
\end{document}

-