Page Layoutparallel | Different Line Spacing

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mojo
Posts: 7
Joined: Sat Feb 26, 2011 5:19 am

parallel | Different Line Spacing

Post by mojo »

I'd like to have two parallel texts (different languages), one of which is double spaced (to allow me to mark it up with a pen) and the other is single spaced. To make them occupy similar vertical space, I'd make the double-spaced text wider than the single-spaced text.

I can't seem to get the parallel texts to use different line spacing.

I've tried using \linespread and \setstretch (including chasing them with \selectfont) and the spacing environments (doublespace, spacing). I have been unable to get anything other than identical line spacing in each text. Usually, what I specify in the Parallel*Text has no effect.

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{parallel}
\usepackage{setspace}
\begin{document}
\begin{Parallel}{1in}{1in}
\ParallelLText{
\setstretch{2}
\selectfont
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
}
\ParallelRText{
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
}
\end{Parallel}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
All the things I've tried in the left text don't have any effect.
Is this a ridiculous thing to attempt?
I don't know enough about LaTeX to make sense of looking at the package source. If it were necessary, I'd override one of the package macros, but I don't see anything that obviously sets the baselinestretch or does anything resembling font selection:

Code: Select all

Code, edit and compile here:
222 \newcommand{\ParallelLText}{%
223 \everypar{}\@restorepar\begingroup
224 \hbadness=3000
225 \let\footnote=\ParallelLFootnote
226 \ParallelWhichBox=0
227 \global\setbox\ParallelLBox=\vbox\bgroup \hsize=\ParallelLWidth
228 \aftergroup\ParallelAfterText
229 \begingroup \afterassignment\ParallelCheckOpenBrace \let\x=}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Any suggestions?

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

aw8988
Posts: 2
Joined: Sat Nov 05, 2011 9:47 pm

parallel | Different Line Spacing

Post by aw8988 »

Hallo!

I've got the same problem using ledpar.

I would like to typeset a doublespaced text with singlespaced translation. For some reason, though, I cannot use the setspace-commands.

Does anybody know how to solve or explain this problem?

I'd appreciate every kind of advice.

Here's a minimal example of my case:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{ledmac,ledpar}
\usepackage{setspace}
\newcommand{\dummy}{FOO\\BAR\\FOO\\BAR\\FOO\\BAR}
\begin{document}
\begin{pairs}
\begin{Rightside}
\beginnumbering
\pstart
\dummy
\pend
\endnumbering
\end{Rightside}
\begin{Leftside}
\beginnumbering
\pstart
\dummy
\pend
\endnumbering
\end{Leftside}
\Columns
\end{pairs}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

parallel | Different Line Spacing

Post by cgnieder »

I'd suggest using the paracol package:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{paracol,setspace,lipsum}
\begin{document}
\begin{paracol}{3}[\section{Test}]
\begin{nthcolumn}{0}\setstretch{2}
\lipsum[1]
\end{nthcolumn}
\begin{nthcolumn}{2}
\lipsum[1]
\end{nthcolumn}
\end{paracol}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
site moderator & package author
aw8988
Posts: 2
Joined: Sat Nov 05, 2011 9:47 pm

Re: parallel | Different Line Spacing

Post by aw8988 »

Thanks a lot, Clemens.

Usually, I need the ledpar and lemac packages for parallel texts with a critical apparatus. For this, paracol might not be suitable. In this particular case, though, it'd do, I think.

It's a pity though, that ledpar doesn't allow the setspace-commands ... does anybody happen to know why this is so?

Thanks again.

Alex
Post Reply