在下面的 MWE 中,我尝试使用 BibLaTeX 样式排版嵌入脚注中的引文footnote-dw
。如果我不加载包,一切都会好起来eledmac
。一旦我这样做,脚注中的引文就会发出另一个脚注(不再排版),而我希望引文位于最初发出的同一脚注中。但是我需要eledmac
和一起eledpar
用于我的“真实”文档,并且footnote-dw
包的功能非常适合我的要求,所以我想保留它。有没有办法避免这种冲突?
\RequirePackage{filecontents}
\begin{filecontents}{Biblio.bib}
@BOOK{RefA,
author = {AuthorA},
title = {TitleA},
publisher = {PubA},
year = {1900},
}
@BOOK{RefB,
author = {AuthorB},
title = {TitleB},
publisher = {PubB},
year = {1800},
}
\end{filecontents}
\documentclass{memoir}
\usepackage{eledmac} %<- Comment to avoid issue
%\usepackage{eledpar}
\usepackage[
style = footnote-dw,
pageref = true,
xref=true,
backend = biber
]{biblatex}
\addbibresource{Biblio.bib}
\begin{document}
This is plain filler\cite{RefA} and further on
now with a footnote\footnote{A text with a citation to be typeset here \cite{RefB}.
But how?}
\end{document}
答案1
eledmac 的新版本 1.16.0(现在在 CTAN 中)解决了这个问题。
答案2
似乎eledmac
改变了命令的定义\footnote
(尤其是\@footnotetext
),但biblatex
不能改变它以包含,但我们可以用几行代码\toggletrue{blx@footnote}
来做到这一点biblatex
\makeatletter
\pretocmd{\@footnotetext}{\toggletrue{blx@footnote}}{}{}
\makeatother
平均能量损失
\documentclass{memoir}
\usepackage{eledmac}
%\usepackage{eledpar}
\usepackage[
style = footnote-dw,
pageref = true,
xref=true,
backend = biber
]{biblatex}
\makeatletter
\pretocmd{\@footnotetext}{\toggletrue{blx@footnote}}{}{}
\makeatother
\addbibresource{biblatex-examples.bib}
\begin{document}
This is plain filler\cite{wilde} and further on
now with a footnote\footnote{A text with a citation to be typeset here \cite{cicero}. But how?}
\end{document}