Page LayoutOriginal text synchronized with the Translated.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
kornaros
Posts: 40
Joined: Wed Nov 30, 2011 12:11 am

Original text synchronized with the Translated.

Post by kornaros »

Dear Community!

I need to translate an ancient Greek text to English for a publishing house. The publisher prefers the following output: At the odd numbered lines (for example) there is only the original text. Below are the English translation i.e the translation is on even numbered lines. The problem is the synchronization i.e. each sentence of the original language must end at the same (vertical) position as the (more lengthy) corresponding translated sentence! This could be achieved in Word or Open Office but is very painful and time consuming with no perfect results. Is it possible to create a simple LaTeX command of the following form \greektext{original sentence}{translation} so that Latex will put translation sentence exactly below the original with sentence synchronization plus hyphenation for both languages or at least of the translation language? :?

Charis

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Original text synchronized with the Translated.

Post by nlct »

The only thing I can think of that comes close to your requirements is the gb4e package. Here's an example from the documentation:

Code: Select all

\documentclass{article}
\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex
\gll Wen jemand in die W\"uste zieht und lebt dort von
Heuschrecken oder sich im Wald verirrt hat und n\"ahrt
sich von Wurzeln und Beeren, \ldots\\
If someone in the desert draws and lives there from
grasshoppers or self {in the} woods errored has and nourishes
self from roots and berries \ldots\\
\trans `if one retreats to the desert and lives there from
grasshoppers or gets lost in the woods and lives off of roots
and berries'
\end{exe}
\end{document}
Regards
Nicola Talbot
kornaros
Posts: 40
Joined: Wed Nov 30, 2011 12:11 am

Re: Original text synchronized with the Translated.

Post by kornaros »

Thank you very much for your replay! :)

Best Wishes
Charis
kornaros
Posts: 40
Joined: Wed Nov 30, 2011 12:11 am

Re: Original text synchronized with the Translated.

Post by kornaros »

I tried \usepackage{gb4e} but the sentences are not perfectly synchronized... I always want the end of the original sentence is at the same (vertical) position. So I would prefer a command like \synchtexts{original sentence}{translation of this sentence} to achieve this result (optionally \synchtexts must respects the hyphenation rules of 2 languages or at least of the second one i.e. of the translation).

Could you please someone help me? :?

Charis
Post Reply