\documentclass[ebook,12pt,oneside,openany]{memoir}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{xurl}
\usepackage{lipsum}
\usepackage[backend = biber,url= false,style=numeric,sorting=none, natbib=true]{biblatex}
\addbibresource{test.bib}
\usepackage[hyperindex=true]{hyperref}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = blue, %Colour for external hyperlinks
linkcolor = blue, %Colour of internal links
citecolor = red %Colour of citations
}
\title{Test}
\author{Author}
\date{}
\begin{document}
\maketitle
\frontmatter
\tableofcontents \newpage
\mainmatter
\pagenumbering{arabic}
\chapter{New Chapter}
\lipsum
\newpage
I am citing a book\cite{ABC:2019} that contains \footnote{sample footnote}.
\printbibliography
\backmatter
\end{document}
test.bib文件如下。
@book{ABC:2019,
author={ABC},
title={Test},
publisher={T},
year={2019}
}
我正在使用 tex4ebook 创建 epub 文件。单击书目条目时,会打开章节的第一页而不是参考书目。
.mk4 文件是
Make:add("biber","biber ${input}")
Make:htlatex {}
Make:biber {}
Make:htlatex {}
Make:htlatex {}
.cfg 文件是
\Preamble{xhtml}
\makeatletter
\@ifpackageloaded{hyperref}{%
\ifHy@hyperfootnotes
\newcounter{Hfootnote}
\fi
}{}
\makeatother
\begin{document}
\EndPreamble
另一方面,如果我\footnote{}
从“ I am citing a book\cite{ABC:2019} that contains \footnote{sample footnote}
”行中删除,bib 条目超链接就可以正常工作。