Code: Select all
\documentclass[12pt, a5paper]{book}
Chapter 1
Introducing the Hero
I get
1. Introducing the Hero
(or other punctuation between the "1" and the chapter title)?
Thanks.
Philip Machanick, Brisbane, Australia
Code: Select all
\documentclass[12pt, a5paper]{book}
NEW: TikZ book now 40% off at Amazon.com for a short time.
\renewcommand{\chaptername}{}
" does remove the word chapter, but there is still a skipped line between the "1" and the chapter title:Code: Select all
\makeatletter\renewcommand{\@makechapterhead}[1]{%\vspace*{50 pt}%{\setlength{\parindent}{0pt} \raggedright \normalfont\bfseries\Huge\ifnum \value{secnumdepth}>1\if@mainmatter\thechapter.\ \fi%\fi#1\par\nobreak\vspace{40 pt}}}\makeatother
\if@mainmatter
(without spaces) is only defined in the book class. Alternatively, to get the number following code can be used:
Code: Select all
\makeatletter\renewcommand{\@makechapterhead}[1]{%\vspace*{50 pt}%{\setlength{\parindent}{0pt} \raggedright \normalfont\bfseries\Huge\thechapter.\ #1\par\nobreak\vspace{40 pt}}}\makeatother
NEW: TikZ book now 40% off at Amazon.com for a short time.