reledmac/reledpar 中的带行号的运行标题

reledmac/reledpar 中的带行号的运行标题

我一直在用 reledpar 排版《马可受难记》的三种语言文本(希腊语、拉丁语和西班牙语)。我希望每页都有一个页眉,上面有每页出现的章节和经文(理想情况下是“马可福音 14:1-5”,能够为“马可福音 14:60-15:2”等构建一些逻辑)。按照 reledmac 提供的示例,我能够正确设置左侧,但似乎无法进入右侧页面。顺便说一句,我必须使用linunumannotation批判性设备。

\documentclass[11pt]{memoir}

\usepackage[noresetlinenumannotation]{reledmac}
\usepackage[shiftedpstarts]{reledpar}

\def\sectionmark#1{}%Disable section marking

\newcounter{chap}
\setcounter{chap}{13}

\newcommand{\bc}[1]{%
    \edef\tmp{\noexpand\setcounter{chap}{#1}}%\tmp will be expanded 
    \expandafter\doinsidethislinehook\expandafter{\tmp}%First, we expand \tmp to  the value, and then, pass the result as argument to \doinsidelinehook
    {\large{\textbf{#1}}}%
}

\newcommand{\bv}[1]{\textbf{#1}\linenumannotation{#1}\doinsidethislinehook{\markboth{#1}{#1}}}

\makepagestyle{content}
\makeevenhead{content}{Mk \thechap:\rightmark - \leftmark}{}{\thepage}
\makeoddhead{content}{\thepage}{}{Mk \thechap:\rightmark-\leftmark}
\pagestyle{content}

\begin{document}
    
\begin{pages}
    \begin{Leftside}
        \beginnumbering
                
        \pstart
        \bc{14} \bv{1} First verse in Greek \bv{2} Second verse in Greek.
        \pend
        
        \endnumbering
    \end{Leftside}
    \begin{Rightside}
        \beginnumbering
        
        \pstart
        \bc{14} \bv{1} First verse in English. \bv{2} Second verse in English.
        \pend
    
        \endnumbering
    \end{Rightside}
\end{pages}
\Pages
    
\end{document}

mwe 的汇编

相关内容