[XeTeX] multicol and RTL scripts

Adam McCollum acmccollum101 at gmail.com
Thu Feb 10 16:06:25 CET 2011


Hi Vafa,

Here is a minimal example, and my log file is attached. Thanks.

\documentclass{article}

\usepackage{multicol}
\usepackage{xltxtra, polyglossia}

\setmainlanguage{english}
\setotherlanguage{arabic}

\defaultfontfeatures{Scale=MatchLowercase}

\setromanfont [Ligatures={Common}, Mapping = {tex-text},
Numbers={OldStyle}]{Junicode}

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

\listfiles

\begin{document}

\begin{multicols}{2}
\begin{RTL}
\begin{Arabic}
وفي مُنْتَصَف شَهْر المُحَرَّم من سِتّ وَخَمْسِين وَسِتّمَائَة هُولَاكُو
 بِنَفْسِه على باب بَغْداد وفي يوم ولَيْلة بَنَى المَغُول بِالْجانِب
الشَرْقيّ سِيبَا اَعْنِي سُوراً عالِياً وَبَنَى بُوقَاتِيمُور وَسُنْجَاق
نُويَن وَبَايجُو نُويَن  بالجَنِب الغَربِيّ كذلك وَحَفَرُوا خَنْدَقاَ
عَمِيقاً دَاخِل السيبا وَنَصَبُوا المَنْجَنِيقَات   بِأَزَاءَ سُور بغداد من
جَمِيع الجَوَانِب ورتبوا العَرَّادَات  وَآلَات النَفط. وكان بَدْء القِتَال
ثَانيَ وَعِشْرِينَ مُحَرَّم. فَلَمَّا عَايَن الخَلِيفة العَجْز في نَفْسِه
وَالْخِذْلان من أَصْحابِه أَرْسَل صَاحِب دِيوَانِه وَابْن دَرْنُوش الى
خِدْمة هولاكو وَمَعَهم تُحَف نَزْرة.
\end{Arabic}
\end{RTL}
\end{multicols}

\end{document}

On Wed, Feb 9, 2011 at 9:38 PM, Vafa Khalighi <vafakhlgh at gmail.com> wrote:

>
>
> On Thu, Feb 10, 2011 at 8:44 AM, Adam McCollum <acmccollum101 at gmail.com>wrote:
>
>> Dear list members,
>>
>> I was working on an Arabic text and I wanted it in two columns. I soon
>> found out that the multicol package will make columns with Arabic, but they
>> are in the wrong order! I searched around and didn't find any solution. I
>> would be grateful for any help in fixing this.
>>
>>
>>
> This is odd. Both two-column options of the document class (2 columns) and
> multicol package will make columns (2 columns t0 10 columns) RTL, unless you
> got an old version of bidi. Perhaps you can provide a minimal example along
> your log file.
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110210/40cb5820/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arabic_columns_test.log
Type: application/octet-stream
Size: 32524 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20110210/40cb5820/attachment-0001.obj>


More information about the XeTeX mailing list