summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-parallel.html
blob: 042df44ed9901481f2fc397561bb47c5ddf273e8 (plain)
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
60
61
62
<head>
<title>UK TeX FAQ -- question label parallel</title>
</head><body>
<h3>Parallel setting of text</h3>
<p/>It&#8217;s commonly necessary to present text in two languages &#8216;together&#8217; 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}{&#60;left-width&#62;}{&#60;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 &#8212; the <i>pdfcolparallel</i> package, 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 &#8220;number of columns to specify&#8221;:
<blockquote>
<pre>
\usepackage{parcolumns}
...
\begin{parcolumns}[&#60;options&#62;]{3}
  \colchunk{&#60;Column 1 text&#62;}
  \colchunk{&#60;Column 2 text&#62;}
  \colchunk{&#60;Column 3 text&#62;}
  \colplacechunks
  ...
\end{parcolumns}
</pre>
</blockquote><p>
The &lt;<i>options</i>&gt; can specify the widths of the columns, whether to
place rules between the columns, whether to set the columns sloppy,
etc.  Again, there are issues with colours, which are addressed by the
<i>pdfcolparcolumns</i> package.
<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 &#8216;base&#8217; text of the document.
<dl>
<dt><tt><i>ledpar.sty</i></tt><dd>Distributed with <a href="http://mirror.ctan.org/macros/latex/contrib/ledmac.zip">macros/latex/contrib/ledmac</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/ledmac/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/ledmac.html">catalogue entry</a>
<dt><tt><i>parallel.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/parallel.zip">macros/latex/contrib/parallel</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/parallel/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/parallel.html">catalogue entry</a>
<dt><tt><i>parcolumns.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/contrib/sauerj.zip">macros/latex/contrib/sauerj</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/sauerj/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/parcolumns.html">catalogue entry</a>
<dt><tt><i>pdfcolparallel.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/oberdiek/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/pdfcolparallel.html">catalogue entry</a>
<dt><tt><i>pdfcolparcolumns.sty</i></tt><dd>pdfcolparcolumns]
</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>