<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass{book}
\usepackage[osf,p,nomath]{libertinus}
\usepackage{microtype}
\usepackage[pdfusetitle,hidelinks]{hyperref}
\usepackage[series={},nocritical,noend,nofamiliar,noledgroup]{reledmac}
\usepackage{reledpar}

\usepackage{graphicx}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{russian}
\setotherlanguage{hebrew}
\usepackage{metalogo}

\linenumincrement*{1}
\firstlinenum*{1}
\setlength{\Lcolwidth}{0.48\textwidth}
\setlength{\Rcolwidth}{0.48\textwidth} 

\begin{document}

\title{Parallel columns in two different languages}
\date{}

\maketitle

{\small
This file provides an example of typesetting parallel columns in two different languages, using reledpar, polyglossia and \XeLaTeX.

The main language is English. The left column is in Russian, the right column in Hebrew.
We have enlarged \verb+\Lcolwidth+ and  \verb+\Rcolwidth+ to avoid problem with hyphenations.

We also used \verb+\eledchapter+, which implies that chapter titles are printed with accompanying line numbers. 

For an example with \LuaLaTeX, look at \href{./lualatex-parallel-rtl.tex}{lualatex-parallel-rtl.tex}.
}



\begin{pairs}

\begin{Rightside} 
\begin{RTL}
\begin{hebrew}
\beginnumbering
\pstart
\eledchapter{ï»¿×”×ž××ž×¨ ×”×©×&nbsp;×™}\ledleftnote{s}
\pend
\pstart
×‘×¤×&nbsp;×•×ª ×”×ª×•×¨×™×•×ª, ×¨×´×œ ×©×”× ×™×¡×•×“×•×ª ×•×¢×ž×•×“×™× ××©×¨ ×‘×™×ª ××œ×”×™× ×&nbsp;×›×•×Ÿ ×¢×œ×™×”×, ×•×‘×ž×¦×™××•×ª× ×™×¦×™×¨ ×ž×¦×™××•×ª ×”×ª×•×¨×” ×ž×¡×“×¨×ª ×ž×ž×&nbsp;×• ×™×ª×‘×¨×š, ×•××œ×• ×™×¦×™×¨ ×”×¢×“×¨ ××—×ª ×ž×”× ×ª×¤×œ ×”×ª×•×¨×” ×‘×›×œ×œ×” ×—×œ×™×œ×”.
\pend    
\endnumbering
\end{hebrew}
\end{RTL}
\end{Rightside}




\begin{Leftside} 
\begin{russian}
\beginnumbering
\pstart
\eledchapter{Ð¢Ñ€Ð°ÐºÑ‚Ð°Ñ‚ Ð’Ñ‚Ð¾Ñ€Ð¾Ð¹}   
\pend 
\pstart
Ðž ÐºÑ€Ð°ÐµÑƒÐ³Ð¾Ð»ÑŒÐ½Ñ‹Ñ… [Ð¿Ñ€Ð¸Ð½Ñ†Ð¸Ð¿Ð°Ñ…] Ð¢Ð¾Ñ€Ñ‹, Ð¸Ð¼ÐµÐµÑ‚ÑÑ Ð²Ð²Ð¸Ð´Ñƒ, ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ðµ [ÐµÑÑ‚ÑŒ] Ð¾ÑÐ½Ð¾Ð²Ñ‹ Ð¸ ÑÑ‚Ð¾Ð»Ð¿Ñ‹ Ð½Ð° ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ñ… Ð´Ð¾Ð¼ Ð‘-Ð¶Ð¸Ð¹ Ð¾Ð¿Ð¸Ñ€Ð°ÐµÑ‚ÑÑ/Ð½Ð°Ñ…Ð¾Ð½, Ð¸ Ñ ÑÑƒÑ‰ÐµÑÑ‚Ð²Ð¾Ð²Ð°Ð½Ð¸ÐµÐ¼ Ð¸Ñ… Ð¼Ð¾Ð¶ÐµÑ‚ Ð±Ñ‹Ñ‚ÑŒ Ð¿Ñ€ÐµÐ´ÑÑ‚Ð°Ð²Ð»ÐµÐ½Ð¾ ÑÑƒÑ‰ÐµÑÑ‚Ð²Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð¢Ð¾Ñ€Ñ‹ ÑƒÐ¿Ð¾Ñ€ÑÐ´Ð¾Ñ‡ÐµÐ½Ð½Ð¾Ð¹ Ð¾Ñ‚ ÐÐµÐ³Ð¾, Ð±Ð»Ð°Ð³Ð¾ÑÐ»Ð¾Ð²ÐµÐ½Ð½Ð¾Ð³Ð¾, Ð¸ ÐµÑÐ»Ð¸ Ð±Ñ‹ Ð±Ñ‹Ð»Ð¾ Ð¿Ñ€ÐµÐ´ÑÑ‚Ð°Ð²Ð»ÐµÐ½Ð¾ Ð¾Ñ‚ÑÑƒÑ‚ÑÑ‚Ð²Ð¸Ðµ Ð¾Ð´Ð½Ð¾Ð³Ð¾ Ð¸Ð· Ð½Ð¸Ñ… â€” ÑƒÐ¿Ð°Ð´ÐµÑ‚ Ð¢Ð¾Ñ€Ð° Ð² Ð¾Ð±Ñ‰ÐµÐ¼, [Ð‘-Ð¶Ðµ] ÑƒÐ¿Ð°ÑÐ¸.
\pend
\endnumbering
\end{russian}
\end{Leftside}

\end{pairs}
\Columns
\end{document}
</pre></body></html>