[Tex/LaTex] Changing the mini toc header title “Contents”

minitoctable of contents

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?

enter image description here

Best Answer

The titles of the sub-tocs are set with

\mtcsettitle{subtoctype}{foo}

where subtoctype is parttoc or secttoc for example and foo is the 'arbitrary' toc title.

\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
}

\mtcsettitle{secttoc}{Section Contents}

\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}
Related Question