Since upgrading MiKTeX I have a problem with bilingual documents English/Arabic: All header numberings, the numbers of an enumerated list (in English) and any number in regular English text which is immediately followed by a period is typeset right to left.

Here is an example:

%!TEX TS-program = xelatex
\documentclass[11pt, DIV=15, BCOR=10mm,parskip=half, headings=normal,openright,headsepline, 

\newfontfamily\arabicfont[Script=Arabic, Mapping=arabicdigits, Scale=1.6]{Scheherazade}

    \chapter[Chapter One]{XXXXX} 
            Enumerated lists, first in Arabic

            \item   الكتاب جديد.    
            \item   الطالب جميل.  

    everything is OK. But in English .....

        \item  An item in an English environment
        \item  Just a second one

Now normal text in English. But when a number is followed by a period, we run into the same problem, like
"This happened in 1999."

If I change this to "This happened in 1999 .", just adding a space before the period, it works OK, only I don't want that space there.

        \item  الطالب في مكتب.
        \item  المدير في المكتب.
        \item  المكتبة بعيدة عن الجامعة.
        \item  المكتبة قريبة من الجامعة.
        \item  انا طالبة في هذه الجامعة.
        \item  انا المدير في هذا المكتب.
  • 1
    Welcome to TeX.SX! Please provide a small LaTeX document showing the problem you encounter, such that it becomes possible to copy the code and run it on our installations. Use the edit button at the bottom of your post to add the code. – gernot Sep 16 '16 at 21:52
  • I actually supplied a small document which produces these errors, but I can't see it anymore. I must have done it wrong. Additionally I am temporarily banned from any more edits - no idea why. So I would happily supply it again with a little guidance. – user81292 Sep 17 '16 at 15:44
  • I have no control over this platform. But if you give me the link to your document as a comment, I can add it to the question for you. – gernot Sep 17 '16 at 18:18
  • I have put the sample into my dropbox. The link to it is: dropbox.com/sh/r7y4tyipbzsbexx/AACwegHvBBPHfS-2Zh54SYDQa?dl=0 – user81292 Sep 18 '16 at 8:00
  • This must be a problem specific to MiKTeX, or to this particular version of MiKTeX. I just compiled your document on Linux with TeXLive 2016, and it looks fine. – gernot Sep 18 '16 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.