Featured Book

LaTeX Beginners Guide

Who is online

In total there are 36 users online :: 3 registered, 0 hidden and 33 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], Yahoo [Bot] and 33 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

subsubsections won't number themselves Topic is solved

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

subsubsections won't number themselves

Postby cvp on Thu Sep 4th, 2008

Even when explicitly defining...
Code: Select all  •  Open in writeLaTeX
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0pt}{6pt}{6pt}{\large\bfseries}}
\renewcommand{\thesubsubsection}{\arabic{subsubsection}. }
\setcounter{subsubsection}{0
}%

...my subsubsections will still not number themselves.

For example, with:
Code: Select all  •  Open in writeLaTeX
\subsubsection{a subsubsection}
This is a subsubsection.

All I get is:
a subsubsection

This is a subsubsection.


When what I want is:
1. a subsubsection

This is a subsubsection.


Any ideas as to what could be causing this?

Thanks,
-cvp
cvp
 
Posts: 11
Joined: Wed Jul 30th, 2008

Re: subsubsections won't number themselves  Topic is solved

Postby gmedina on Thu Sep 4th, 2008

Hi cvp,

add in the preamble
Code: Select all  •  Open in writeLaTeX
\setcounter{secnumdepth}{3}

to include subsubsections in the table of contents you will have to add also the line
Code: Select all  •  Open in writeLaTeX
\setcounter{tocdepth}{3}


As you can guess from my response, the standard behaviour is to number and to include in the ToC only sectional units with depth less than or equal to two (i.e., up to subsections). Incrementing the counters will number (include in the ToC) sectional units of higher depth.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
gmedina
 
Posts: 2313
Joined: Wed Jul 11th, 2007
Location: Colombia

Re: subsubsections won't number themselves

Postby cvp on Fri Sep 5th, 2008

Code: Select all  •  Open in writeLaTeX
\setcounter{secnumdepth}{3}

That did it. Knew I forgot something (tocdepth was already 3).
Thanks!

-cvp
cvp
 
Posts: 11
Joined: Wed Jul 30th, 2008

Re: subsubsections won't number themselves

Postby mahdi-me on Sat Jun 9th, 2012

gmedina wrote:Hi cvp,

add in the preamble
Code: Select all  •  Open in writeLaTeX
\setcounter{secnumdepth}{3}

to include subsubsections in the table of contents you will have to add also the line
Code: Select all  •  Open in writeLaTeX
\setcounter{tocdepth}{3}


As you can guess from my response, the standard behaviour is to number and to include in the ToC only sectional units with depth less than or equal to two (i.e., up to subsections). Incrementing the counters will number (include in the ToC) sectional units of higher depth.


That is worked for me. This is the best forum in subject of latex.
Best wish.
mahdi-me
 
Posts: 4
Joined: Mon Feb 27th, 2012


Return to General

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], Yahoo [Bot] and 33 guests