Page LayoutUnwanted zero in paragraph number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ozymandias
Posts: 5
Joined: Mon Oct 05, 2009 6:11 pm

Unwanted zero in paragraph number

Post by ozymandias »

Hey,

I want to number my paragraphs, so have used:

Code: Select all

\setcounter{secnumdepth}{4}
however it numbers the paragraphs in the output file as :
3.1.2.0.4

I really want it to be: 3.1.2.4

any help would be greatly appreciated,

Erik


my preamble is:

Code: Select all

\documentclass[a4paper,openright,12pt]{report}%

\usepackage[a4paper]{geometry}%
\usepackage[fleqn]{amsmath}%
\usepackage{url,amsfonts,amssymb,graphicx,layout,amsmath,cite,notoccite,fancyhdr,lscape,setspace}
\usepackage[titles]{tocloft}
\usepackage{enumerate}

\RequirePackage{ifthen}

\fancyhf{}
\pagestyle{fancy}

\geometry{left=2.54cm, right=2.54cm, top=2.54cm, bottom=2.54cm}%\setlength{\oddsidemargin}{0cm}
\raggedbottom

\graphicspath{{images/}} 

\onehalfspacing
\fancyhead{}
\fancyfoot{}

\headheight = 15pt
\headwidth = \textwidth
\fancyhead[L]{University}
\fancyhead[R]{Department}

\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{\markboth{Chapter \thechapter:\ #1}{}}

\fancyfoot[R]{\bfseries\thepage}
\fancyfoot[C]{\begin{minipage}[c]{0.7\textwidth}\begin{center}\nouppercase{\leftmark}\end{center}\end{minipage}}

\fancypagestyle{plain}{%
\headheight = 15pt
\headwidth = \textwidth
\fancyhead[L]{University}
\fancyhead[R]{Department}
\fancyfoot[R]{\bfseries\thepage}
\fancyfoot[C]{\begin{minipage}[c]{0.7\textwidth}\begin{center} \end{center}\end{minipage}}}


\setlength{\parskip}{1.5ex plus 0.5ex minus 0.2ex}
\setlength{\parindent}{0.0pt}

\renewcommand{\bibname}{References}

\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}

\renewcommand{\textfraction}{0.1}
\renewcommand{\topfraction}{0.7}
\renewcommand{\bottomfraction}{0.9}
\renewcommand{\floatpagefraction}{0.6}



\bibliographystyle{unsrt}
\begin{document}

\include{declaration}
%opening
\title{Thesis}
\author{me}

\maketitle
%\renewcommand{\@dotsep}{10000}
\abstract{Type your abstract here}

\cleardoublepage 

\pagenumbering{roman}
\renewcommand{\contentsname}{Table of Contents}
\addcontentsline{toc}{chapter}{Table of Contents}
\makeatletter \renewcommand{\cftdotsep}{10000}
\tableofcontents

\newpage
\addcontentsline{toc}{chapter}{List of Tables}  
\listoftables

\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures

\newpage

\cleardoublepage
\pagenumbering{arabic}


% Chapters
% Introduction
\include{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
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Unwanted zero in paragraph number

Post by Stefan Kottwitz »

Hi Erik,

welcome to the board!
I guess you're missing \subsubsection commands, this would match the sectioning level between \subsection and \paragraph. If you don't use \subsubsection before \paragraph the described behavior could happen.

Stefan
LaTeX.org admin
ozymandias
Posts: 5
Joined: Mon Oct 05, 2009 6:11 pm

Re: Unwanted zero in paragraph number

Post by ozymandias »

gosh, I am blind. I was so set in my mind that subsection is followed by paragraph that when I read all the pages and articles trying to solve the problem I didn't even notice the correct level structure.

thanks for your help, my life can now continue!
Post Reply