如何在列文本中的两个段落之间添加空格?

如何在列文本中的两个段落之间添加空格?

当我开始文档的新部分时,我尝试在段落之间添加空格。 \vskip 和 \bigbreak 没有在 Parcolumns 内添加空行。 有没有正确的方法可以做到这一点?

我正在使用这个 Overleaf [模板][1]。

在 (r)(e)ledmac/(r)(e)ledpar LaTeX 软件包维护者 @maïeul 的帮助下,我终于找到了正确的方法。编译问题发生的原因是我需要在右侧有左列的镜像,两侧有匹配的部分。例如,当我添加新的左侧部分时,我忘记添加相应的右侧部分,以便 LateX 可以正确编译文档。

我已更新下面的完整 MWE。

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{csquotes}
\usepackage{palatino,url}
\usepackage[portuguese,english]{babel}
\tolerance=5000\relax%

\usepackage[series={},nocritical,noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\usepackage[]{reledpar}
\usepackage[]{reledmac}
\usepackage{parcolumns}

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{My name}
\rhead{page \thepage}
\cfoot{some text}
%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\footrulewidth}{0.4pt}

\begin{document}

\date{(taken from the reledmac documentation)}
\title{Setting Parallel Texts with reledpar}
\maketitle

\begin{abstract}
This file provides two minimal examples of typesetting parallel texts with reledmac plus reledpar. 

The first minimal example is parallel typesetting in columns, the second one is parallel typesetting in pages.
\end{abstract}


\begin{pairs}
    \begin{Leftside}
        \beginnumbering
            \pstart
                Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph.
            \pend
            \pstart[\vskip\baselineskip\section{First Left Section title}]
Other left side paragraph. Other left side paragraph.

Other left side paragraph. Other left side paragraph.
\pend 
\pstart[\vskip\baselineskip\section{Second Left Section title}]
Other left side paragraph. Other left side paragraph.

Other left side paragraph. Other left side paragraph
            \pend
            \pstart[\vskip\baselineskip\section{Third Left Section title}]
Other left side paragraph. Other left side paragraph.

Other left side paragraph. Other left side paragraph.
            \pend
             \pstart[\vskip\baselineskip\section{Fourth Left Section title}]
Other left side paragraph.  Other left side paragraph. Other left side paragraph.
\pend 
        \endnumbering
    \end{Leftside}
    \begin{Rightside}
        \beginnumbering
            \pstart
                Right side paragraph. Right side paragraph. Right side paragraph. Right side paragraph.
             \pend
            \pstart[\vskip\baselineskip\section{First Right Section title}]
Other right side paragraph. Other right side paragraph.

Other right side paragraph. Other right side paragraph.
\pend
\pstart[\vskip\baselineskip\section{Second Right Section title}]
Other right side paragraph.  Other right side paragraph. Other right side paragraph.
            \pend
             \pstart[\vskip\baselineskip\section{Third Right Section title}]
Other right side paragraph. Other right side paragraph.

Other right side paragraph. Other right side paragraph.
            \pend
             \pstart[\vskip\baselineskip\section{Fourth Right Section title}]
Other right side paragraph.  Other right side paragraph. Other right side paragraph.
\pend 
        \endnumbering
    \end{Rightside}

\end{pairs} 
\Columns



\end{document}

答案1

  1. 要在平行排版中在段落之间插入节,必须使用 \pstart 的可选参数。这将使节标题平行。
  2. 要在该章节标题前插入垂直空格,您还必须将其添加到 pstart 的可选参数中。

所以

\pstart[\vskip2\baselineskip\section{My section title}]

所有内容均已解释 1. 在 reledmac 手册的第 5.2.3 节中 2. 在 reledmac 手册的第 16 节中 3. 在 reledmac 文档提供的示例中

完整 MWE

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{csquotes}
\usepackage{palatino,url}
\usepackage[portuguese,english]{babel}
\tolerance=5000\relax%

\usepackage[series={},nocritical,noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\usepackage[]{reledpar}
\usepackage[]{reledmac}
\usepackage{parcolumns}

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{My name}
\rhead{page \thepage}
\cfoot{some text}
%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\footrulewidth}{0.4pt}

\begin{document}

\date{(taken from the reledmac documentation)}
\title{Setting Parallel Texts with reledpar}
\maketitle

\begin{abstract}
This file provides two minimal examples of typesetting parallel texts with reledmac plus reledpar. 

The first minimal example is parallel typesetting in columns, the second one is parallel typesetting in pages.
\end{abstract}


\begin{pairs}
    \begin{Leftside}
        \beginnumbering
            \pstart
                Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph.
            \pend
            \pstart[\vskip\baselineskip\section{Section title}]
Other left side paragraph.  Other left side paragraph.  Other left side paragraph.
Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.
            \pend
        \endnumbering
    \end{Leftside}
    \begin{Rightside}
        \beginnumbering
            \pstart
                Right side paragraph. Right side paragraph. Right side paragraph. Right side paragraph.
            \pend
            \pstart[\vskip\baselineskip\section{Section title}]
Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph.
right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph.            
            \pend
        \endnumbering
    \end{Rightside}

\end{pairs} 
\Columns

%\begin{pages}
 %   \begin{Leftside}
  %      \beginnumbering
%            \pstart
         %       Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph. Left side paragraph.
 %           \pend
  %          \pstart
          %      Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.  Other left side paragraph.
 %           \pend
   %     \endnumbering
 %   \end{Leftside}
 %   \begin{Rightside}
 %       \beginnumbering
  %          \pstart
   %             Right side paragraph. Right side paragraph. Right side paragraph. Right side paragraph.
    %        \pend
      %      \pstart
   %             Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph. Other right side paragraph.
       %     \pend
     %   \endnumbering
 %   \end{Rightside}

%\end{pages} 
%\Pages

\end{document}

相关内容