使用 reledmac 在每一页上重新开始脚注编号

使用 reledmac 在每一页上重新开始脚注编号

我想问一下,是否可以reledmac在每一页上都有以数字 1 开头的熟悉的脚注,就像可以通过perpage与其他包结合使用来实现的一样,但这似乎无法与一起使用reledmac

该功能可以与以下最小示例配合使用,其中阿拉伯语文本与其德语翻译相对,并且有两层熟悉的脚注,footnoteA分别引用 LTR 文本和footnoteB引用 RTL 文本:

\documentclass[11pt,twoside,a4paper]{article}

\usepackage{setspace}

\usepackage[series={A,B},nocritical,noend]{reledmac}
\usepackage{reledpar}

\usepackage{polyglossia}

\setmainlanguage[spelling=old,babelshorthands=true]{german}
\setmainfont[Mapping=tex-text,Renderer=ICU]{Charis SIL}

\setotherlanguage{english}
\newfontfamily\englishfont[Mapping=tex-text,Renderer=ICU]{Charis SIL}

\setotherlanguage[numerals=mashriq]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Scheherazade}

\linenumincrement*{2}
\firstlinenum*{1}
\setlength{\Lcolwidth}{0.5\textwidth}
\setlength{\Rcolwidth}{0.4\textwidth} 

\newcommand{
\فب
}[1]{\footnoteB{#1}}
\newcommand{
\مج
}[1]{\ledsidenote{\textarabic{#1}}}

%\renewcommand*{\thefootnoteB}{\alph{footnoteB}}

\afterruleX[A]{2pt}

\arrangementX[B]{paragraph}
\wrapcontentX[B]{\textarabic}
\bhookgroupX[B]{\RTL}%this is the correct way to set the B-footnotes in a paragraph, the \arrangementX has to be done first, this was communicated by Maïeul Rouquette, the developer of reledmac, on Fr., the 24.02.2017, on stakexchange: http://tex.stackexchange.com/questions/355398/changing-the-direction-of-footnotes-in-reledmac

\afterruleX[B]{2pt}%to increase the vertical space between footnoteruleB and the B-footnotes, it has to be placed before the command which puts the B-footnoterule right

\makeatletter
\def\right@footnoterule{%
\kern-3\p@
 \hbox to \columnwidth{\hskip .9\columnwidth \leaders\hrule \@height 3\p@\hfill}
  \kern2.6\p@}
\def\left@footnoterule{\kern-3\p@
  \hrule \@width .1\columnwidth \@height 3\p@ \kern 2.6\p@}

\renewcommand{\footnoteruleA}{\left@footnoterule}
\renewcommand{\footnoteruleB}{\right@footnoterule}%to customise the footnoterules, i.e. to align them right, or to change their width and height, this solution was provided by Maïeul Rouquette on Sa. 25.02.2017 on stackexchange: http://tex.stackexchange.com/questions/355591/customising-the-footnote-rule-in-reledmac

%the following commands where communicated by Maïeul Rouquette, the developer of reledmac, on the Thu. the 23.02.2017 on stakexchange: http://tex.stackexchange.com/questions/355182/customising-footnote-marks-with-reledmac, it seems that these commands have to be set after the commands for the arrangement of the footnotes in order to implement all the details, for example the hspace after the footfootmarkA
\renewcommand{\bodyfootmarkA}{\textsuperscript{\hspace{1pt}(\@thefnmarkA)}}
\renewcommand{\bodyfootmarkB){\textarabic{\hspace{1pt}\textsuperscript{(\@thefnmarkB)}}}
\renewcommand{\footfootmarkA}{\textsuperscript{(\@thefnmarkA)}\hspace{1ex}}
\renewcommand{\footfootmarkB}{\textarabic{\textsuperscript{(\@thefnmarkB)}}\hspace{1ex}}

\makeatother

\sidenotemargin{outer}
\setlength{\ledrsnotesep}{7.5cm}
\setlength{\ledlsnotesep}{1.3cm}

\leftnoteupfalse
\rightnoteupfalse

\usepackage{perpage}
\MakePerPage{footnoteB}

\begin{document}

%\numberlinefalse

\AtBeginPairs{\sloppy}
\begin{pairs}

\begin{Rightside} 
\begin{RTL}
\begin{Arabic}
\begin{spacing}{2}
\beginnumbering
\pstart
نحمدك اللهمّ على نعم يؤذن\فب{يُؤْذِنُ}. الحمد [ص ٢]\مج{ص ٢} بازديادها، ونصلي على نبيك محمد هادي الأمة\فب{يعني أمة محمد.} لرشادها
\pend    
\endnumbering
\end{spacing}
\end{Arabic}
\end{RTL}
\end{Rightside}

\begin{Leftside} 
\begin{german}
\beginnumbering
\pstart
\noindent
Wir preisen dich, Gott, für Gnadengaben, deren Lobpreis von    ihrem\footnoteA{D.h. der Gnadengaben.} Anwachsen kündet, [p.2.]\ledsidenote{[p.2]} und\ledsidenote{[A]} wir bitten um Segen für deinen Propheten Muḥammad, der die Gemeinde auf den rechten Weg führt.
\pend
\endnumbering
\end{german}
\end{Leftside}
\end{pairs}
\Columns

\newpage

\AtBeginPairs{\sloppy}
\begin{pairs}

\begin{Rightside} 
\begin{RTL}
\begin{Arabic}
\begin{spacing}{2}
\beginnumbering
\pstart
نحمدك اللهمّ على نعم يؤذن\فب{يُؤْذِنُ.} الحمد بازديادها، ونصلي على نبيك محمد     هادي الأمة\فب{يعني أمة محمد.} لرشادها
\pend    
\endnumbering
\end{spacing}
\end{Arabic}
\end{RTL}
\end{Rightside}

\begin{Leftside} 
\begin{german}
\beginnumbering
\pstart
\noindent
Wir preisen dich, Gott, für Gnadengaben, deren Lobpreis von    ihrem\footnoteA{D.h. der Gnadengaben.} Anwachsen kündet, [p.2.]\ledsidenote{[p.2]} und\ledsidenote{[A, B, L, R, F und in verschiedenen Handschriften]} wir bitten um Segen für deinen Propheten Muḥammad, der die Gemeinde auf den rechten Weg führt.
\pend
\endnumbering
\end{german}
\end{Leftside}
\end{pairs}
\Columns


\end{document}

答案1

如 reledpar 手册中所述(第 14 页)

您必须使用

 \MakePerPage{footnote@typeset}
 \MakePerPage{footnoteA@typeset}
 \MakePerPage{footnoteB@typeset}

代替

 \MakePerPage{footnote}
 \MakePerPage{footnoteA}
 \MakePerPage{footnoteB}

这是因为 reledpar 不直接使用脚注计数器,如手册第 6.2.3 节所述。

为什么 ?

因为这些计数器是在读取环境内容时增加的pairs,这不一定与它们排版的顺序相对应\Columns,因为您可能在两侧使用相同的脚注层。

在你的情况下,这乘以需要的运行次数(对我来说是 5)。你必须使用 latexmk 来确保进行正确的运行次数

相关内容