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
Page Layout ⇒ Parallel bilingual text
Parallel bilingual text
- Attachments
-
- problem.png (176.88 KiB) Viewed 10495 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
Parallel bilingual text
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}
Re: Parallel bilingual text
yes, and the, for example, titles are on the next page (latex makes a pagebreak), and it is not what I want.
Re: Parallel bilingual text
Can you post a minimal example that demonstrates the problem?
Parallel bilingual text
I did notice that when I inserted line breaks 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.
Code: Select all
\\*
Parallel bilingual text
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.
and so on...
For a long text it's boring, so I made my command \bi (for bilingual):
and in document I write inside parallel environment:
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
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
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}
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}
Obviously, in preamble I use \usepackage[1st lang,2nd lang]{babel}, too,
for correct hyphenation and other stuff.
Hope it helps.
Regards
Pietro