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.

In an amsbook based document A subsection heading seems to be left aligned with some indentation in the beginning. Chapter and section headings are center aligned. How can I make subsections also center aligned?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

the definition in amsbook specifies paragraph indentation at the beginning and a run-in heading. those have to be overruled. this code will do it:

\makeatletter
    \def\subsection{\@startsection{subsection}{2}%
      \z@{.5\linespacing\@plus.7\linespacing}{.25\linespacing}%
      {\normalfont\bfseries\centering}}
\makeatother

i've set the spacing below the heading (.25\linespacing) to be just half of the (minimum) spacing above, so the following text will be closer to the heading than what's above it.

share|improve this answer
    
Thanx. This does work. –  Shailesh Kumar May 11 '13 at 8:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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