4

I want the outlook to be:

1 Introduction (section) 1.1 first subsection 1.2 second subsection.. etc

2 Chapter 2 (section) 2.1 subsection etc

But LaTeX is outputting

1.1 Introduction 1.1.1 subsection

1.2 Chapter 2 1.2.1 subsection

How do I fix my preamble?

Addendum Heres the preamble so far:

\documentclass[12pt, onesided]{report} 
\usepackage{geometry} 
\geometry{letterpaper} 
\usepackage{graphicx} 
\usepackage{amssymb} 
\setcounter{tocdepth}{6} 
\setcounter{secnumdepth}{6} 
\setcounter{chapter}{1}
7
  • 1
    could you provide a Minimal working example? looks like you might use the wrong documentclass to get this by default
    – Rico
    Sep 14, 2013 at 10:31
  • 3
    I guess you are working with a document class which provides the level chapter like report or book. If you want to avoid this level you can use a document class based on article. Sep 14, 2013 at 10:36
  • looks like you need the chngcntr package. this question gives good information on how to use it. Sep 14, 2013 at 13:45
  • @MarcoDaniel -- i'd agree with your comment except that the examples explicitly contain "Chapter 2". Sep 14, 2013 at 13:47
  • Heres the preamble so far:\documentclass[12pt, onesided]{report} \usepackage{geometry} \geometry{letterpaper} \usepackage{graphicx} \usepackage{amssymb} \setcounter{tocdepth}{6} \setcounter{secnumdepth}{6} \setcounter{chapter}{1}
    – Sabrina
    Sep 14, 2013 at 15:39

1 Answer 1

6

From the comments, you are using report (by the way, the class option is oneside and not onesided), so your higher sectional unit (assuming you won't be using \part) should be produced with \chapter; lower sectional units can be produced using \section, \subsection, \subsubsection, paragraph and \subparagraph (each one of these has its counter subordinated to the counter of the unit immediately above):

\documentclass[12pt,oneside]{report}

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

\begin{document}

\chapter{Introduction}
\section{A test section}
\subsection{A test subsection}
\subsubsection{A test subsubsection}
\paragraph{A test paragraph}
\subparagraph{A test subparagraph}
\subsection{Another test subsection}
\section{Another test section}

\chapter{Another test chapter}
\section{A test section}
\section{Another test section}
\subsection{A test subsection}
\subsection{Another test subsection}

\end{document}

enter image description here

Perhaps you want to change the way chapter titles are formatted by suppressing the word "chapter" and placing the title in the same line with the number? If this is so, the titlesec package can do the job for you:

\documentclass[12pt,oneside]{report}
\usepackage{titlesec}

\titleformat{\chapter}[block]
  {\normalfont\huge\bfseries}{\thechapter}{20pt}{}
\titlespacing*{\chapter}
  {0pt}{20pt}{20pt}

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

\begin{document}

\chapter{Introduction}
\section{A test section}
\subsection{A test subsection}
\subsubsection{A test subsubsection}
\paragraph{A test paragraph}
\subparagraph{A test subparagraph}
\subsection{Another test subsection}
\section{Another test section}

\chapter{Another test chapter}
\section{A test section}
\section{Another test section}
\subsection{A test subsection}
\subsection{Another test subsection}

\end{document}

enter image description here

Another option, would be to use article instead of report and \section, \subsection, \subsubsection, \paragraph and \subparagraph (there's no \chapter in article).

1
  • +1 for suggesting the use of the article document class. :-)
    – Mico
    Sep 14, 2013 at 16:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .