3

In the MWE below I'm trying to typeset a citation embedded in a footnote with the BibLaTeX style footnote-dw. All's well if I do not load the package eledmac. As soon as I do, the citation within the footnote issues another footnote (not typeset anymore), whereas I want the citation in the same footnote where it was originally issued. But I need eledmac, together with eledpar, for my "real-life" document, and the facilities of the footnote-dw package are so well-tuned to my requirements that I would like to keep it. Is there a way to circumvent this conflict?

\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}
  • 2
    It's too late for me to explore the deeper interactions, but the basic problem is that the \iffootnote test is failing (presumably because \eledmac does complex things to footnotes that biblatex doesn't understand/know. Workaround: put a \toggletrue{blx@footnote} before your \cite{RefB}. – jon Jan 16 '15 at 6:59
  • @jon: You are right: it works. As you say, it is more of a workaround than of a full-fledged solution, though. – Marcos Jan 16 '15 at 7:14
  • 1
    Indeed, as @moewe and @jon said the problem is that eledmac change the definition of \@footnotetxt. Biblatex takes care to this modification, but use a way which can't work when also using memoir (limit of the patchcmd command). So I have changes the way eledmac patches the footnote commands. Could you try the branch issue232 ? the handbook is at github.com/maieul/ledmac#debug. – Maïeul Jan 16 '15 at 10:31
2

The new version 1.16.0 of eledmac (now in CTAN) solves this issue.

1

It seems that eledmac changes the definitions of the \footnote commands (especially \@footnotetext) in a way that biblatex cannot change it to include \toggletrue{blx@footnote}, but we can do that for biblatex with a few lines of code

\makeatletter
\pretocmd{\@footnotetext}{\toggletrue{blx@footnote}}{}{}
\makeatother

MWE

\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}

enter image description here

  • this patchs has a problem : the \toggletrue{blx@footnote} is added outside of the begin@color group, and I am afraid by some boarding effects. – Maïeul Jan 16 '15 at 10:44
  • @Maïeul: Shall I wait for further news from you before accepting any answer? The toggle works but I understand that, as it is so far, it is just a workaround until becoming fully integrated in the eledmac package itself. – Marcos Jan 16 '15 at 13:26
  • yes, you should. I have posted a comment after your question, to ask you to try new version of eledmac (in dev). – Maïeul Jan 16 '15 at 13:29
  • @Maïeul: I'm afrid I cannot proceed now, but I'll go asap today. Thanks so much. – Marcos Jan 16 '15 at 13:39
  • there is no emergency :) – Maïeul Jan 16 '15 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.