[XeTeX] sectioning commands with arabxetex
Vafa Khalighi
vafakhlgh at gmail.com
Wed Mar 16 09:41:40 CET 2011
http://tex.stackexchange.com/questions/10589/fix-nested-section-numbers-in-rtl-languages-with-polyglossia/10650#10650
On Wed, Mar 16, 2011 at 7:33 PM, Abdulrahman Al-Abdusalalm <
abdulrhman.niz at cas.edu.om> wrote:
>
> fair enough. Is it a long hack to change that Persian case in Bidi to the
> Arabic case? And are your sure it is something to do with Bidi not with
> polyglossia? Thanks.
>
>
> On 16 March 2011 11:43, Vafa Khalighi <vafakhlgh at gmail.com> wrote:
>
>> bidi is developed from a Persian perspective and it may not be what other
>> languages use. In Persian sectioning is RTL. At least I know that Khaled
>> Hosny also agrees on this.
>>
>>
>> On Wed, Mar 16, 2011 at 3:37 PM, Abdulrahman Al-Abdusalalm <
>> abdulrhman.niz at cas.edu.om> wrote:
>>
>>> Hi,
>>>
>>> Try this ...
>>>
>>> \documentclass[a4paper]{article}
>>>
>>> \usepackage{polyglossia}
>>>
>>> \setmainlanguage{arabic}
>>>
>>> \setotherlanguage{english}
>>>
>>> \newfontfamily\arabicfont[Scale=1.5,Script=Arabic]{Scheherazade}
>>>
>>> \begin{document}
>>>
>>> \section{واحد}
>>>
>>> \subsection{واحد . واحد}
>>>
>>> \section{اثنان}
>>>
>>> \subsection{اثنان . واحد}
>>>
>>> \section{ثلاثة}
>>>
>>> \subsection{ثلاثة . واحد}
>>>
>>> \end{document}
>>>
>>>
>>> It shows clearly that subsection numbering is typeset *right to left* as
>>> opposed to the normal direction *left to right*.
>>>
>>>
>>> Regards
>>>
>>>
>>> On 15 March 2011 15:03, Abdulrahman Al-Abdusalalm <
>>> abdulrhman.niz at cas.edu.om> wrote:
>>>
>>>>
>>>> documentclass[a4paper]{article}
>>>> \usepackage{polyglossia}
>>>> \setmainlanguage{arabic}
>>>> \setotherlanguage{english}
>>>> \newfontfamily\arabicfont[Scale=1.5,Script=Arabic]{Scheherazade}
>>>>
>>>> \begin{document}
>>>> ...
>>>> \section{أسس الطباعه الحديثة}
>>>> ...
>>>> \subsection{الخطوط الرقمية \textenglish{(Fonts)}}
>>>> ...
>>>> \end{document}
>>>>
>>>> Thanks?
>>>>
>>>>
>>>>
>>>> On 15 March 2011 14:45, Vafa Khalighi <vafakhlgh at gmail.com> wrote:
>>>>
>>>>> What is your minimal example?
>>>>>
>>>>>
>>>>> On Tue, Mar 15, 2011 at 9:43 PM, Abdulrahman Al-Abdusalalm <
>>>>> abdulrhman.niz at cas.edu.om> wrote:
>>>>>
>>>>>>
>>>>>> Hello again,
>>>>>>
>>>>>> Now with polyglossia I can typeset arabic in sectioning commands,
>>>>>> however, I still have Arabic-indic numbering typeset from right to left
>>>>>> (i.e. 3.1 is show 1.3). Is this something to do with the internal code of
>>>>>> \section command?
>>>>>>
>>>>>>
>>>>>> On 15 March 2011 10:32, Abdulrahman Al-Abdusalalm <
>>>>>> abdulrhman.niz at cas.edu.om> wrote:
>>>>>>
>>>>>>> Thank Vafa. I refrained from using Arabxetex and rather discovered
>>>>>>> polyglossia
>>>>>>> which solved the problem for now.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 15 March 2011 09:55, Vafa Khalighi <vafakhlgh at gmail.com> wrote:
>>>>>>>
>>>>>>>> Do not put your sectioning commands inside RTL environment (arab).
>>>>>>>>
>>>>>>>> 2011/3/15 Abdulrahman Al-Abdusalalm <abdulrhman.niz at cas.edu.om>
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I am preparing a manuscript with arabxetex and facing a problem
>>>>>>>>> with sectioning commands (\section,\subsec...),
>>>>>>>>> basically the problem is that I get Arabic digits instead of
>>>>>>>>> Arabic-indic and also the numbering is typeset right to
>>>>>>>>> left (i.e. 1.3 for 3.1) the code snippet looks as follows:
>>>>>>>>>
>>>>>>>>> \begin{arab}
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> \subsection{\textarab{الخطوط الرقمية} \textLR{(Fonts)}}
>>>>>>>>>
>>>>>>>>> ...
>>>>>>>>> \end{arab}
>>>>>>>>>
>>>>>>>>> I am also planning to include figures with captions and presume the
>>>>>>>>> same problem.
>>>>>>>>> Any advice is appreciated.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Abdulrahman AAl Abdulsalam
>>>>>>>>> Assistant Lecturer - IT Department
>>>>>>>>> College of Applied Science
>>>>>>>>> P.O. Box 699
>>>>>>>>> Nizwa, 611
>>>>>>>>> Oman
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --------------------------------------------------
>>>>>>>>> Subscriptions, Archive, and List information, etc.:
>>>>>>>>> http://tug.org/mailman/listinfo/xetex
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> If some one say: "You divide ten into two parts: multiply the one by
>>>>>>>> itself; it will be equal to the other taken eighty-one times." Computation:
>>>>>>>> You say, ten less thing, multiplied by itself, is a hundred plus a square
>>>>>>>> less twenty things, and this is equal to eighty-one things. Separate the
>>>>>>>> twenty things from a hundred and a square, and add them to eighty-one. It
>>>>>>>> will then be a hundred plus a square, which is equal to a hundred and one
>>>>>>>> roots. Halve the roots; the moiety is fifty and a half. Multiply this by
>>>>>>>> itself, it is two thousand five hundred and fifty and a quarter. Subtract
>>>>>>>> from this one hundred; the remainder is two thousand four hundred and fifty
>>>>>>>> and a quarter. Extract the root from this; it is forty-nine and a half.
>>>>>>>> Subtract this from the moiety of the roots, which is fifty and a half. There
>>>>>>>> remains one, and this is one of the two parts.
>>>>>>>>
>>>>>>>> *Muḥammad ibn Mūsā al-Khwārizmī*
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Abdulrahman AAl Abdulsalam
>>>>>>> Assistant Lecturer - IT Department
>>>>>>> College of Applied Science
>>>>>>> P.O. Box 699
>>>>>>> Nizwa, 611
>>>>>>> Oman
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Abdulrahman AAl Abdulsalam
>>>>>> Assistant Lecturer - IT Department
>>>>>> College of Applied Science
>>>>>> P.O. Box 699
>>>>>> Nizwa, 611
>>>>>> Oman
>>>>>>
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------
>>>>>> Subscriptions, Archive, and List information, etc.:
>>>>>> http://tug.org/mailman/listinfo/xetex
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> If some one say: "You divide ten into two parts: multiply the one by
>>>>> itself; it will be equal to the other taken eighty-one times." Computation:
>>>>> You say, ten less thing, multiplied by itself, is a hundred plus a square
>>>>> less twenty things, and this is equal to eighty-one things. Separate the
>>>>> twenty things from a hundred and a square, and add them to eighty-one. It
>>>>> will then be a hundred plus a square, which is equal to a hundred and one
>>>>> roots. Halve the roots; the moiety is fifty and a half. Multiply this by
>>>>> itself, it is two thousand five hundred and fifty and a quarter. Subtract
>>>>> from this one hundred; the remainder is two thousand four hundred and fifty
>>>>> and a quarter. Extract the root from this; it is forty-nine and a half.
>>>>> Subtract this from the moiety of the roots, which is fifty and a half. There
>>>>> remains one, and this is one of the two parts.
>>>>>
>>>>> *Muḥammad ibn Mūsā al-Khwārizmī*
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Abdulrahman AAl Abdulsalam
>>>> Assistant Lecturer - IT Department
>>>> College of Applied Science
>>>> P.O. Box 699
>>>> Nizwa, 611
>>>> Oman
>>>>
>>>
>>>
>>>
>>> --
>>> Abdulrahman AAl Abdulsalam
>>> Assistant Lecturer - IT Department
>>> College of Applied Science
>>> P.O. Box 699
>>> Nizwa, 611
>>> Oman
>>>
>>>
>>>
>>> --------------------------------------------------
>>> Subscriptions, Archive, and List information, etc.:
>>> http://tug.org/mailman/listinfo/xetex
>>>
>>>
>>
>>
>> --
>> If some one say: "You divide ten into two parts: multiply the one by
>> itself; it will be equal to the other taken eighty-one times." Computation:
>> You say, ten less thing, multiplied by itself, is a hundred plus a square
>> less twenty things, and this is equal to eighty-one things. Separate the
>> twenty things from a hundred and a square, and add them to eighty-one. It
>> will then be a hundred plus a square, which is equal to a hundred and one
>> roots. Halve the roots; the moiety is fifty and a half. Multiply this by
>> itself, it is two thousand five hundred and fifty and a quarter. Subtract
>> from this one hundred; the remainder is two thousand four hundred and fifty
>> and a quarter. Extract the root from this; it is forty-nine and a half.
>> Subtract this from the moiety of the roots, which is fifty and a half. There
>> remains one, and this is one of the two parts.
>>
>> *Muḥammad ibn Mūsā al-Khwārizmī*
>>
>>
>
>
> --
> Abdulrahman AAl Abdulsalam
> Assistant Lecturer - IT Department
> College of Applied Science
> P.O. Box 699
> Nizwa, 611
> Oman
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
>
>
--
If some one say: "You divide ten into two parts: multiply the one by itself;
it will be equal to the other taken eighty-one times." Computation: You say,
ten less thing, multiplied by itself, is a hundred plus a square less twenty
things, and this is equal to eighty-one things. Separate the twenty things
from a hundred and a square, and add them to eighty-one. It will then be a
hundred plus a square, which is equal to a hundred and one roots. Halve the
roots; the moiety is fifty and a half. Multiply this by itself, it is two
thousand five hundred and fifty and a quarter. Subtract from this one
hundred; the remainder is two thousand four hundred and fifty and a quarter.
Extract the root from this; it is forty-nine and a half. Subtract this from
the moiety of the roots, which is fifty and a half. There remains one, and
this is one of the two parts.
*Muḥammad ibn Mūsā al-Khwārizmī*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110316/de042f7e/attachment-0001.html>
More information about the XeTeX
mailing list