我一直在尝试消除尾注前总是出现的空白页。
例如,在下面的代码中,我使用
\begin{document}
\clearpage{\thispagestyle{empty}\cleardoublepage}
但无济于事——
\documentclass[openany]{book}
\usepackage{color}
\usepackage{endnotes}
\let\footnote\endnote
\usepackage{chngcntr}
\counterwithin*{endnote}{chapter} % Reset endnote numbering everyv%new chapter
\usepackage{fancyhdr}
\let\latexchapter\chapter
\makeatletter %changes the catcode of @ to 11
\renewcommand\enoteheading{% changes being made here
\setcounter{secnumdepth}{-2}
\latexchapter*{\notesname\markboth{NOTES}{}}
\mbox{}\par\vskip-\baselineskip
\let\@afterindentfalse\@afterindenttrue
}
\makeatother %changes the catcode of @ back to 12
\usepackage{xparse}
\RenewDocumentCommand {\chapter}{som}{%
\IfBooleanTF{#1}
{\latexchapter*{#3}%
\setcounter{endnote}{0}%
\addtoendnotes{%
\noexpand\enotedivision{\noexpand\subsection}
{\unexpanded{#3}}}%
}
{\IfNoValueTF{#2}
{\latexchapter{#3}}
{\latexchapter[#2]{#3}}%
\addtoendnotes{%
\noexpand\enotedivision{\noexpand\subsection}
{\chaptername\ \thechapter. \unexpanded{#3}}}%
}%
}
\makeatletter
\def\enotedivision#1#2{\@ifnextchar\enotedivision{}{#1{#2}}}
\makeatletter
\begin{document}
\clearpage{\thispagestyle{empty}\cleardoublepage}
\LARGE
\chapter*{Chapter I}
\addtocontents{toc}{\vskip 4pt}
\addcontentsline{toc}{chapter}{\textbf{Chapter I.}}
This is Chapter I. Some words.\footnote{an endnote.}Some words.\footnote{an endnote.}Some words.\footnote{an endnote.}
\chapter*{}
\addtocontents{toc}{\vskip 4pt}
\addcontentsline{toc}{chapter}{\textbf{Endnotes.}}
\renewcommand{\notesname}{Endnotes} % Renames `Notes' to `Endnotes'
\addtoendnotes{\unexpanded{\enotedivision{}{}}}
\theendnotes
\end{document}
产生
接下来是一张空白页
接下来是尾注:
问题:有人能告诉我如何删除 MWE 中不需要的空白页吗?
谢谢。