Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

settocdepth has no effect

151 views
Skip to first unread message

Christopher Culver

unread,
May 19, 2012, 4:32:43 PM5/19/12
to
I want to redefine the ToC depth for the back matter of my document, so
that the ToC does not list the myriad \section{} headings in my
Appendix. I am using memoir class, but I also have the tocvsec2 package
at my disposal. However, no matter where I place the \settocdepth{}
command, the ToC is still overdetailed. Where do I need to put this
document for it to work?

(Also, it's worth mentioning that the documention for tocvsec2 instructs
the user to type things like \settocdepth{chapter}, but in practice the
command fails if a numerical argument isn't provided.)

Posting a minimal example for this would be near-impossible, but here is
what is after \begin{document} in my main file:

\begin{document}
\maketitle
\thispagestyle{empty}
\frontmatter
\tableofcontents
\input{acknowledgements}
\printnomenclature
\mainmatter
\setcounter{secnumdepth}{3} % Number subsections too
\input{introduction}
\input{cvgeneral}
\input{cvdirection}
\input{cvmanner}
\input{cvvelocity}
\input{cvconverbs}
\input{chmgeneral}
\input{chmdirection}
\input{chmmanner}
\input{chmvelocity}
\input{chmconverbs}
\input{interaction}
\input{conclusion}
\backmatter
\setcounter{tocdepth}{0}
\SingleSpacing
\appendix
\appendixpage
\input{osipova}
\printbibliography
\end{document}

jon

unread,
May 21, 2012, 11:11:19 PM5/21/12
to
On May 19, 4:32 pm, Christopher Culver
<crcul...@christopherculver.com> wrote:
> I want to redefine the ToC depth for the back matter of my document, so
> that the ToC does not list the myriad \section{} headings in my
> Appendix. I am using memoir class, but I also have the tocvsec2 package
> at my disposal. However, no matter where I place the \settocdepth{}
> command, the ToC is still overdetailed. Where do I need to put this
> document for it to work?
>
> (Also, it's worth mentioning that the documention for tocvsec2 instructs
> the user to type things like \settocdepth{chapter}, but in practice the
> command fails if a numerical argument isn't provided.)
>
> Posting a minimal example for this would be near-impossible, but here is
> what is after \begin{document} in my main file:

i think a minimal example is not as hard to provide as you suggest.
does this work for you:

\documentclass[12pt, openany]{memoir}
% \usepackage{tocvsec2}
\setsecnumdepth{subsection}% normally number to \subsection
\begin{document}
\settocdepth{chapter}% preamble: only \chapter in toc
\thispagestyle{empty}
\frontmatter
\tableofcontents
\chapter{preface}
\section{section in preface}
\mainmatter
\settocdepth{subsection}% mainmatter: up to \subsection in toc
\maxsecnumdepth{subsection}% mainmatter: numbered \subsection
\chapter{introduction}
\section{A Section}
\subsection{A Subsection}
\chapter{cvgeneral}
\section{A Section}
\subsection{A Subsection}
\backmatter
\appendix
\appendixpage
\settocdepth{chapter}% only give \chapter in toc
\chapter{osipova}
\section{A Section}
\subsection{A Subsection}
\chapter{osipova2}
\section{A Section}
\subsection{A Subsection}
\end{document}

as far as i can tell, you are using memoir, which means you don't
really need to load tocvsec2. for me i get numbered subsections in the
toc for the mainmatter, but only unnumbered chapters in the toc for
the front- and backmatter.

cheers,
jon.
0 new messages