Follow-up to Incorrect Linking with minitoc and hyperref.
MWE:
\documentclass{article}
%font
\usepackage{mathpazo}
\usepackage[english]{babel}
%change TOC header
\addto\captionsenglish{% Replace "english" with the language you use
\renewcommand{\contentsname}%
{Table of Contents}%
}
%remove numbering from TOC
\setcounter{secnumdepth}{0}
%omit subsections and lower levels from base TOC
\setcounter{tocdepth}{1}
%mini TOCs in each section
\usepackage{minitoc}
%make TOC headers links, including minitoc subsections
\usepackage[bookmarks,bookmarksopen,bookmarksdepth=2]{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=blue,
urlcolor=blue
}
\begin{document}
\begin{center}
\textbf{Title}
\end{center}
\dosecttoc
\tableofcontents
\newpage
\section{Sect1}
\secttoc
\subsection{Sub1}
Stuff
\newpage
\section{Sect2}
\secttoc
\subsection{Sub2}
Stuff2
\newpage
\section{Test}
\end{document}
I understand that every time I do secttoc
, I get a section table of contents. Is there any way I can change the title of this section TOC from "Contents" to "Section Contents," i.e., the part in blue below?
Best Answer
The titles of the
sub
-tocs are set withwhere
subtoctype
isparttoc
orsecttoc
for example andfoo
is the 'arbitrary' toc title.