我正在使用该etoc
包在部分范围内打印本地目录,但存在一个问题:我的文档末尾有一个全局参考书目,它不应该属于最后一部分,但它确实出现在该部分的本地目录中。我该如何从本地目录中删除参考书目?
我发现了类似的问题(这里, 和这里),但这些解决方案对我而言不起作用,因为我只想从本地删除参考书目条目,而不是从全局目录中删除。
以下是 MWE:
\documentclass{scrbook}
\usepackage{etoc}
\usepackage{biblatex}
% Set the style for chapter entries
\etocsetstyle{chapter}%
{\begingroup
\parindent 0pt \parskip 0pt}%
{\leftskip 0pt}%
{\makebox[.5cm]{}%
\hangindent=0.5cm
\etoclink{\etocthename}\nobreak\hbox{\hbox to 1.5ex {\hss\hss}}%
\hfill\makebox[5mm][l]{\etocpage}\nobreak%
\par}%
{\endgroup}%
% Set the style for section entries
\etocsetstyle{section}%
{\begingroup
\parindent 20pt \parskip 0pt}%
{\leftskip 0pt}%
{\makebox[.5cm]{}%
\hangindent=0.5cm
\etoclink{\etocthename}\nobreak\hbox{\hbox to 1.5ex {\hss\hss}}%
\hfill\makebox[5mm][l]{\etocpage}\nobreak%
\par}%
{\endgroup}%
% Set the style for subsection entries
\etocsetstyle{subsection}%
{\begingroup
\parindent 40pt \parskip 0pt}%
{\leftskip 0pt}%
{\makebox[.5cm]{}%
\hangindent=0.5cm
\etoclink{\etocthename}\nobreak\hbox{\hbox to 1.5ex {\hss\hss}}\hfill\nobreak%
\par}%
{\endgroup}%
\begin{filecontents}{\jobname.bib}
@misc{ABC01,
author = {Author, A. and Buthor, B. and C},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\tableofcontents
\part{First Part}
\localtableofcontents
\chapter{Chapter 1}
\section{Section 1}
\section{Section 2}
\cite{ABC01}
\printbibliography[heading=bibintoc]
\end{document}