Although the question isn't clear, you apparently are trying to draw a grid on the background of a page.
You can use either tikz
package alone for a single page or combine it with background
to get it in pages you want.
Single page
\documentclass[a4paper,margin=0pt]{article}
\usepackage{lipsum} % for the filling text
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\draw[step=1.0,gray,thin] (current page.south west) grid (current page.north east);
\end{tikzpicture}
\lipsum
\end{document}
Background
\documentclass[A4paper,margin=0pt]{article}
\usepackage{lipsum} % for the filling text
\usepackage{background}
\makeatletter
\def\bg@material{%
\begin{tikzpicture}[remember picture,overlay]
\draw[step=1.0,gray,thin] (current page.south west) grid (current page.north east);
\end{tikzpicture}
}
\makeatother
\pagestyle{empty}
\begin{document}
\lipsum
\end{document}
the code was borrowed from position background image with \SetBgAnchor
Also, possible duplicate.
geometry
in the first place. The whole point ofstandalone
is that is adapts it self to the size of the contents. Thus adjust yourtikzpicture
to give it an actual size instead of trying to make it fit the document size as it is "undefined" instandalone
(for a4paper:\draw[step=1.0,gray,thin] (0,0) grid (210mm,297mm);
)geometry
. all you need is\documentclass[tikz,a4paper,landscape]{standalone}
overlay,remember picture
options to the tikzpicture1`