LaTeX forum ⇒ Generalsubsubsections won't number themselves Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
cvp
Posts: 11
Joined: Wed Jul 30, 2008 11:49 pm

subsubsections won't number themselves

Postby cvp » Thu Sep 04, 2008 4:07 am

Even when explicitly defining...
  1. \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0pt}{6pt}{6pt}{\large\bfseries}}
  2. \renewcommand{\thesubsubsection}{\arabic{subsubsection}. }
  3. \setcounter{subsubsection}{0}%

...my subsubsections will still not number themselves.

For example, with:
  1. \subsubsection{a subsubsection}
  2. 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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm
Location: Colombia

Postby gmedina » Thu Sep 04, 2008 4:18 am

Hi cvp,

add in the preamble
  1. \setcounter{secnumdepth}{3}

to include subsubsections in the table of contents you will have to add also the line
  1. \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,...

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

cvp
Posts: 11
Joined: Wed Jul 30, 2008 11:49 pm

Postby cvp » Fri Sep 05, 2008 2:12 am

  1. \setcounter{secnumdepth}{3}

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

-cvp

Link:
BBcode:
HTML:
Hide post links
Show post links

mahdi-me
Posts: 4
Joined: Mon Feb 27, 2012 3:28 pm

Postby mahdi-me » Sat Jun 09, 2012 2:25 pm

gmedina wrote:Hi cvp,

add in the preamble
  1. \setcounter{secnumdepth}{3}

to include subsubsections in the table of contents you will have to add also the line
  1. \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.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests