0

I am trying to add spaces between paragraphs when I start a new section of my document. \vskip and \bigbreak didn't add empty lines inside Parcolumns. Is there a proper way of doing this?

I am using this Overleaf [template][1].

I finally worked out the right way of doing this, helped by @maïeul, the maintainer of (r)(e)ledmac/(r)(e)ledpar LaTeX packages. The compilation problem happened because I needed to have a mirror of the left column on the right, with matching sections on both sides. For instance, when I added a new left section, I forgot to add a corresponding right section so LateX could compile the document correctly.

I have updated the FULL MWE below.

\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}
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – dexteritas Jun 20 '18 at 19:32
  • this is a hack, really. before the lines where you want a gap, add a line \strut\par. that will leave an actual (empty) line, which will, unfortunately, be counted and numbered. – barbara beeton Jun 20 '18 at 21:16
  • Thanks, @barbarabeeton. That did the trick! I had to add \strut\par \strut\par (two times) in order to get the space before the previous paragraph. – Claud Jun 20 '18 at 22:09
1
  1. To insert section between paragraph in parallel typesetting, you must use optional argument of \pstart. That will made the section title being parallel.
  2. To insert verticle space before that section title, you must add it also in the optional argument of pstart.

So

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

All is explained 1. In § 5.2.3 of reledmac handbook 2. In § 16 of reledmac handbook 3. In exampled provided with reledmac documentation

Full 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}
  • Thank you for this @maïeul. I'll look into the reledmac documentation later. Using your example into my document resulted in a compilation error. So far, inserting \strut\par to add empty lines before and/or a paragraph has proved to be a good workaround solution. – Claud Jun 21 '18 at 14:34
  • sorry, there was a typo in my code. corrected now. – Maïeul Jun 21 '18 at 16:58
  • I have complted with a FULL MWE. YOu should not use the workaround with \strut, which will create problem in some specific case. – Maïeul Jun 21 '18 at 17:08
  • Thank you you so muck for this explanation. I'm sure i'll be able to use it. I don't want to create numbered sections. All I want is to give headings to some sections of text and add more of the same within one pair, e.g. – Claud Jun 21 '18 at 18:33
  • \strut\par \strut\par \textbf{Heading} Other left side paragraph. Other left side paragraph. Other left side paragraph. Other left side paragraph. Other left side paragraph. Other left side paragraph. – Claud Jun 21 '18 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.