# Change chapter heading format [duplicate]

Possible Duplicate:
Chapter formatting

Could someone help me with this problem with my document?

% % % %

Chapter 2

Title

% % % %


I would like the following text:

% % % %

2 Title

% % % %

-

## marked as duplicate by lockstep, Paul Gaborit, T. Verron, clemens, yo'Jan 10 '13 at 16:00

Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}). –  Claudio Fiandrino Jan 10 '13 at 10:18
There are many similar questions on this site, with answers, which you may find with the search facility. If none of these help, you will need to tells us which documentclass you are using. You will get most help by providing a minimal working example (MWE) –  Andrew Swann Jan 10 '13 at 14:16

\makeatletter