Eledmac:指向目录的超链接会生成附加页面

Eledmac:指向目录的超链接会生成附加页面

我正在编写一个评论版,其中包含每个页面上的目录链接。当我在 eledmac 中执行此操作时,表格附近会出现其他页面:

\documentclass{book}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{eledmac}

\title{Example}
\author{Name}
\date{}

\begin{document}
\frontmatter
\maketitle

\thispagestyle{empty}
\begin{centering}
\copyright \the\year\\
\end{centering}

\clearpage
\phantomsection
\hypertarget{contents}{}
\tableofcontents

\mainmatter
\chapter{Here's a text}
\section{Section one}
\lipsum
\hyperlink{contents}{Contents}
\end{document}

此外,目录的链接位于目录之前的额外页面上。\usepackage{eledmac}注释掉后,文档可以完美编译,并且表格位于最近的奇数页面上。

这看起来我缺少了一些基本的东西。

相关内容