How do I set my section numbers like the given format? I'm in need of the format given below.

I'm using gsm-l.cls. I'm just using tags like:



Chapter 1
1.1. Section name
Theorem: 1.1.1.
Theorem: 1.1.2.
Remark: 1.1.3.

  • 1
    Could you please expand your question? What class are you using? How are you defining theorems and remarks?
    – egreg
    Jul 24, 2013 at 9:42
  • 1
    Can you point to a link where the class can be examined? However, if you're using it for a submission, don't try changing the output.
    – egreg
    Jul 24, 2013 at 9:51

2 Answers 2


Here's how you can do it:


% section numbers preceded by chapter number

% define the theorem environments
\newtheorem{theorem}{Theorem}[section] % theorems are numbered by section

\newtheorem{remark}[theorem]{Remark} % remarks share the theorem counter

\chapter{Chapter title}
\section{Section title}
The above theorem is hard.

enter image description here


the usual recommendation for ams document classes (of which gsm-l.cls is one) is to include the command


in the preamble.

  • It doesn't seem necessary for gsm-l
    – egreg
    Jul 24, 2013 at 18:24
  • but it is necessary, unless you do as you have done in your answer: \renewcommand{\thesection}{\thechapter.\arabic{section}} -- \numberwithin replaces that. Jul 24, 2013 at 21:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .