![如何在 reledmac 中获取每行双行号?](https://linux22.com/image/345882/%E5%A6%82%E4%BD%95%E5%9C%A8%20reledmac%20%E4%B8%AD%E8%8E%B7%E5%8F%96%E6%AF%8F%E8%A1%8C%E5%8F%8C%E8%A1%8C%E5%8F%B7%EF%BC%9F.png)
有时,旧文本的编辑会认为某一节的行号断错了。由于他们不能简单地放弃使用已使用数百年的旧编号,因此他们会将旧编号与新换行符结合起来,这样这些行号就被称为 10、11/12 和 12/13。
简单的例子:假设遗产执行人发现一首著名诗歌的手写草稿,其停顿与排字员的不同。
% -*- mode: latex; TeX-engine: xetex; coding: utf-8; -*-
\documentclass{article}
\usepackage{reledmac}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setmainfont{TeXGyrePagellaX}
\setlength{\stanzaindentbase}{1em}
\setstanzaindents{3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
\linenumincrement{1}
\begin{document}
\begin{ledgroup}
\beginnumbering
\setline{10}
\stanza Golden head, black wing &
Cling, swing, &
Spring, sing, &
Swing up into the apple-tree. \&
\endnumbering
\end{ledgroup}
\medskip % easy: two lines into one
\begin{ledgroup}
\beginnumbering
\setline{10}
\stanza Golden head, black wing &
\setline[d]{11/12}Cling, swing, Spring, sing, & % or \setdoubleline{12/13}, print line-number 11/12, also in the apparatus
Swing up into the apple-tree. \&
\endnumbering
\end{ledgroup}
\medskip % more difficult: new combination
\begin{ledgroup}
\beginnumbering
\setline{10}
\stanza Golden head, black wing, \setline{10/11} Cling & % line-number 10/11
\setline[d]{11/12} swing, Spring, & % or \setdoubleline{11/12}, print line-number 11/12, also in the apparatus
\setline[d]{12/13} sing, Swing up into the apple-tree. \& % line-number 12/13, also in the apparatus
\end{ledgroup}
\end{document}
答案1
reledmac 2.26.0 版本,刚刚在 CTAN 上发布,提供可以给行号添加“注释”的系统。Suche 注释:
- 可以是任意的文本内容,例如较旧的行号
- 每行自动重置
- 添加在边距中
- 已添加于脚注中。
这里是 MWE
\documentclass{article}
\usepackage{polyglossia,fontspec}
\usepackage{libertineotf}
\setmainlanguage{latin}
\setotherlanguage{english}
\usepackage[series={A,B},noend,noeledsec,noledgroup]{reledmac}
\sethangingsymbol{[\,}
\firstlinenum{1}
\linenumincrement{1}
\setcounter{stanzaindentsrepetition}{0}
\setstanzaindents{8,0,0}
\setcounter{stanzaindentsrepetition}{1}
\begin{document}
\begin{english}
\date{}
\title{Stanza with double line numbering}
\maketitle
\begin{abstract}
This file provides an example of typesetting verse with reledmac using a double line numbering system.
The new edition adds a starting line of verse not present in the previous one, so we need to make an addition within the margin and textsuperscript the numbering from the older edition. In the centre, we split what was in the first edition one line of verse into two.
To mark the old numbering, we use \verb+\linenumannotation+. For maximum clarity, all line numbers are shown thanks to the settings of \verb+\firstlinenum+ and \verb+\linenumincrement+ in the preamble.
\end{abstract}
\end{english}
\beginnumbering
\stanza
\edlabel{begin:1}\edtext{Lorem}{\lemma{Lorem\ldots nisis}\xxref{begin:1}{end:1}\Afootnote{A note on four lines of verse, the first of which was missing in the first edition}} ipsum dolor sit amet, consectetur adipisicing elit,&
\linenumannotation{1}sed do eiusmod tempor incididunt ut labore et dolore&
\linenumannotation{2}magna aliqua. Ut enim ad minim veniam, quis nostrud&
\linenumannotation{3}exercitation ullamco laboris nisi\edlabel{end:1}&
\linenumannotation{4}\edtext{ut aliquip}{\Afootnote{ut aliliquip}} consequat ut aliquip consequat irure dolor in reprehenderit irure dolor in reprehenderit&
\linenumannotation{5}\edtext{Duis aute}{\Bfootnote{Some comments}} irure dolor in reprehenderit&
\linenumannotation{6}\edlabel{begin:2}\edtext{in}{\xxref{begin:2}{end:2}\lemma{in\ldots deserunt}\Afootnote{Theses two lines of verse were one single line in the first edition}} voluptate velit esse cillum dolore eu ur. Excepteur sint occaecat&
\linenumannotation{6}cupidatat non proident, sunt in culpa qui officia deserunt\edlabel{end:2}&
\linenumannotation{7}\edlabel{begin:3}\edtext{Duis}{\xxref{begin:3}{end:3}\lemma{Duis\ldots occaecat}\Afootnote{Another note on two verses}} aute irure dolor in reprehenderit&
\linenumannotation{8}in voluptate velit esse cillum dolore eu fugiat nulla&
\linenumannotation{9}pariatur. Excepteur sint occaecat\edlabel{end:3}\&
\endnumbering
\end{document}