# Changing the mini toc header title “Contents”

Follow-up to Incorrect Linking with minitoc and hyperref.

MWE:

\documentclass{article}

%font
\usepackage{mathpazo}

\usepackage[english]{babel}

\addto\captionsenglish{% Replace "english" with the language you use
\renewcommand{\contentsname}%
}

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

\usepackage[bookmarks,bookmarksopen,bookmarksdepth=2]{hyperref}
\hypersetup{
citecolor=black,
filecolor=black,
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?

• \mtcsettitle{secttoc}{Section Contents} ;-) – user31729 Nov 17 '15 at 22:03
• I suggest to change the title and the tag, since this is not related to the titletoc package and as of now misleading – user31729 Nov 17 '15 at 22:06
• @ChristianHupfer I wouldn't know what to change it to, to be honest. I haven't even heard of mtcsettitle before today. – Clarinetist Nov 17 '15 at 22:07
• See page 42 of the current manual (there has been a package update some months ago) (And I have to admit, that it is a little bit hard to read that manual ;-)). And I changed the title and tags as a proposition – user31729 Nov 17 '15 at 22:10
• Related question with an accepted answer tex.stackexchange.com/q/312979/92041 – edison23 Aug 18 '17 at 14:29

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}

\addto\captionsenglish{% Replace "english" with the language you use
\renewcommand{\contentsname}%
}

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

\usepackage[bookmarks,bookmarksopen,bookmarksdepth=2]{hyperref}
\hypersetup{
citecolor=black,
filecolor=black,
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}