<div dir="ltr">Hi,<div><br></div><div>@Urlike Fischer and Zdenek- yes, you are right. I removed the extra tikz package and I could get the vertical rules; see the attachment. There are still a similar issue with another document; I shall write once I get details of it. </div><div>@<a class="gmail-wta gmail-vF" href="https://plus.google.com/u/1/106075650385658344372?prsrc=4" target="_blank" style="text-decoration:none;font-family:"normal arial",sans-serif;font-size:16px">Zdenek Wagner</a>- I could not make this trick work; may be I am making a mistake.</div><div>@Wilfred van Rooijen- sorry that this is not a MWE.</div><div><br></div><div>Thank you all!</div><div><br></div><div>With best regards,</div><div>-Rohit.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 5:50 PM, Ulrike Fischer <span dir="ltr"><<a href="mailto:news3@nililand.de" target="_blank">news3@nililand.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am Tue, 13 Feb 2018 13:21:17 +0530 schrieb RD Holkar:<br>
<br>
> Dear all,<br>
><br>
> I am typesetting a memoir in Marathi using package Polyglossia. I found<br>
> that the package Background behaves strangely when used with XeLaTeX.<br>
><br>
> I am attaching an example in English which is clearly a (La)TeX file (I can<br>
> send the file that uses Polyglossia if needed). I want two vertical lines<br>
> on the left and right side of the page (attachment- Background-LaTeX). When<br>
> I use the package background and run LaTeX, I get the desired output.<br>
> However, when I run XeLaTeX on the same file, I get a displaced lines.<br>
> Moreover, I tried to place the lines by trial and error method, but, it<br>
> seems that the distortion is not linear.<br>
<br>
</span>> \SetBgContents{<br>
> \begin{tikzpicture}[overlay,<wbr>remember picture]<br>
<br>
the background packages already uses tikzpicture and puts the<br>
contents in a node. So you are basically nesting one tikzpicture in<br>
another.<br>
<br>
This can work, but it can also fail. See e.g.<br>
<a href="https://tex.stackexchange.com/questions/46598/problem-with-overlay-when-a-tikzpicture-is-inside-another-tikzpicture" rel="noreferrer" target="_blank">https://tex.stackexchange.com/<wbr>questions/46598/problem-with-<wbr>overlay-when-a-tikzpicture-is-<wbr>inside-another-tikzpicture</a><br>
<a href="https://tex.stackexchange.com/questions/398734/whats-wrong-with-nested-tikzpicture-and-xelatex" rel="noreferrer" target="_blank">https://tex.stackexchange.com/<wbr>questions/398734/whats-wrong-<wbr>with-nested-tikzpicture-and-<wbr>xelatex</a><br>
<br>
and more.<br>
<br>
So I wouldn't use the background package for this. Use e.g. eso-pic<br>
to insert the drawing.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Ulrike Fischer<br>
<a href="http://www.troubleshooting-tex.de/" rel="noreferrer" target="_blank">http://www.troubleshooting-<wbr>tex.de/</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>