Reledmac 尾注格式化为单段

Reledmac 尾注格式化为单段

我正在使用reledmacreledpar排版古代文献的翻译。我曾经使用过重要的脚注,但最好在每个相关部分后都加上注释,所以我改用了尾注。

然而,在下面的 MWE 中,尽管我有\Xendparagraph[A],但每个注释似乎都设置在自己的行上:

在此处输入图片描述

我希望它们全部按顺序排列(一行或多行),而不是放在单独的段落中。也许我误解了文档?或者我在代码中引入了一个问题……

% !TEX TS-program = xelatexmk
 \documentclass{memoir}

\usepackage{reledmac}
    \Xarrangement[A]{paragraph}     % format all A-series critical notes into a single paragraph
    \Xlemmaseparator[A]{:}          % replace ] with : in critical notes
    \Xendlemmaseparator[A]{:}
    \setlength{\linenumsep}{0.5em}  % set space between line number and margin
    \sublinenumberstyle{alph}       % subline numbers 'a', 'b', etc.
    \Xendbhooknote{\vskip 6pt\footnoterule}
    \renewcommand{\printnpnum}[1]{}
    \Xendparagraph[A]
\usepackage{reledpar} 
    \setlength{\Lcolwidth}{0.49\textwidth}
    \setlength{\Rcolwidth}{0.49\textwidth}
    \firstlinenum*{1}               % start line numbering with first line
    \linenumincrement*{1}           % number every line
    \setstanzaindents{1,0}
    \setlength{\stanzaindentbase}{1em}
    \setcounter{stanzaindentsrepetition}{1}
    \AtBeginPairs{\sloppy}

\begin{document}

\begin{pairs}
\begin{Leftside} 
\beginnumbering
\begin{astanza}
This is line one&
This is line two\&
\end{astanza}
\begin{astanza}
This is line \edtext{three}{\Aendnote{Alternate}}&
This is line \edtext{four}{\Aendnote{Alternate}}\&
\end{astanza}
\endnumbering
\end{Leftside}
\begin{Rightside} 
\beginnumbering
\autopar
\noindent Translation group one\pend

\noindent Translation group two\pend
\endnumbering
\end{Rightside}
\end{pairs}
\Columns
\doendnotesbysection{A}

\end{document}

答案1

问题是你\Xendbhooknote{\vskip 6pt\footnoterule}让你在每个注释之间得到一个规则(Xendbhooknote在每个注释之前调用,文档不清楚,我希望https://github.com/maieul/ledmac/commit/162bb83769591cdb887f5caf4a8bc65d62af1c50会更加清晰)。

reledmac 2.25.0 版本仅在 CTAN 上发送,添加examples/1-verses.aux Xendtxtbeforenotes在尾注块之前插入其强制参数,当且仅当至少有一个尾注时。

因此你的 MWE 变成

% !TEX TS-program = xelatexmk
 \documentclass{memoir}

\usepackage{reledmac}
    \Xarrangement[A]{paragraph}     % format all A-series critical notes into a single paragraph
    \Xlemmaseparator[A]{:}          % replace ] with : in critical notes
    \Xendlemmaseparator[A]{:}
    \setlength{\linenumsep}{0.5em}  % set space between line number and margin
    \sublinenumberstyle{alph}       % subline numbers 'a', 'b', etc.
    \Xendtxtbeforenotes{\vskip 6pt\footnoterule}
    \renewcommand{\printnpnum}[1]{}
    \Xendparagraph[A]
\usepackage{reledpar} 
    \setlength{\Lcolwidth}{0.49\textwidth}
    \setlength{\Rcolwidth}{0.49\textwidth}
    \firstlinenum*{1}               % start line numbering with first line
    \linenumincrement*{1}           % number every line
    \setstanzaindents{1,0}
    \setlength{\stanzaindentbase}{1em}
    \setcounter{stanzaindentsrepetition}{1}
    \AtBeginPairs{\sloppy}

\begin{document}

\begin{pairs}
\begin{Leftside} 
\beginnumbering
\begin{astanza}
This is line one&
This is line two\&
\end{astanza}
\begin{astanza}
This is line \edtext{three}{\Aendnote{Alternate}}&
This is line \edtext{four}{\Aendnote{Alternate}}\&
\end{astanza}
\endnumbering
\end{Leftside}
\begin{Rightside} 
\beginnumbering
\autopar
\noindent Translation group one\pend

\noindent Translation group two\pend
\endnumbering
\end{Rightside}
\end{pairs}
\Columns
\doendnotesbysection{A}

\end{document}

答案2

鉴于 Maïeul 的澄清,短期内一个简单的解决方法是

\newcommand{\ruledendnotesbysection}[1]{\vskip 6pt\footnoterule\doendnotesbysection{#1}}

然后更换

\doendnotesbysection{A}

\ruledendnotesbysection{A}

当然,这可以推广到执行人们希望的任何代码。

相关内容