2

I try to place bacground tikz image in document using eso-pic. I think that the reference point is the lower left corner. But in fact there is "X bias" in the 0.15 cm. Is it software or hardvare dependent? Will it present on others configurations or machines?

\documentclass[a4paper,14pt]{extreport}
\usepackage{tikz}
\usepackage{eso-pic}

\begin{document}
  \AddToShipoutPicture{
  \begin{tikzpicture}[remember picture, overlay]
  \draw[step=1cm,gray,very thin] (0,0) grid (20,20);
  \end{tikzpicture}}

Some text

\end{document}

enter image description here

  • 5
    Start by checking if ` \AddToShipoutPicture{%` makes a difference (untested) – daleif Nov 6 '16 at 19:41
  • Thanks for the replay. \AddToShipoutPicture{% works indeed. I'm beginer in LaTex so don't see difference between this sintax so will understand more. – Konstantin Nov 6 '16 at 20:40
  • It is a socalled spurious space, aka a space that is not ignored. It is one of the first things to check for in cases like this. – daleif Nov 6 '16 at 20:42
  • 1
    A newline character is interpreted by TeX as a space unless commented out. – cfr Nov 7 '16 at 1:02
  • @daleif An answer? – cfr Nov 7 '16 at 1:02
5

Try \AddToShipoutPicture{%, the % at the end will keep the tikz picture from shifting to the right because the space is not ignored.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.