GeneralChapters, sections and amsbook

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
tdc
Posts: 34
Joined: Fri Sep 12, 2008 1:52 am

Chapters, sections and amsbook

Post by tdc »

According to a nice big set of Latex notes our course leader has given us to help us write our dissertations, under amsbook, chapters should be numbered in roman numerals, sections should be of the form I.1, II.2 etc...

however in my tex file, it doesn't do this.. (see code below for a minimum working example)

I was wandering whether it was something small i missed, or whether our notes are outdated?

Code: Select all

\documentclass[a4paper,12pt]{amsbook}
\begin{document}
\chapter{here's 1}
\section{here's 1}
\section{here's 2}
\section{here's 3}
\chapter{here's 2}
\section{here's 1}
\section{here's 2}
\section{here's 3}
\end{document}
Cheers, Tim

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Chapters, sections and amsbook

Post by Stefan Kottwitz »

Hi Tim,

it could be done by

Code: Select all

\renewcommand*\thechapter{\Roman{chapter}}
\numberwithin{section}{chapter}
in the preamble.

Stefan
LaTeX.org admin
tdc
Posts: 34
Joined: Fri Sep 12, 2008 1:52 am

Re: Chapters, sections and amsbook

Post by tdc »

oo thank you :)

out of curiosity, is that something that was originally in the amsbook class... or are our notes flawed?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Chapters, sections and amsbook

Post by Stefan Kottwitz »

The original definitions in amsbook.cls are different:

Code: Select all

\renewcommand\thechapter{\arabic{chapter}}
\renewcommand\thesection{\arabic{section}}
\numberwithin changed also \thesection, it could have been done by \renewcommand too.

Stefan
LaTeX.org admin
Post Reply