2

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{name}
\section{sectionname}
\begin{theorem}
\end{theorem}

Example:

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 '13 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 '13 at 9:51
2

Here's how you can do it:

\documentclass{gsm-l}

% section numbers preceded by chapter number
\renewcommand{\thesection}{\thechapter.\arabic{section}}

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

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

\begin{document}
\chapter{Chapter title}
\section{Section title}
\begin{theorem}
$1+1=2$
\end{theorem}
\begin{remark}
The above theorem is hard.
\end{remark}
\end{document}

enter image description here

0

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

\numberwithin{section}{chapter}

in the preamble.

  • It doesn't seem necessary for gsm-l – egreg Jul 24 '13 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. – barbara beeton Jul 24 '13 at 21:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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