Page Layout ⇒ Parallel bilingual text
Parallel bilingual text
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 (176.88 KiB) Viewed 10826 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Parallel bilingual text
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
Re: Parallel bilingual text
Parallel bilingual text
Code: Select all
\\*
Parallel bilingual text
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