回忆录 `\sourceatright` 使用 reledpar 时出错

回忆录 `\sourceatright` 使用 reledpar 时出错

我无法理解为什么会出现此错误。sourceatright 和 flushright 均失败。

!Missing } inserted.
<inserted text> 
                }
l.32 \sourceatright{Book 1}

这是 MWE

\documentclass[9pt,a6paper]{memoir}
%%%%%%%%%reledmac and reledpar optons%%%%%%%%%%%%%%%%%%%%%
\usepackage[nocritical,noeledsec,noend,noledgroup,nofamiliar]{reledmac}
\usepackage[]{reledpar} 

%%%%%%%%POLYGLOSSIA%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{french}

%%%%%%%%FLUSH RIGHT wrapper command%%%%%%%
\newcommand\fright[1]{%
{\begin{flushright} #1 \end{flushright}}%
}

\setlength\parindent{0pt}
\numberlinefalse

\begin{document}

\begin{pages}
  \begin{Leftside}
   \begin{english}
    \begingroup
     \beginnumbering
      \autopar


verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse
\sourceatright{Book 1}

verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse
\fright{Book 2}

    \endnumbering
   \endgroup
  \end{english}
\end{Leftside}

\begin{Rightside}
   \begin{french}
    \begingroup
     \beginnumbering
      \autopar

verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset
\sourceatright{Book 1}

verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset
\fright{Book 2}


      \endnumbering
     \endgroup
   \end{french}
\end{Rightside}
\end{pages}
\Pages

\end{document}

答案1

您必须使用可选参数 \pstart 来避免排版非传统段落文本时出现问题。

\documentclass[9pt,a6paper]{memoir}
%%%%%%%%%reledmac and reledpar optons%%%%%%%%%%%%%%%%%%%%%
\usepackage[nocritical,noeledsec,noend,noledgroup,nofamiliar]{reledmac}
\usepackage[]{reledpar} 

%%%%%%%%POLYGLOSSIA%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{french}

%%%%%%%%FLUSH RIGHT wrapper command%%%%%%%
\newcommand\fright[1]{%
{\begin{flushright} #1 \end{flushright}}%
}
\setlength\parindent{0pt}
\numberlinefalse

\begin{document}

\begin{pages}
  \begin{Leftside}
   \begin{english}
     \beginnumbering

\pstart
verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse
\pend[\sourceatright{Book 1}]
\pstart
verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse\\
verse verse verse verse
\pend[\fright{Book 2}]

    \endnumbering

  \end{english}
\end{Leftside}

\begin{Rightside}
   \begin{french}

     \beginnumbering

\pstart
verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset
\pend[\sourceatright{Book 1}]
\pstart
verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset\\
verset verset verset verset
\pend[\fright{Book 2}]


      \endnumbering
   \end{french}
\end{Rightside}
\end{pages}
\Pages

\end{document}

还请注意以下几点: - 您不需要添加\begingroup\endgroup - 当您排版诗句时,您应该使用stanza相关命令,而不是手动插入\\。请阅读手册以了解这一点。

相关内容