停止 reledmac / reledpar 中的段落编号

停止 reledmac / reledpar 中的段落编号

TL;DR 在使用 reledmac / reledpar 的并行类型设置环境中,我想排除某些段落的编号。

我目前正在创建一个包含双语文本的双面类 Latex 文档:左侧(左页)始终是拉丁文本,右侧(右页)是德语翻译。为此,我使用了 reledpar。左侧有节(astanza),右侧有翻译,我总是让标题/标题位于实际节/翻译之前。

不过,左侧的一些诗歌后面有原作者的注释。这些注释当然不会像其他诗节一样缩进,因此被放在\p启动 \pend对而不是astanza 环境。现在我的问题是那些包含注释的段落也被编号了,我不知道如何阻止这种情况。我阅读了 reledpar / reledmac 的手册并尝试使用\跳过编号 \隐藏编号\隐藏左页编号,但都不起作用。
在其他编号场景中,如何停止某些段落的编号?

这是我的 MWE:

\documentclass[12pt,a4paper,twoside]{scrbook}
\usepackage[]{reledmac}
\usepackage[]{reledpar}

% Set stanza indents
\setstanzaindents{8,5,6}
\setcounter{stanzaindentsrepetition}{2}

% Print a line number for every second line on the left side
\firstlinenum{2}
\linenumincrement{2}

% Disable the line numbering on the right side
\firstlinenumR{1000000000}

\begin{document}
\large
    \begin{pages}
    \begin{Leftside}
        \beginnumbering
            \begin{astanza}
                verse verse verse 1!&
                verse verse verse 2!&
                verse verse verse 3!&
                verse verse verse 4!\&
            \end{astanza}
            \pstart
                Some other text which should not be in verse form and therefore not numbered (basically an annotation which still will be translated). Let's just make it longer so we can see how it looks when spread over multiple lines.
            \pend
        \endnumbering
    \end{Leftside}
    \begin{Rightside}
        \beginnumbering
            \pstart
                This is a translation paragraph. Still just a translation paragraph. There is nothing interesting in here, please move on.
            \pend
            \pstart
                This is a translation paragraph. Still just a translation paragraph. There is nothing interesting in here, please move on.
            \pend
        \endnumbering
    \end{Rightside}
    \end{pages}
\Pages
\end{document}

其结果为以下左页和右页: 左页右页

这也是结果PDF

答案1

  1. \skipnumbering跳过特定行的行号。即在这一行,行号不再增加,也不打印。
  2. \hidenumbering隐藏特定行的行号。也就是说,在此行中,行号会增加但不打印。
  3. \hidenumberingonleftpage是一样的,但是只适用于左页的情况。

您需要的是“冻结”行号的增加和段落显示。reledmac 手册的 §5.4.2 适合您。它解释了startlockendlock宏。

以下是 MWE:

\documentclass[12pt,a4paper,twoside]{scrbook}
\usepackage[]{reledmac}
\usepackage[]{reledpar}

% Set stanza indents
\setstanzaindents{8,5,6}
\setcounter{stanzaindentsrepetition}{2}

% Print a line number for every second line on the left side
\firstlinenum{1}
\linenumincrement{1}

% Disable the line numbering on the right side
\firstlinenumR{1000000000}

\begin{document}
\large
    \begin{pages}
    \begin{Leftside}
        \beginnumbering
            \begin{astanza}
                verse verse verse 1!&
                verse verse verse 2!&
                verse verse verse 3!&
                verse verse verse 4!\&
            \end{astanza}
            
            \pstart\startlock
                Some other text which should not be in verse form and therefore not numbered (basically an annotation which still will be translated). Let's just make it longer so we can see how it looks when spread over multiple lines.\endlock
            \pend \endlock
             \begin{astanza}
                verse verse verse 1!&
                verse verse verse 2!&
                verse verse verse 3!&
                verse verse verse 4!\&
            \end{astanza}
            
        \endnumbering
    \end{Leftside}
    \begin{Rightside}
        \beginnumbering
            \pstart
                This is a translation paragraph. Still just a translation paragraph. There is nothing interesting in here, please move on.
            \pend
            \pstart
                This is a translation paragraph. Still just a translation paragraph. There is nothing interesting in here, please move on.
            \pend
             \begin{astanza}
                verse verse verse 1!&
                verse verse verse 2!&
                verse verse verse 3!&
                verse verse verse 4!\&
            \end{astanza}
            
        \endnumbering
    \end{Rightside}
    \end{pages}
\Pages
\end{document}

相关内容