ミニ ToC からこのタイトルを削除するにはどうすればいいですか?

ミニ ToC からこのタイトルを削除するにはどうすればいいですか?

2 つのミニ ToC から「Whatever it is」を削除するにはどうすればよいでしょうか? (メインの ToC には残しておきたいのですが)

\documentclass[notoc]{tufte-book}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\begin{document}

\tableofcontents
\chapter{Introduction}

\startcontents[chapters]
\printcontents[chapters]{}{1}{}

\section{Historical Overview}
\section{The CUDA Model}
\section{A Lattice Boltzmann Solver}

\stopcontents[chapters]% doesn't work
\addtocontents{toc}{Whatever it is\endgraf}
\resumecontents[chapters]% doesn't work

\chapter{Foo Bar}
\startcontents[chapters]
\printcontents[chapters]{}{1}{}
\section{My Overview}
In this chapter we first...
\end{document}

答え1

ToC 内の「ランダム テキスト」を、何らかのセクション単位として関連付ける方が適切です。 、、... のようにchaptersection次のように呼びますspecial

ここに画像の説明を入力してください

ここに画像の説明を入力してください

ここに画像の説明を入力してください

\documentclass[notoc]{tufte-book}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\makeatletter
\newcommand{\l@special}[2]{#1\endgraf}
\makeatother

\begin{document}

\tableofcontents
\chapter{Introduction}

\startcontents[chapters]
\printcontents[chapters]{}{1}{}

\section{Historical Overview}
\section{The CUDA Model}
\section{A Lattice Boltzmann Solver}

\stopcontents[chapters]
\addcontentsline{toc}{special}{Whatever it is}
\resumecontents[chapters]

\chapter{Foo Bar}
\startcontents[chapters]
\printcontents[chapters]{}{1}{}
\section{My Overview}
In this chapter we first...
\end{document}

\l@specialToC 内の特別なエントリを処理するように定義します...この場合、そこに含まれる内容をそのまま記述します。

関連情報