1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<head>
<title>UK TeX FAQ -- question label parallel</title>
</head><body>
<h3>Parallel setting of text</h3>
<p/>It’s commonly necessary to present text in two languages ‘together’ on a
page, or on a two-page spread. For this to be satisfactory, one usually
needs some sort of alignment between the two texts.
<p/>The <i>parallel</i> package satisfies the need, permitting
typesetting in two columns (not necessarily of the same width) on one
page, or on the two opposing pages of a two-page spread. Use can be
as simple as
<blockquote>
<pre>
\usepackage{parallel}
...
\begin{Parallel}{<left-width>}{<right-width}
\ParallelLText{left-text}
\ParallelRText{right-text}
\ParallelPar
...
\end{Parallel}
</pre>
</blockquote><p>
<i>Parallel</i> can get terribly confused with colour changes, in
PDFTeX; the indefatigable Heiko Oberdiek has a patch for this
issue — the <i>pdfcolparallel</i>, which maintains separate
colour stacks for the columns.
<p/>The <i>parcolumns</i> package can (in principle) deal with any
number of columns: the documentation shows its use with three
columns. Usage is rather similar to that of <i>parallel</i>,
though there is of course a “number of columns to specify”:
<blockquote>
<pre>
\usepackage{parcolumns}
...
\begin{parcolumns}[<options>]{3}
\colchunk{<Column 1 text>}
\colchunk{<Column 2 text>}
\colchunk{<Column 3 text>}
\colplacechunks
...
\end{parcolumns}
</pre>
</blockquote><p>
The <<i>options</i>> can specify the widths of the columns, whether to
place rules between the columns, whether to set the columns sloppy, etc.
<p/>The <i>ledpar</i> package is distributed with (and integrated with)
the <a href="FAQ-linenos.html"><i>ledmac</i> package</a>. It provides parallel
setting carefully integrated with the needs of a scholarly text,
permitting translation, or notes, or both, to be set in parallel with
the ‘base’ text of the document.
<dl>
<dt><tt><i>ledpar.sty</i></tt><dd>Distributed with <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/ledmac.zip">macros/latex/contrib/ledmac</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/ledmac/">browse the directory</a>)
<dt><tt><i>parallel.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/parallel.zip">macros/latex/contrib/parallel</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/parallel/">browse the directory</a>)
<dt><tt><i>parcolumns.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/sauerj.zip">macros/latex/contrib/sauerj</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/sauerj/">browse the directory</a>)
<dt><tt><i>pdfcolparallel.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/oberdiek/">browse the directory</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=parallel">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=parallel</a>
</body>
|