TransWikia.com

How to create a bilingual book where part, chapters, sections, subsections, table of contents are also bilingual

TeX - LaTeX Asked on July 19, 2021

I would like to write a bilingual book (say, English and French). The only requirements are that

  • The French text should be printed on the left-hand pages and the corresponding English translation printed on the right.

  • The page numbers for both the left-hand as well as the right hand side should be same.

Since I have no idea how to do this, being a rather beginner in using TeX, in the answer, please provide an MWE. Here is my attempt,

documentclass{book}
usepackage{parallel}
usepackage[french, english]{babel}
usepackage[utf8]{inputenc}
usepackage{lipsum}

begin{document}
frontmatter
    
mainmatter


begin{Parallel}[p]{}{}
    ParallelLText{selectlanguage{french} %
        tableofcontents
        part{}
        chapter{}
        section{}
        subsection{}
    }
    ParallelRText{ %
        selectlanguage{english}
        tableofcontents
        part{}
        chapter{}
        section{}
       subsection{}
    }

end{Parallel}

end{document}

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