Page LayoutSubsubsections titles not visible in ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Abel
Posts: 5
Joined: Tue Apr 10, 2012 9:41 am

Subsubsections titles not visible in ToC

Post by Abel »

Hello everyone,

I encountered the following problem:

After inserting a ToC into my file, the subsubsections are listed in the ToC but without their titles. Basically just the usual dotted line and the page numbers are visible.

I tried to change the tables depth with '\setcounter{tocdepth}{3}', but that didnt seem to have an effect.
The numbering depth however can be changed through '\setcounter{secnumdepth}{3}'.

My questions are now:
- Do I have to add a specific label for a subsubsection to see its title in the ToC? Or should these titles usually be visible if subsubsections are listed in the ToC?
- What could be the problem that the ToC depth changes are not working? I inserted the lines before the '\begin{document}' and the class I am using was originally not working with a ToC and should therefore to my understanding not intervene with these settings.

Thanks for any help,
Abel

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Subsubsections titles not visible in ToC

Post by Stefan Kottwitz »

Hi Abel,

welcome to the board!

How do you create your subsubsections? The problem can be caused by using the optional argument for \subsubsection but letting it empty, such as

Code: Select all

\subsubsection[]{Heading text}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The optional argument goes to the ToC, if specified. In this case, just remove the square brackets and simply write

Code: Select all

\subsubsection{Heading text}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
Abel
Posts: 5
Joined: Tue Apr 10, 2012 9:41 am

Re: Subsubsections titles not visible in ToC

Post by Abel »

Thanks for welcoming me and the fast reply.

I inserted the subsubsections with '\subsubsection{Title}' without the optional argument.

But thats exactly how the subsubs are listed in the ToC, without or with an empty label. If I wanted to get this deliberately, was there a way to define this in the class, that just levels 1 and 2 get a title and the third level doesn't?

Abel
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Subsubsections titles not visible in ToC

Post by Stefan Kottwitz »

Hard to say without further information. Which class do you use? Is it a standard class, or publicly available? Otherwise perhaps post it as attachment to a forum post, if the class is not confidential.

Stefan
LaTeX.org admin
Abel
Posts: 5
Joined: Tue Apr 10, 2012 9:41 am

Subsubsections titles not visible in ToC

Post by Abel »

It't the apa6 class, as available on http://www.ctan.org/pkg/apa6.

The class usually uses no ToC, which is why I added it myself and initially thought the class should not intervene with it. But as \setcounter{tocdepth}{3} seems to have no effect I begin to think it might still be a problem caused by the class.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Subsubsections titles not visible in ToC

Post by Stefan Kottwitz »

It works with apa6, I tested it:

Code: Select all

Code, edit and compile here:
\documentclass{apa6}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\begin{document}
\tableofcontents
\section{A section}
\subsection{A subsection}
\subsubsection{A subsubsection}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output:
apa6-example.png
apa6-example.png (3.77 KiB) Viewed 9574 times
Perhaps post a Infominimal working example, as I did above, which is compilable and shows the undesired output.

Stefan
LaTeX.org admin
Abel
Posts: 5
Joined: Tue Apr 10, 2012 9:41 am

Subsubsections titles not visible in ToC

Post by Abel »

Just tried it with the following, and it didn't work:
(I need the manuscript layout ('man') of the class and the apacite package to manage the references.)

Code: Select all

Code, edit and compile here:
\documentclass[man, 12pt, apacite]{apa6}
\title{main title}
\usepackage{apacite}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\begin{document}
\section{Section 1}
\subsection{Subsection A}
\subsubsection{Subsubsection I}
\tableofcontents
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
which results in:
Image

Abel
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Subsubsections titles not visible in ToC

Post by Stefan Kottwitz »

With this, code, I got the error

Code: Select all

! Undefined control sequence.
<argument> \@shorttitle
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
which can be fixed by using additionally using \shorttitle, and the following output:
apa6-example-2.png
apa6-example-2.png (5.22 KiB) Viewed 9566 times
So the code is working as expected. There might be something wrong with your version of the document class. Note, also the numbering of your subsubsection is different, the number is placed at the end of the heading, not at the beginning. Check if you use the current version or the version which is on CTAN, respectively.
Perhaps post your .log file as attachment.

Stefan
LaTeX.org admin
Abel
Posts: 5
Joined: Tue Apr 10, 2012 9:41 am

Subsubsections titles not visible in ToC

Post by Abel »

Thanks a lot!

The problem seems to have been that I used an older Version of the apa6 class from February. After installing the newest Version from the 4th of April it worked.

The titles are shown in the ToC and the numbering changed to that in your example. It also doesn't ignore the \setcounter{tocdepth}{3} anymore.
Post Reply