更改迷你目录标题“内容”

更改迷你目录标题“内容”

后续行动minitoc 和 hyperref 链接不正确

梅威瑟:

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

我知道每次我这样做时secttoc,我都会得到一个部分目录。有什么方法可以将此部分目录的标题从“目录”更改为“部分目录”,即下面蓝色的部分?

在此处输入图片描述

答案1

-tocs的标题sub设置为

\mtcsettitle{subtoctype}{foo}

其中subtoctypeparttocsecttoc例如foo是“任意”目录标题。

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

相关内容