# How to remove the chapter number from section number? [duplicate]

I use Roman for Chapter numbers, and I don't want sections to be numbered as VIII.2 (while I still want sections to be numbered within chapters). How do I do that?

i.e. instead of VIII.2 sections should be numbered as 2.


2nd Edit: Sorry, now it is solved. I had \numberwithin{section}{chapter} after that. After removing it everything is fine.

-

## marked as duplicate by Fran, Werner, Kurt, egreg, diabonasFeb 13 '13 at 23:47

Try something like \renewcommand\thesection{\arabic{section}} somewhere before \begin{document}. This should work, if not please provide an example of your code, so we can try it.

\documentclass{book}
\usepackage[T1]{fontenc}
\renewcommand\thesection{\arabic{section}}
\begin{document}

\section{Something else}

\end{document}


-
\renewcommand{\thesection}{\arabic{section}}