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.

   \smash{%             = don't take up any vertical space
      \raisebox{1cm}{%   = place graphic at a certain height
       \rule{5em}{5em}% = insert graphic
| improve this answer | |
  • 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
  • 3
    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
  • 3
    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.

 {\rule{1in}{1in}% (to auto-insert graphic use) \includegraphics{\chaptername-\thechapter-graphic}
  {\\\chaptertitlename\ \thechapter\\}
\chapter{A chapter}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.