<div dir="ltr">Hey<div><br></div><div style>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.</div><div style>
<br></div><div style><div>\renewcommand{\ThisCenterWallPaper}[2]{%</div><div>\AddToShipoutPicture*{\put(-\LenToUnit{\dimexpr(\paperwidth-\textwidth)},\LenToUnit{\wpYoffset}){%</div><div>     \parbox[b][\paperheight]{\paperwidth}{%       </div>
<div>       \vfill</div><div>       \centering</div><div>       \includegraphics[width=#1\paperwidth,height=#1\paperheight,%</div><div>                        keepaspectratio]{#2}%</div><div>       \vfill</div><div>     }}}</div>
<div>} </div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 10, 2013 at 5:41 PM, Fahad Al-Saidi <span dir="ltr"><<a href="mailto:fahad.alsaidi@gmail.com" target="_blank">fahad.alsaidi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>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. <br>
<br></div>Regards,<br></div><div>Fahad<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jun 10, 2013 at 5:50 AM, Vafa Khalighi <span dir="ltr"><<a href="mailto:vafa.klgh@gmail.com" target="_blank">vafa.klgh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi<div><br></div><div>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).</div>

<span><font color="#888888">
<div><br></div><div>Vafa</div></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sun, Jun 9, 2013 at 5:06 PM, Fahad Al-Saidi <span dir="ltr"><<a href="mailto:fahad.alsaidi@gmail.com" target="_blank">fahad.alsaidi@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">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. <br>



<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 9, 2013 at 9:56 AM, Vafa Khalighi <span dir="ltr"><<a href="mailto:vafa.klgh@gmail.com" target="_blank">vafa.klgh@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This has nothing to do with <span style="font-family:arial,sans-serif;font-size:13px">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.</span><div>




<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Later on, we found that it was more problematic rather than being useful. Therefore I removed that modification to picture environment.</font></div>




<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">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.</font></div>




<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Vafa</font></div></div><div class="gmail_extra"><br><br></div></blockquote></div></div></div></div></div>
<br><br>
<br></div></div><div>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></div></blockquote></div><br></div>
<br><br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>my blog<br><br><a href="http://fahadalsaidi.blogspot.com" target="_blank">http://fahadalsaidi.blogspot.com</a>
</font></span></div>
<br><br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Vafa</div>
</div>