Hey With your posted example on github, changes are identical. You only need to understand how the picture environment behaves in RTL to be able to do these yourself.
\renewcommand{\ThisCenterWallPaper}[2]{% \AddToShipoutPicture*{\put(-\LenToUnit{\dimexpr(\paperwidth-\textwidth)},\LenToUnit{\wpYoffset}){% \parbox[b][\paperheight]{\paperwidth}{% \vfill \centering \includegraphics[width=#1\paperwidth,height=#1\paperheight,% keepaspectratio]{#2}% \vfill }}} } On Mon, Jun 10, 2013 at 5:41 PM, Fahad Al-Saidi <fahad.alsa...@gmail.com>wrote: > Thanks Vafa for helping me. I would like to ask if there is any way to > fix wallpaper package to work as expected in RTL document. > > Regards, > Fahad > > > On Mon, Jun 10, 2013 at 5:50 AM, Vafa Khalighi <vafa.k...@gmail.com>wrote: > >> Hi >> >> I have just done that. I only needed to change the horizontal co-ordinate >> of \put command as previously mentioned and it works as one would expect in >> RTL. I have changed the horizontal co-ordinate of \put from 0pt to >> -(\paperwidth-\textwidth). >> >> Vafa >> >> >> On Sun, Jun 9, 2013 at 5:06 PM, Fahad Al-Saidi >> <fahad.alsa...@gmail.com>wrote: >> >>> Thanks Vafa for the clarification. If you can guide me what the the >>> recommended way to deal with pictures especially water mark in RTL document >>> since wallpaper does not work as expected. I am working in a document for >>> children that includes hundreds pictures and I am using wallpaper & eso-pic >>> packages heavily. Now I can return to ubuntu 12.04' packages but I will >>> face the problem soon or later. >>> >>> >>> On Sun, Jun 9, 2013 at 9:56 AM, Vafa Khalighi <vafa.k...@gmail.com>wrote: >>> >>>> This has nothing to do with eso-pic-bidi file. In the previous >>>> versions of bidi package, the behaviour of picture environment was changes >>>> so that in RTL, still the reference point was at the right (where the line >>>> starts in RTL) but commands like \put behaved the same in LTR and RTL. i.e. >>>> if you gave a positive horizontal coordinate to \put, t would go to the >>>> right and if you gave a negative horizontal coordinate, it would go to the >>>> left. >>>> >>>> Later on, we found that it was more problematic rather than being >>>> useful. Therefore I removed that modification to picture environment. >>>> >>>> >>>> Your example, will work fine in RTL, if you just change the horizontal >>>> coordinate of \put in your document. On the other hand, \RTL and \LTR are >>>> not commands; RTL and LTR are environments. >>>> >>>> Vafa >>>> >>>> >>>> >>> >>> >>> -------------------------------------------------- >>> Subscriptions, Archive, and List information, etc.: >>> http://tug.org/mailman/listinfo/xetex >>> >>> >> >> >> >> -------------------------------------------------- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex >> >> > > > -- > my blog > > http://fahadalsaidi.blogspot.com > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > > -- Vafa
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex