In the context of the scholarly apparatus package ednotes I would like to create a customized \Bnote which behaves like a normal LaTeX footnote; i.e., I would like to enter into the body of the text something like

blah blah.\Bnote{a}{This is the footnote text.} Blah blah blah...

And the footnote would appear below the \Anote layer and would look something like

a This is the footnote text.

Within the ednotes.sty file there are a number of commands that can be modified to customize \Bnote, but I haven't been able to see how to get this behavior. Why, you ask, do I not just use the standard footnote utility? Because it comes out ABOVE the \Anote layer. Just to be clear, the default behavior in ednote that I am trying to override is using the line number as the footnote reference.

I am using LuaLaTeX and TeXShop.


I suspect that it is possible to create a hack that puts "normal" footnotes below the "apparatus" notes of ednotes. As I don't know how to do that, here's a second-best solution that

  • removes the line numbers from and changes the mark format of \Bnote;

  • defines a new macro \Bfootnote that tinkers with the footnote counter to produce (hopefully) correct automatic numbering of "apparatus B" notes.




%  \renewcommand*{\linesfmt}[1]{\textbf{##1}\enspace}% DELETED
  \renewcommand*{\linesfmt}[1]{}% NEW
  \renewcommand*{\pageandline}[2]{##1.##2}% ##1 page, ##2 line.
  \renewcommand*{\repeatref}[1]{##1}% E.g., ...
  \renewcommand*{\repeatref}[1]{\textnormal{/}}% ... instead.
%  \renewcommand{\lemmafmt}[1]{##1\thinspace]\enskip}% DELETED
      {\stepcounter{footnote}\textsuperscript{##1}\addtocounter{footnote}{-1}}% NEW



\null\vfill% just for the example

Some text \Anote{a}{An apparatus A note.}.

Some text.\Bfootnote{An apparatus B note that behaves like a normal footnote.}

Some text.\Bfootnote{And another one.}


enter image description here

  • It will take me a while to digest all that, but it looks like exactly what I want! Thank you. Aug 30 '12 at 14:04
  • @PaulDulaney In that case, consider to accept my answer after a while if no better answer comes along. :-)
    – lockstep
    Aug 30 '12 at 15:37
  • 3
    Thanks for reminding me of the "accept" feature; I have gone back to accept answers to my two previous questions. I'll be sure to revisit this one later. Aug 30 '12 at 17:02
  • After reading up on \makeatletter and \makeatother, it seems to me that they are serving no purpose in this example. Is that correct? Aug 31 '12 at 17:11
  • @PaulDulaney Correct -- obviously, I tried and eventually rejected some code snippets which required it. Example corrected.
    – lockstep
    Aug 31 '12 at 17:13

In the meantime I (ednotes's author) have told by mail: ednotes uses manyfoot as "footnote engine". ednotes's setup of footnote layers uses manyfoot's setup to create layers of footnotes without footnote marks. To get the footnote marks "back", I think one should not try from within ednotes, better use manyfoot directly.

In the previous solution, I see the redefinition of \linesfmt. That is very right, some seconds before I had looked at the code and discovered it myself. Paul had discovered \lemmafmt before. That above solution really looks like that it should work; but manyfoot already offers a counter that should better be used directly.


Following up on Uwe's suggestion, here is another approach that produces the same output as lockstep's (though without the automatic counters):






\null\vfill% just for the example

Some text \Anote{a}{An apparatus A note.}.

Some text.\footnoteZ{1}{An apparatus B note that behaves like a normal footnote.}

Some text.\footnoteZ{2}{And another one.}


The \newfootnote{} command is part of the manyfoot package loaded by ednote.

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.