![如何在列文本中的两个段落之间添加空格?](https://linux22.com/image/378150/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%88%97%E6%96%87%E6%9C%AC%E4%B8%AD%E7%9A%84%E4%B8%A4%E4%B8%AA%E6%AE%B5%E8%90%BD%E4%B9%8B%E9%97%B4%E6%B7%BB%E5%8A%A0%E7%A9%BA%E6%A0%BC%EF%BC%9F.png)
当我开始文档的新部分时,我尝试在段落之间添加空格。 \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
- 要在平行排版中在段落之间插入节,必须使用 \pstart 的可选参数。这将使节标题平行。
- 要在该章节标题前插入垂直空格,您还必须将其添加到 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}