![eledmac/eledpar 每个 \pstart...\pend 有一个脚注系列](https://linux22.com/image/307894/eledmac%2Feledpar%20%E6%AF%8F%E4%B8%AA%20%5Cpstart...%5Cpend%20%E6%9C%89%E4%B8%80%E4%B8%AA%E8%84%9A%E6%B3%A8%E7%B3%BB%E5%88%97.png)
我正在使用eledmac
/eledpar
进行批判性编辑。我正在使用段落批判性脚注。
我需要将每个脚注\pstart ... \pend
打印在单独的块中(用一条线与其他脚注分开)。这可以通过为每个脚注使用一个脚注系列来实现,\pstart ... \pend
如下所示:
\documentclass{scrartcl}
\usepackage{lipsum,eledmac,eledpar}
\numberonlyfirstinline
\footparagraph{A}
\footparagraph{B}
\txtbeforeXnotes[A]{Footnotes of first paragraph:~~}
\txtbeforeXnotes[B]{Footnotes of second paragraph:~~}
\begin{document}
\begin{pages}
\begin{Leftside}
\beginnumbering
\pstart
\edtext{Here}{\Afootnote{First footnote in A}} is the
\edtext{first}{\Afootnote{Second footnote in A.}} paragraph:
\lipsum[1]
\pend
\pstart
\edtext{Here}{\Bfootnote{First footnote in A}} is the
\edtext{second}{\Bfootnote{Second footnote in A.}} paragraph:
\lipsum[2]
\pend
% Many more \pstart ... \pend to follow.
\endnumbering
\end{Leftside}
\begin{Rightside}
\beginnumbering
\pstart Test \pend
\pstart Test \pend
\endnumbering
\end{Rightside}
\end{pages}
\Pages
\end{document}
但是,我的文本有很多段落,似乎无法为每个段落定义新的脚注系列。有什么技巧可以打印一个脚注寄存器\pend
,将其“清除”并重置\txtbeforeXnotes
?
或者是否有其他方法可以为每个结构提供一个脚注块\pstart ... \pend
而不需要定义太多的脚注系列?
我原本想定义 5 个脚注系列A ... E
,然后以循环顺序使用它们。但问题是,在\footnoteE
后续页面上\footnoteA
,系列的注释A
将打印在系列上方E
,与相应段落的顺序相反。
答案1
对于 eledmac
很多年前有人问过我这个问题。我没有找到我给出的答案。我认为循环方式是最好的。
还有一个 pstart 的系列位置问题,它在一个页面开始,在另一个页面继续。seriesatend
解决这个问题的方法是:使当前系列位于所有系列的末尾,而不是 eledmac 的初始位置。
此 MWE 适用于 eledmac。由于 \AtEveryPstart 的工作方式,它无法与并行文本配合使用。
\documentclass{scrartcl}
\usepackage{lipsum,eledmac,eledpar}
\numberonlyfirstinline
\footparagraph{A}
\footparagraph{B}
\footparagraph{C}
\footparagraph{D}
\footparagraph{E}
% Here, the loop system
\newcounter{mynotelevel}%
\renewcommand{\themynotelevel}{\Alph{mynotelevel}}% For the list
\AtEveryPstart{%
\addtocounter{mynotelevel}{1}%Step counter
\ifnumequal{\arabic{mynotelevel}}{6}{%
\setcounter{mynotelevel}{1}%
}{}%
\global\letcs{\mynote}{\themynotelevel footnote}% %
\seriesatend{\themynotelevel}%
}
\begin{document}
\beginnumbering
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
% Many more \pstart ... \pend to follow.
\endnumbering
\end{document}
对于 eledpar
排版并行 pstart 时,AtEveryPstart
当 pstart 有效打印时会调用 (因此\Pages
),而不是在\pstart
被调用时调用 。这对于 来说是完美的,\seriesatend
但对于 来说却不是\global\letcs{\mynote}{\themynotelevel footnote}
,因为脚注是\pstart...\pend
在 LaTeX 读取 时处理的。
解决方案是添加一个新的AtEveryPstartCall
,不是在\Pages
而是在\pstart
。我已经在 eledpar 的新版本 1.15.0 中完成了它(在 CTAN 中)
还有左右音交替的问题,最好的方法是左音用A,B,C,D,E,右音用F,G,H,I,J。
所以例子就变成了
\documentclass{scrartcl}
\usepackage{lipsum}
\usepackage[series={A,B,C,D,E,F,G,H,I,J}]{eledmac}%Declare series to use
\usepackage{eledpar}
\numberonlyfirstinline
% Series as paragraph
\footparagraph{A}%For Left (1)
\footparagraph{B}%For left (2)
\footparagraph{C}%For left (3)
\footparagraph{D}%For left (4)
\footparagraph{E}%For left (5)
\footparagraph{F}%For right (6)
\footparagraph{G}%For right (7)
\footparagraph{H}%For right (8)
\footparagraph{I}%For right (9)
\footparagraph{J}%For right (10)
% Here, the loop system
\makeatletter% We need to use command with @
% Two counters: one for left and one for right
\newcounter{mynotelevel}%
\renewcommand{\themynotelevel}{\Alph{mynotelevel}}% Print the counter as a letter
\newcounter{mynotelevelR}%
\renewcommand{\themynotelevelR}{\Alph{mynotelevelR}}% Print the counter as a letter
\setcounter{mynotelevelR}{5}
% Following lines are called at each \pstart
\AtEveryPstartCall{%
\ifledRcol%If it's a right pstart
\addtocounter{mynotelevelR}{1}%Step counter
\ifnumequal{\arabic{mynotelevelR}}{11}{%Not more than J series (10)
\setcounter{mynotelevelR}{6}% If more than J => restart to F (6)
}{}%
\global\letcs{\mynote}{\themynotelevelR footnote}% And let mynote equal to <X>footnote, where <X> is the current level \letcs is defined by etoolbox, called by eledmac
\else% If it's a left page
\addtocounter{mynotelevel}{1}%Step counter
\ifnumequal{\arabic{mynotelevel}}{6}{%Not more than E series (5)
\setcounter{mynotelevel}{1}%If more than J => restart to A (1)
}{}%
\global\letcs{\mynote}{\themynotelevel footnote}%And let mynote equal to <X>footnote, where <X> is the current level \letcs is defined by etoolbox, called by eledmac
\fi%
}
% This code is called when begins of pstart are printed
\AtEveryPstart{%
\ifodd\c@page%If we are on a left page
\addtocounter{mynotelevelR}{1}%Step counter
\ifnumequal{\arabic{mynotelevelR}}{11}{%Not more than J series (10)
\setcounter{mynotelevelR}{6}}{}% If more than J => restart to F (6)
\seriesatend{\themynotelevelR}% The series should be at the end
\else
\addtocounter{mynotelevel}{1}%Step counter
\ifnumequal{\arabic{mynotelevel}}{6}{%Not more than E series (5)
\setcounter{mynotelevel}{1}}{}%% If more than E => restart to A (1)
\seriesatend{\themynotelevel}% The series should be at the end
\fi
}
\makeatother
\begin{document}
\begin{pages}
\begin{Leftside}
\beginnumbering
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
% Many more \pstart ... \pend to follow.
\endnumbering
\end{Leftside}
\begin{Rightside}
\beginnumbering
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR first}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[1]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart sss\themynotelevelR
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR first}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[1]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart sss\themynotelevelR
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\lipsum[2]
\pend
% Many more \pstart ... \pend to follow.
\endnumbering
\end{Rightside}
\setcounter{mynotelevel}{0}%Restart the left counter
\setcounter{mynotelevelR}{5}% And restart the right counter
\Pages
\end{pages}
\end{document}
结束语
您使用的系列越多,eledmac 就越慢。如果您只使用关键脚注 (Xfootnote) 而不是熟悉的 (\footnoteX),我可能会添加一个选项来帮助获得更快的 eledmac。我还认为我应该添加选项以禁用使用 eledmac 管理 ledgroup/minipage(会更快)。
我认为我也可以优化系列
答案2
补充 Maïeul 的精彩回答:
我还需要\txtbeforeXnotes
为每个单独设置一个\pstart...\pend
(以便能够提供本地源信息)。为了实现这一点,我添加了计数器parcount
和,它们在和parcountR
中得到适当增加,以便为每个 获得一个唯一的数字。然后有一个宏\AtEveryPstart
\AtEveryPstartCall
\pstart...\pend
\def\thispartxtbeforenotes#1{%
\csgdef{txtbefore@par@\theparcount}{#1}
}%
可以从 中调用它来\pstart...\pend
存储单个前缀文本。最后,在 中\AtEveryPstart
,这是在\pstart...\pend
,这是在实际运行打印,我补充道
\exp_args:Nnf \csgdef{txtbeforeXnotes@\themynotelevel}{\csuse{txtbefore@par@\theparcount}:\quad}%
将之前存储的 txtbeforenotes 作为当前的 txtbeforenotes。
以下是添加了此功能的完整 MWE(仅适用于左音,但可以轻松复制粘贴用于右音):
\documentclass{scrartcl}
\usepackage{expl3}
\usepackage{lipsum}
\usepackage[series={A,B,C,D,E,F,G,H,I,J}]{ledmacIssue260/eledmac}
\usepackage{ledmacIssue260/eledpar}
\numberonlyfirstinline
\footparagraph{A}
\footparagraph{B}
\footparagraph{C}
\footparagraph{D}
\footparagraph{E}
\footparagraph{F}
\footparagraph{G}
\footparagraph{H}
\footparagraph{I}
\footparagraph{J}
\makeatletter
% New counters to count the left/right instances of \pstart
\newcounter{parcount}
\newcounter{parcountR}
\newcounter{mynotelevel}%
\renewcommand{\themynotelevel}{\Alph{mynotelevel}}% For the list
\newcounter{mynotelevelR}%
\renewcommand{\themynotelevelR}{\Alph{mynotelevelR}}% For the list
\setcounter{mynotelevelR}{5}
\ExplSyntaxOn
% This is used when \pstart is called:
\AtEveryPstartCall{%
(PstartCall thepage:\thepage Pstart:\thepstartL parcount:\theparcount) %
\ifledRcol%
\addtocounter{parcountR}{1}%
\addtocounter{mynotelevelR}{1}%
\ifnumequal{\arabic{mynotelevelR}}{11}{%
\setcounter{mynotelevelR}{6}%
}{}%
\global\letcs{\mynote}{\themynotelevelR footnote}% %
\else
\addtocounter{parcount}{1}%
\addtocounter{mynotelevel}{1}%
\ifnumequal{\arabic{mynotelevel}}{6}{%
\setcounter{mynotelevel}{1}%
}{}%
\global\letcs{\mynote}{\themynotelevel footnote}% %
\fi%
}
% This is used when the \pstart is printed:
\AtEveryPstart{%
(PstartStart thepage:\thepage Pstart:\thepstartL parcount:\theparcount.)
\ifodd\c@page
\addtocounter{parcountR}{1}%
\addtocounter{mynotelevelR}{1}%
\ifnumequal{\arabic{mynotelevelR}}{11}{%
\setcounter{mynotelevelR}{6}}{}%
\seriesatend{\themynotelevelR}%
\else
\addtocounter{parcount}{1}%
\addtocounter{mynotelevel}{1}%
\ifnumequal{\arabic{mynotelevel}}{6}{%
\setcounter{mynotelevel}{1}}{}%
\seriesatend{\themynotelevel}%
\ifcsdef{txtbefore@par@\theparcount}{%
\exp_args:Nnf \csgdef{txtbeforeXnotes@\themynotelevel}{\csuse{txtbefore@par@\theparcount}:\quad}%
}{%
\csgdef{txtbeforeXnotes@\themynotelevel}{}%
}
\fi
}
\def\thispartxtbeforenotes#1{%
\csgdef{txtbefore@par@\theparcount}{#1}
}%
\ExplSyntaxOff
\begin{document}
\begin{pages}
\begin{Leftside}
\beginnumbering
\pstart
\thispartxtbeforenotes{Source 1}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart
\thispartxtbeforenotes{Source 2}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 3}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 4}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 5}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart
\thispartxtbeforenotes{Source 6}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 7}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart
\thispartxtbeforenotes{Source 8}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 9}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 10}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart
\thispartxtbeforenotes{Source 11}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart
\thispartxtbeforenotes{Source 12}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\endnumbering
\end{Leftside}
\begin{Rightside}
\beginnumbering
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR first}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart sss\themynotelevelR
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR first}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart sss\themynotelevelR
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\endnumbering
\end{Rightside}
% Counters have to be resetted to 0 here as the circular arithmetics of
% has to start again when \Pages is called:
\setcounter{parcount}{0}
\setcounter{mynotelevel}{0}
\setcounter{mynotelevelR}{5}
\Pages
\end{pages}
\end{document}
编辑:的可选参数\pstart[]
在以下情况下执行:\pstart
的打印(未调用)。根据 Maïeul 的评论,这可用于简化实现。因此,无需计算段落数并将每个段落的 txtbeforenotes 保存在单独的 csname 下。这是一个简化的 MWE:
\documentclass{scrartcl}
\usepackage{lipsum}
\usepackage[series={A,B,C,D,E,F,G,H,I,J}]{ledmacIssue260/eledmac}
\usepackage{ledmacIssue260/eledpar}
\numberonlyfirstinline
\footparagraph{A}
\footparagraph{B}
\footparagraph{C}
\footparagraph{D}
\footparagraph{E}
\footparagraph{F}
\footparagraph{G}
\footparagraph{H}
\footparagraph{I}
\footparagraph{J}
\makeatletter
\newcounter{mynotelevel}%
\renewcommand{\themynotelevel}{\Alph{mynotelevel}}%
\newcounter{mynotelevelR}%
\renewcommand{\themynotelevelR}{\Alph{mynotelevelR}}%
\setcounter{mynotelevelR}{5}
% This is used when \pstart is called:
\AtEveryPstartCall{%
(PstartCall thepage:\thepage Pstart:\thepstartL ) %
\ifledRcol%
\addtocounter{mynotelevelR}{1}%
\ifnumequal{\arabic{mynotelevelR}}{11}{%
\setcounter{mynotelevelR}{6}%
}{}%
\global\letcs{\mynote}{\themynotelevelR footnote}% %
\else
\addtocounter{mynotelevel}{1}%
\ifnumequal{\arabic{mynotelevel}}{6}{%
\setcounter{mynotelevel}{1}%
}{}%
\global\letcs{\mynote}{\themynotelevel footnote}% %
\fi%
}
% This is used when the \pstart is printed:
\AtEveryPstart{%
\@rotatecounters%
\csgdef{txtbeforeXnotes@\themynotelevel}{}%
}
\def\@rotatecounters{%
(PstartStart thepage:\thepage Pstart:\thepstartL.)
\ifodd\c@page
\addtocounter{mynotelevelR}{1}%
\ifnumequal{\arabic{mynotelevelR}}{11}{%
\setcounter{mynotelevelR}{6}}{}%
\seriesatend{\themynotelevelR}%
\else
\addtocounter{mynotelevel}{1}%
\ifnumequal{\arabic{mynotelevel}}{6}{%
\setcounter{mynotelevel}{1}}{}%
\seriesatend{\themynotelevel}%
\fi
}
% This can be provided in the optional argument of \pstart. The optional
% argument of pstart will replace the \AtEveryPstart, so it will be executed
% when the \pstart is printed (not called).
\def\thispartxtbeforeXnotes#1{%
\@rotatecounters%
\ifodd\c@page
\else
\csgdef{txtbeforeXnotes@\themynotelevel}{#1\quad}%
\fi
}
\makeatother
\begin{document}
\begin{pages}
\begin{Leftside}
\beginnumbering
\pstart[\thispartxtbeforeXnotes{Source 1}]
% \thispartxtbeforenotes{Source 1}
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart[\thispartxtbeforeXnotes{Source 2}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 3}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 4}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 5}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart[\thispartxtbeforeXnotes{Source 6}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 7}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel first}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[1]
\pend
\pstart[\thispartxtbeforeXnotes{Source 8}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 9}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 10}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\pstart[\thispartxtbeforeXnotes{Source 11}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]\edtext{on therpage}{\mynote{on otherpage}}
\pend
\pstart[\thispartxtbeforeXnotes{Source 11}]
\edtext{\themynotelevel Here}{\mynote{First footnote in \themynotelevel}} is the
\edtext{\themynotelevel second}{\mynote{Second footnote in \themynotelevel.}} paragraph:
\lipsum[2]
\pend
\endnumbering
\end{Leftside}
\begin{Rightside}
\beginnumbering
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR first}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart sss\themynotelevelR
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR first}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\pstart sss\themynotelevelR
\edtext{\themynotelevelR Here}{\mynote{First footnote in \themynotelevelR}} is the
\edtext{\themynotelevelR second}{\mynote{Second footnote in \themynotelevelR.}} paragraph:
\pend
\endnumbering
\end{Rightside}
% Counters have to be resetted to 0 here as the circular arithmetics of
% has to start again when \Pages is called:
\setcounter{mynotelevel}{0}
\setcounter{mynotelevelR}{5}
\Pages
\end{pages}
\end{document}