Search found 5 matches

by startingalaxy
Fri Jul 20, 2012 4:54 pm
Forum: Document Classes
Topic: Problem with ToC in custom Class
Replies: 7
Views: 4741

Problem with ToC in custom Class

Never mind, It is resolved. I just had to include \setcounter{tocdepth}{2} right before \tableofcontents. Thanks anyways.
by startingalaxy
Fri Jul 20, 2012 4:30 pm
Forum: Document Classes
Topic: Problem with ToC in custom Class
Replies: 7
Views: 4741

Problem with ToC in custom Class

Hi,
Here is the minimal working example. This time without my custom class. In order to recreate the example, do the following:
1. In the following code, you will see that the depth of the second chapter is 1 (until section) and "List of tables" is displayed correctly.
2. Now set the tocdepth in ...
by startingalaxy
Thu Jul 19, 2012 11:57 pm
Forum: Document Classes
Topic: Problem with ToC in custom Class
Replies: 7
Views: 4741

Problem with ToC in custom Class

Hi,
I have one more follow up question. I actually want to restrict the appendix ToC to depth 0, and for that I do the following:


\begin{document}
\tableofcontents %(required, lower-case Roman)
\newpage
\listoftables %(if present, lower-case Roman)
\addtocontents{toc}{\protect\setcounter{tocdepth ...
by startingalaxy
Thu Jul 19, 2012 11:27 pm
Forum: Document Classes
Topic: Problem with ToC in custom Class
Replies: 7
Views: 4741

Re: Problem with ToC in custom Class

Great! solved....
Cant thank you enough!!
by startingalaxy
Thu Jul 19, 2012 9:12 pm
Forum: Document Classes
Topic: Problem with ToC in custom Class
Replies: 7
Views: 4741

Problem with ToC in custom Class

I am having a very strange problem with \tableofcontents . Here is my code.
\documentclass[12pt]{thesis} %12pt is larger than 11pt
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}

\begin{document}
\tableofcontents
\chapter{Introduction}
\section{sec 1}
\subsection{subsec 1}
\subsection{subsec ...