[XeTeX] unwanted rtl paragraph before arabic (rtl) longtable

Jens Bakker jbakker at uni-bonn.de
Mon Jul 28 17:38:16 CEST 2014


Dear Zdenek Wagner,

Thank you very much for your fast response, your solution works very fine.

With best wishes and best regards,
Jens Bakker


Am 28.07.2014 um 16:11 schrieb Zdenek Wagner:

> 2014-07-28 15:44 GMT+02:00 Jens Bakker <jbakker at uni-bonn.de>:
>> Dear Vafa Khalighi,
>> 
>> Thank you very much for your immediate answer. Your idea works fine, but if
>> I want to use a \begin{center} environment it does not affect the centered
>> lines, if \everypar{\beginL} is put before the environment, and it does not
>> compile, if \everypar{\beginL} is put within the environment. Please see the
>> attached minimal example.
>> 
> Do you really need the center environment? It is not well designed. I
> do not know why Leslie Lamport came with an idea that it should be
> implemented as a list which has many side effects. I would use
> undocumented centering environment. In fact, t is not an environment,
> it is a plain TeX \centering macro used to center the contents of a
> group. \begin and \end provide the group. The only problem is, that
> \end{centering} will close the group but will not end the paragraph.
> Therefore you should add the following macro definition:
> 
> \def\endcentering{\ifhmode \par \fi}
> 
> Now \begin{centering} ... \end{centering} will create centered content
> without the side effects of the center environment and \everypar
> should work.
> 
>> With best wishes and best regards,
>> Jens Bakker
>> 
>> 
>> 
>> 
>> 
>> Am 28.07.2014 um 15:11 schrieb Vafa Khalighi:
>> 
>> It is one of the known bugs of package bidi-longtable that you are using. A
>> workaround would be adding
>> 
>> \everypar{\beginL}
>> 
>> Before the paragraph that you want to typeset LTR.
>> 
>> 
>> On Mon, Jul 28, 2014 at 10:57 PM, Jens Bakker <jbakker at uni-bonn.de> wrote:
>>> 
>>> Dear Ladies and Gentlemen,
>>> 
>>> I would like to ask you for advice with the following problem, please:
>>> 
>>> Before an Arabic longtable the Latin (english) paragraph is forced into a
>>> rtl paragraph, what is my mistake? Please see the attached minimal example.
>>> 
>>> Kind regards,
>>> Jens Bakker
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --------------------------------------------------
>>> Subscriptions, Archive, and List information, etc.:
>>>  http://tug.org/mailman/listinfo/xetex
>>> 
>> 
>> 
>> 
>> --------------------------------------------------
>> Subscriptions, Archive, and List information, etc.:
>> http://tug.org/mailman/listinfo/xetex
>> 
>> 
>> 
>> 
>> 
>> --------------------------------------------------
>> Subscriptions, Archive, and List information, etc.:
>>  http://tug.org/mailman/listinfo/xetex
>> 
> 
> 
> 
> -- 
> Zdeněk Wagner
> http://hroch486.icpf.cas.cz/wagner/
> http://icebearsoft.euweb.cz
> 
> 
> 
> 
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex





More information about the XeTeX mailing list