Text FormattingChanging the Section numbering Format

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
akm3
Posts: 1
Joined: Wed Jul 08, 2009 5:28 am

Changing the Section numbering Format

Post by akm3 »

Hi,
In the following document, the section numbers appear as:
0.1
0.2
0.3
how can I change it to appear as:
1
2
3

Code: Select all

Code, edit and compile here:
\NeedsTeXFormat{LaTeX2e}
\documentclass[11pt]{report}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{listings}
\usepackage{titlesec}
\hyphenation{itself}
\renewcommand{\abstractname}{Executive Summary}
\title{An Analytical Framework for Real-Time }
\author{Principal Investigator: //////}
\begin{document}
\singlespace
\maketitle
\tableofcontents
\begin{abstract} % ~350 words max
ABSTRACT
\end{abstract}
\setcounter{secnumdepth}{1}
\titlelabel{\thetitle\quad}
\section{Introduction}
SEC1
\section{Management Requirements}\label{sec:implem}
SEC2
\section{Work Plan}
SEC2
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Changing the Section numbering Format

Post by frabjous »

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

should do it.

Personally, however, I'd use the article class rather than the report class for a document that did not have chapters, and then it'll happen automatically.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing the Section numbering Format

Post by localghost »

frabjous wrote:\renewcommand{\thesection}{\arabic{section}}

should do it. [...]
This will have no effect. Changing the document class from report to article will have the desired result. In chapter based classes sections are numbered in the 'chapter.section' system.


Best regards and welcome to the board
Thorsten
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Changing the Section numbering Format

Post by frabjous »

localghost wrote:
frabjous wrote:\renewcommand{\thesection}{\arabic{section}}

should do it. [...]
This will have no effect.
It most certainly does have an effect--the desired one. I tested it before I posted, and just tested it again.

Still, as I already said, I agree with the suggestion to change the document class.
Post Reply