TransWikia.com

Setting bilingual text

TeX - LaTeX Asked on July 31, 2020

How might one set a Greek text on even pages with English translation on odd? I suppose one could break the pages manually unless there is an easy better way.

One Answer

I came to this question because I wanted to know how to write a bilingual Text divided in odd and even (or left/right) pages.

I checked the package parallel and the links in the comments.

There were some examples but none of them were simple and complete to present a two page bilingual document.

As I will update a whole book into the bilingual-two-pages format, I present below the MWE I made to understand the concept and how parallel behaves.

I know this question is old, but it still was without a direct answer to it. This might help in the future.

documentclass{article}
usepackage{parallel}
usepackage[german, brazil]{babel}
usepackage[utf8]{inputenc}
usepackage{lipsum}

begin{document}

CAPE -- MWE package parallel with bilingual

clearpage

Before.

Pay attention to odd-even to start the text.

The next page is blank because the first textbf{parallel} is textbf{left}.

begin{Parallel}[p]{}{}
    ParallelLText{ %
        selectlanguage{german}

        Dieser Text ist auf Deutsch.

        left-text 1

        lipsum[1-3]
    }
    ParallelRText{ %
        selectlanguage{brazil}

        Este texto está em alemão.

        right-text 1

        lipsum[1-3]
    }
    ParallelPar
    ParallelLText{ %
        left-text 2.1

        lipsum[1-3]

        left-text 2.2

        vfill
    }
    ParallelRText{ %
        right-text 2.1

        lipsum[1-3]

        right-text 2.2

        vfill
    }
    ParallelPar

end{Parallel}

After

Text between.

lipsum[1-6]

Text between.

begin{Parallel}[p]{}{} %{linewidth}{linewidth}
    ParallelLText{ %
        left-text 3.1

        lipsum[1-5]

        left-text 3.2

        vfill

    }
    ParallelRText{ %
        right-text 3.1

        lipsum[1-5]

        right-text 3.2

        vfill
    }
    ParallelPar
    ParallelLText{left-text 4}
    ParallelRText{right-text 4}
    ParallelPar

    renewcommand{ParallelAtEnd}{text at end}
end{Parallel}

end{document}

Answered by FHZ on July 31, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP