I have a LuaTex + eledmac
+ eledpar
setup for critical editions in syriac and english (on facing pages). Strangely, the syriac text, which is running RTL, is not aligned on the right, but on the left side of the column as soon as I am in the \begin{pages}...\end{pages}
structure of eledpar
.
The following MWE demonstrates what I mean. Can anyone help me make the syriac text of the \eledsection
and of the following syriac paragraph align to the right side of the whole page?
\documentclass{scrartcl}
\usepackage{fontspec}
\usepackage{eledmac,eledpar}
\setlength{\parindent}{0pt}
\newfontfamily\syriacfont[Script=Syriac,Scale=1.2]{estre.otf}
\newcommand{\textsyriac}[1] % Syriac inside LTR
{\bgroup\luatextextdir TRT\syriacfont #1\egroup}
\newcommand{\n} [1] % for digits inside Arabic text
{\bgroup\luatextextdir TLT #1\egroup}
\newcommand{\syriacfootnote} [1] % Syriac Footnotes
{\footnote{\textsyriac{#1}}}
\newenvironment{syriac} % Syriac paragraph
{\luatextextdir TRT\luatexpardir TRT\syriacfont}{}
\begin{document}
The following syriac paragraph appears right-aligned as a whole:
\begin{syriac}
1ܘܟܕ 2ܡܿܟܪܟܝ3ܢܢ ܐܪܟ4ܐܢܐ ܗ̄ 5ܡܘܪܐ6 ܗܿܝ ܩ7ܕܡܝܬܐ
\end{syriac}
\bigskip
But on the next page, neither the syriac section heading nor the syriac
paragraph are right-aligned, although they are correctly typsetted RTL:
\begin{pages}
\begin{Leftside}
\begin{syriac}
\beginnumbering
\pstart
%% This text is aligned on the left, but should be on the right:
\eledsection*{\textsyriac{ܡܿܟܪܟܝ}}
\pend
\pstart
\begin{syriac}
%% This text is aligned on the left, but should be on the right:
1ܘܟܕ 2ܡܿܟܪܟܝ3ܢܢ ܐܪܟ4ܐܢܐ ܗ̄ 5ܡܘܪܐ6 ܗܿܝ ܩ7ܕܡܝܬܐ
\end{syriac}
\pend
\endnumbering
\end{syriac}
\end{Leftside}
\begin{Rightside}
\beginnumbering
\pstart
\eledsection{English headline}
\pend
\pstart
Some english text.
\pend
\endnumbering
\end{Rightside}
\Pages
\end{pages}
\end{document}
\if@RTL
that occur in theeledmac.sty
/eledpar.sty
, or will it be more complicated than this?