Page LayoutFolding some pieces of text to odd numbered lines

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

Folding some pieces of text to odd numbered lines

Post by kornaros »

I face the following problem. I have some passages of English (or Latin)text. There are the corresponding translations in Spanish. For example
\newcommand{\pass1}{This is the first text in the original language}\newcommand{\pass2}{This is the next text}...etc and also
\newcommand{\trans1}{This is the translation of pass1 text}\newcommand{\trans2}{This is the translation of pass2text}. Is it possible to write down \pass1 and \pass2 and .... to odd numbered lines (1,3,5,...) and \trans1 , \trans2,... to even numbered lines in such way that \pass1 continues exactly from the point where the \pass1 finishes and similar \pass3 starts from the end of \pass2 ...and similar conditions for the translated texts \trans1, \trans2,...?

(In all cases LaTeX must respect the hyphenation of the original language of the pass texts and the hyphenation of Spanish language for the trans texts.)

Thanks

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

Post Reply