Page LayoutParallel bilingual text

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
eire00
Posts: 3
Joined: Wed Feb 23, 2011 7:43 pm

Parallel bilingual text

Post by eire00 »

Hi!

I am trying to typeset a bilingual text on parallel pages using "parallel" package.

The major problem I have here is that the corresponding elements (e.g. titles) are not in the same places on both pages (example in the attatchment).

Is there any way to make latex somehow to place them equally on both pages?

Piotr
Attachments
problem.png
problem.png (176.88 KiB) Viewed 10494 times

Recommended reading 2024:

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

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

mojo
Posts: 7
Joined: Sat Feb 26, 2011 5:19 am

Parallel bilingual text

Post by mojo »

Have you tried making the titles (or any other paragraphs you wish to align horizontally) their own set of parallel texts?

Code: Select all

\begin{Parallel}{3in}{3in}
\ParallelLText{
párrafo uno
}
\ParallelRText{
paragraph one
}
\ParallelPar

\ParallelLText{
Título 2
...
}
\ParallelRText{
Title 2

...
}
...
\end{Parallel}
eire00
Posts: 3
Joined: Wed Feb 23, 2011 7:43 pm

Re: Parallel bilingual text

Post by eire00 »

yes, and the, for example, titles are on the next page (latex makes a pagebreak), and it is not what I want.
mojo
Posts: 7
Joined: Sat Feb 26, 2011 5:19 am

Re: Parallel bilingual text

Post by mojo »

Can you post a minimal example that demonstrates the problem?
mojo
Posts: 7
Joined: Sat Feb 26, 2011 5:19 am

Parallel bilingual text

Post by mojo »

I did notice that when I inserted line breaks

Code: Select all

\\*
in the texts that Parallel got totally thrown off and did something resembling the screen shot you showed. My solution was to make paragraphs out of each line by (I was doing an epic poem) inserting a blank line in between each line.
ziopietro
Posts: 1
Joined: Wed May 18, 2011 2:18 pm

Parallel bilingual text

Post by ziopietro »

Hi,

maybe you got it meantime, I read it just now. No extra line alignment needed, you must end each paragraph pair with \ParallelPar command. E.g.

Code: Select all

\ParallelLText{1st lang title}
\ParallelRText{2nd lang title}
\ParallelPar

\ParallelLText{1st lang paragraph 1}
\ParallelRText{2nd lang paragraph 1}
\ParallelPar

\ParallelLText{1st lang paragraph 2}
\ParallelRText{2nd lang paragraph 2}
\ParallelPar
and so on...

For a long text it's boring, so I made my command \bi (for bilingual):

Code: Select all

\newcommand{\bi}[2]{\selectlanguage{1st lang}\ParallelLText{#1}%
\selectlanguage{2nd lang}\ParallelRText{#2}%
\ParallelPar}
and in document I write inside parallel environment:

Code: Select all

\bi{1st lang title}{2nd lang title}
\bi{1st lang paragraph 1}{2nd lang paragraph 1}
\bi{1st lang paragraph 2}{2nd lang paragraph 2}
and so on...

Obviously, in preamble I use \usepackage[1st lang,2nd lang]{babel}, too,
for correct hyphenation and other stuff.

Hope it helps.

Regards
Pietro
Post Reply