Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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}
- 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}
- documentclass[10pt, a4paper]{report}
- usepackage{shorttoc}
- renewcommand*contentsname{Contents (detailed)}
- begin{document}
- shorttoc{Contents}{1} % Only sections
- tableofcontents
- documentclass[10pt, a4paper]{report}
- usepackage{shorttoc}
- usepackage{hyperref}
- renewcommand*contentsname{Contents (detailed)}
- begin{document}
- pdfbookmark[1]{Contents}{toc}
- shorttoc{Contents}{1}
- cleardoublepage
- pdfbookmark[1]{Contents (detailed)}{toc (detailed)}
- tableofcontents
- {expandafterdefcsname @starttocendcsname#1{InputIfFileExists{jobname.#1}{}{}}%
- tableofcontents}
- documentclass{report}
- usepackage{hyperref}
- begin{document}
- setcounter{tocdepth}{1}
- setcounter{secnumdepth}{3}
- {expandafterdefcsname @starttocendcsname#1{InputIfFileExists{jobname.#1}{}{}}%
- 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}
- documentclass{report}
- usepackage{etoc}
- setcounter{tocdepth}{3}
- usepackage{hyperref}
- begin{document}
- etocsetnexttocdepth{section}
- tableofcontents
- renewcommand*contentsname{Contents (detailed)}
- 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}
Add Comment
Please, Sign In to add comment