See the min expl below. I would like to have two ToC: one giving only the rough structure of the document and a second one giving all the details down to subsubsections. The code pasted below should do just that but the second ToC is not displayed which I do not understand.
\documentclass{report}
\begin{document}
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{3}
\tableofcontents
\renewcommand*\contentsname{Contents (detailed)}
\setcounter{tocdepth}{3}
\tableofcontents
\chapter{XXX}
\section{YYY}
\subsection{WER}
\subsubsection{ABC}
\subsubsection{DEF}
\subsection{ZTR}
\subsubsection{OIU}
\subsubsection{OIZ}
\subsubsection{POI}
\section{YYY}
\subsection{WER}
\subsubsection{EDC}
\subsubsection{RFV}
\subsection{TGB}
\subsubsection{ZHN}
\subsubsection{OUH}
\subsubsection{WEK}
\chapter{ZZZ}
\chapter{AAA}
\end{document}
Just noticed there is still a problem with hyperref:
\documentclass[10pt, a4paper]{report}
\usepackage{shorttoc}
\usepackage{hyperref}
\begin{document}
\setcounter{secnumdepth}{3}
\pdfbookmark[1]{Contents}{toc}
\shorttoc{Contents}{1}
\pdfbookmark[1]{Contents (detailed)}{toc}
\shorttoc{Contents (detailed)}{3}
\tableofcontents
\chapter{XXX}
\section{YYY}
\subsection{WER}
\subsubsection{ABC}
\subsubsection{DEF}
\subsection{ZTR}
\subsubsection{OIU}
\subsubsection{OIZ}
\subsubsection{POI}
\section{YYY}
\subsection{WER}
\subsubsection{EDC}
\subsubsection{RFV}
\subsection{TGB}
\subsubsection{ZHN}
\subsubsection{OUH}
\subsubsection{WEK}
\chapter{ZZZ}
\chapter{AAA}
\end{document}
By what does {toc} has to be replaced in the second \pdfbookmark? [Sorry, had problem with editing the above comment --> administrator please delete it!]