I'm trying to customize eledmac
settings in a way that I can use its footnote ability just like the ordinary LaTeX footnote style, but not as one paragraph per footnote but all footnotes in one paragraph. My problem is now to get the footnote mark into the footnote text apparatus, since eledmac
is used to put line number and lemma there instead of footnote marks.
As a result, if I use \value{footnote}
somewhere in the second argument of \edtext
, I only get the last (highest) footnote number because eledmac
will typeset the footnote apparatus when finalizing the page instead of instantly inserting footnotes that would reflect the current footnote counter value.
In order to fix this, I've already set up a little label/reference command that will memorize the footnote mark number in the .aux file. This seems to work as long as I put hard coded footnote numbers into it, but if I pass \value{footnote}
to it, \value{footnote}
gets into the .aux file, which again results in the last (highest) footnote number of the page.
Is there a way to resolve \value{footnote}
to its actual value for the .aux file? What could I do instead, if there's no way for doing so? Here a screenshot of the PDF:
(source: freie-bibel.de)
Here an example:
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{ngerman}
\usepackage{eledmac}
\usepackage{perpage}
\usepackage{zref-user}
\setlength{\parskip}{0pt}
\numberlinefalse
\footparagraph{A}
\nonumberinfootnote
\MakePerPage{footnote}
\makeatletter
\zref@newprop{myfootnote}[0]{0}
\zref@addprop{main}{myfootnote}
\newcommand*{\footnotemarkref}[1]
{
\zref@extractdefault{#1}{myfootnote}{0}
}
\newcommand*{\footnotemarklabel}[1]
{
\zref@setcurrent{myfootnote}{\value{footnote}}
\zref@labelbyprops{#1}{myfootnote}
}
\makeatother
\begin{document}
\beginnumbering
\pstart
Dieses\edtext{\addtocounter{footnote}{1}\footnotemark[\footnotemarkref{footnote:1:2:1}]}{\lemma{\footnotemark[\footnotemarkref{footnote:1:2:1}] 1,2}\Afootnote{\footnotemarklabel{footnote:1:2:1}O. Er.}} war im Anfang bei Gott.
Alles ward durch dasselbe,\edtext{\addtocounter{footnote}{1}\footnotemark[\footnotemarkref{footnote:1:3:1}]}{\lemma{\footnotemark[\footnotemarkref{footnote:1:3:1}] 1,3}\Afootnote{\footnotemarklabel{footnote:1:3:1}O. ihn.}} und ohne dasselbe ward auch nicht eins, das geworden ist.
\pend
\endnumbering
\end{document}
The lines in the .aux file are:
\zref@newlabel{footnote:1:2:1}{\myfootnote{\c@footnote }}
\zref@newlabel{footnote:1:3:1}{\myfootnote{\c@footnote }}
Where I would rather have something like this:
\zref@newlabel{footnote:1:2:1}{\myfootnote{1 }}
\zref@newlabel{footnote:1:3:1}{\myfootnote{2 }}
Additionally, if you know where the space before the footnote mark in the text area are coming from, please let me know. Thanks in advance!