Text FormattingLeading zeros in sections headers

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
colsandurz
Posts: 4
Joined: Wed Mar 04, 2009 10:35 pm

Leading zeros in sections headers

Post by colsandurz »

Hi everyone,

I have this strange problem I can't solve. When I write my TOC file like below

Code: Select all

 
\contentsline {section}{\numberline {1}Abstract}{2}
\contentsline {section}{\numberline {2}Introduction}{3}
\contentsline {section}{\numberline {3}Background}{4}
\contentsline {subsection}{\numberline {3.1}Open Source}{11}
\contentsline {section}{\numberline {4}Software License Enforceability}{20} 
The numbering in my table of contents is fine, but when I go to the abstract I see
0.1 Abstract
here is what I have in the .tex

Code: Select all

\documentclass[11pt]{report}
\pagestyle{plain}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{tocloft}

\begin{document}

\begin{center}
\begin{Huge}
The Affects of Open Source Software Licenses on Business Software \\ [4ex]
\end{Huge}

\newpage

\section{Abstract}

This project investigates open and closed source licenses and how each style of license changes the way business is done.   We look at: License violations and also considered and techniques for reducing violations,  why businesses use closed source and open source licenses, and  what Intellectual property rights businesses and individuals have in open source licenses.   We show that open licenses are be easier to enforce, but require a different business model and show how piracy can be effectively reduced.
\newpage

\tableofcontents
\newpage

\doublespacing

\newpage

\section{Introduction}

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Leading zeros in sections headers

Post by localghost »

It seems that you don't need chapters. In this case just switch to the article class. You may take a look at according classes from KOMA Script and memoir. And you don't need to write your ToC manually when using already the \tableofcontents command.


Best regards and welcome to the board
Thorsten¹
colsandurz
Posts: 4
Joined: Wed Mar 04, 2009 10:35 pm

Re: Leading zeros in sections headers

Post by colsandurz »

Thanks a lot. That was really helpful.
Post Reply