Line numbers involving multiline lemmata will not display properly in Arabic. (For comparison, I have included an English passage with a multiline lemma. No problem there.) In this minimal working example, the line number of the first Arabic lemma displays correctly as '1', but line numbers of the second lemma show up as '0' where they should be '2-4'. (Note: While compiling, I get the error message '! Extra }, or forgotten \endgroup.'.)

    % !TEX encoding = UTF-8 Unicode
    % !TEX TS-program = xelatex



    \Xbeforeinserting[A]{\LTR} % I took these commands from the example 2-reledmac-right-to-left.tex, where they edited a Hebrew text.
    \Xlemmaseparator[A]{[} % Will be reversed by Arabic font

    %polyglossia packages - polyglossia must be first

    \newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Traditional Arabic}

    \title{Minimal Working Example}
    \author{Emre Coşkun}



    \edtext{كتبه وشكّله وصحّحه}{\Afootnote{om. \textbf{A}}}

    \edtext{كتبه وشكّله وصحّحه مقابلة وحلّاً الفقير إلى الله تعالى محمّد بن عمر بن أحمد بن أبي جرادة. وفرغ منه في الثاني من ذي الحجّة سنة أربع وثمانين وستّمائة حامداً لله تعالى ومصلّياً على سيّدنا محمّد وعلى آله وصحبه ومسلّماً.}{\Afootnote{om. \textbf{A}}}

    \section{New Section}
    \edtext{We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know that is not true. (Robert Wilensky)}{\Bfootnote{om. \textbf{B}}}

  • I think there is a bug in reledmac. I will look on it this afternoon.
    – Maïeul
    Commented Oct 6, 2016 at 6:35
  • that is indeed a bug of reledmac. I am working on.
    – Maïeul
    Commented Oct 7, 2016 at 16:14

1 Answer 1


The version 2.18.0 of reledmac, just send on CTAN, solve this bug with long edtext in Right-to-Left mode.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .