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.