Text FormattingParallel package problem

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bdr
Posts: 4
Joined: Thu Dec 03, 2009 4:15 pm

Parallel package problem

Post by bdr »

I'm creating a theatrical script with a few of my own environments, but I'm having problems with the vertical placement of Parallel environments. I made a short example that shows the start of the problem:

Code: Select all

\documentclass[12pt,paper=a4]{scrbook}
\usepackage[english]{polyglossia}
\usepackage{blindtext}
\usepackage{parallel}

\newlength{\myindent}
\setlength{\myindent}{\the\parindent}
\setlength{\parindent}{0pt}
\addtolength{\parskip}{\baselineskip}

\newcommand{\speaker}[1]{\ignorespaces\par\hspace{2\myindent}\textsc{#1}\\*}

\newcommand{\Mytext}{%
\speaker{Jan}
\blindtext

\speaker{Arnold}
\vspace{-\baselineskip}
\begin{Parallel}{}{}
\ParallelLText{\blindtext}
\ParallelRText{\itshape \blindtext}
\end{Parallel}

\speaker{Jan}
\blindtext
}

\begin{document}
\Mytext
\Blinddocument
\Mytext
\end{document}
Look at the placement of "Arnold" label at the first and last page. In my real text, the problem is much bigger: after 30 pages, (4 chapters of about 5 sections each) the label is seperated from the parallel environment by a \baselineskip, but labels followed by a plain paragraph overlap with this paragraph. See attachment.
Attachments
bewerking-bug-parallel.png
bewerking-bug-parallel.png (219.59 KiB) Viewed 2378 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

bdr
Posts: 4
Joined: Thu Dec 03, 2009 4:15 pm

Re: Parallel package problem

Post by bdr »

The problem can be solved by switching to the parcolumns package, but parcolumns does not cooperate with lineno.
Post Reply