平行文本!在垂直模式下不能使用“\lastbox”!

平行文本!在垂直模式下不能使用“\lastbox”!

平行文本设置中关闭时出现错误\Columns,我不明白是什么原因造成的。

\documentclass[draft]{book}
%% Additional note from LLT: you don't need fontspec or xelatex for reledmac or reledpar to work. However, if your document _does_ involve different languages with different scripts/fonts (e.g. English and Greek or Arabic etc), then it's a good idea to use those packages -- see https://www.overleaf.com/read/wfdxqhcyyjxz for an example
%
\usepackage[T2A, T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian, french]{babel}
%\usepackage{lmodern}
\usepackage{lscape}
\usepackage[a4paper, landscape, left=1in, right=1in, bottom=1.5in, top=1in]{geometry} %, showframe]
\usepackage[series={},nocritical,noend,noeledsec,nofamiliar,noledgroup]{reledmac}

\usepackage{reledpar}
\usepackage{epigraph}

\setlength\epigraphwidth{.3\textwidth}
\setlength\epigraphrule{0pt}

\usepackage{comment}        

\usepackage[parfill]{parskip}
\setlength{\parskip}{1ex}
\setlength{\parindent}{1ex}

\setgoalfraction{0.8}
\numberlinefalse
\begin{document}   
\begin{sloppypar}

\begin{pairs}
    \begin{Leftside}
    \selectlanguage{russian}
      \beginnumbering

        \pstart[
        \chapter*{\foreignlanguage{russian}{ИСТОРИЯ ПЕРВАЯ}}
        \section*{\foreignlanguage{russian}{Суета Вокруг Дивана}}]
        \pend
        \pstart
        Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. Бессмыссленный текст. 
        \pend
      \endnumbering
    \end{Leftside}
    \begin{Rightside}
    \selectlanguage{english}
      \beginnumbering

        \pstart[
        \chapter*{THE FIRST TALE}
        \section*{Run Around a Sofa}]
        \pend
        \pstart
        Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy text. 
        \pend

     \endnumbering
    \end{Rightside}
\end{pairs} 
\Columns
\end{sloppypar}
\end{document}

第 58 行。您不能在垂直模式下使用“\lastbox”。\Columns

答案1

如果我在 \pstart 的可选参数后添加一些虚拟文本,它对我来说就可以正常工作:

\documentclass[draft]{book}
%% Additional note from LLT: you don't need fontspec or xelatex for reledmac or reledpar to work. However, if your document _does_ involve different languages with different scripts/fonts (e.g. English and Greek or Arabic etc), then it's a good idea to use those packages -- see https://www.overleaf.com/read/wfdxqhcyyjxz for an example
%
\usepackage[T2A, T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian, french]{babel}
%\usepackage{lmodern}
\usepackage{lscape}
\usepackage[a4paper, landscape, left=1in, right=1in, bottom=1.5in, top=1in]{geometry} %, showframe]
\usepackage[series={},nocritical,noend,noeledsec,nofamiliar,noledgroup]{reledmac}

\usepackage{reledpar}
\usepackage{epigraph}

\setlength\epigraphwidth{.3\textwidth}
\setlength\epigraphrule{0pt}

\usepackage{comment}

\usepackage[parfill]{parskip}
\setlength{\parskip}{1ex}
\setlength{\parindent}{1ex}

\setgoalfraction{0.8}
\numberlinefalse
\begin{document}
\begin{sloppypar}

\begin{pairs}
    \begin{Leftside}
    \selectlanguage{russian}
      \beginnumbering

        \pstart[
        \chapter*{\foreignlanguage{russian}{ИСТОРИЯ ПЕРВАЯ}}
        \section*{\foreignlanguage{russian}{Суета Вокруг Дивана}}]
        sss
        \pend

      \endnumbering
    \end{Leftside}
    \begin{Rightside}
    \selectlanguage{english}
      \beginnumbering

        \pstart[
        \chapter*{THE FIRST TALE}
        \section*{Run Around a Sofa}]
        sss
        \pend

     \endnumbering
    \end{Rightside}
\end{pairs}
\Columns
\end{sloppypar}
\end{document}

相关内容