Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Chapter formatting

Could someone help me with this problem with my document?

Instead of generating the following:

% % % %

Chapter 2

Title

% % % %

I would like the following text:

% % % %

2 Title

% % % %
share|improve this question
    
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
add comment

marked as duplicate by lockstep, Paul Gaborit, T. Verron, cgnieder, tohecz Jan 10 '13 at 16:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

For example:

\makeatletter
\def\chapter{\cleardoublepage\secdef\@chapter\@schapter}
\def\@makechapterhead#1{{\raggedright\Large\bfseries\thechapter\space #1\par\nobreak\vskip 10\p@}}
\def\@makeschapterhead#1{{\raggedright\Large\bfseries #1\par\nobreak\vskip 10\p@}}
\makeatother
share|improve this answer
add comment

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