Text FormattingSubsection Numbers without preceding "0."

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
carp
Posts: 1
Joined: Sat Oct 01, 2011 12:03 am

Subsection Numbers without preceding "0."

Post by carp »

I'm trying to get:

First_Section
Second_Section
1 Red Subsection
2 Blue Subsection

rather than:

First_Section
Second_Section
0.1 Red Subsection
0.2 Blue Subsection

I've tried:

\section*{First_Section}
\section*{Second_Section}
\subsection{Red Subsection}
\subsection{Blue Subsection}

but this just gives the second thing above.

Many thanks for any help with this.

Carp

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: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Subsection Numbers without preceding "0."

Post by Stefan Kottwitz »

Hi Carp,

welcome to the board!

You could try using the chngcntr package:

Code: Select all

\usepackage{chngcntr}
\counterwithout{subsection}{section}
Stefan
LaTeX.org admin
Post Reply