[Tex/LaTex] Completely remove page numbers

page-numbering

I'm trying to create some custom graph paper for myself. However, I don't want page numbers on it, so I was wondering how to completely remove page numbers. My code is

\documentclass{scrartcl}
\usepackage[margin=25mm]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{background}

\SetBgContents%
{   \begin{tikzpicture}[remember picture, overlay]
    \draw [line width=0.3pt,color=gray,step=0.5cm] (current page.south west) grid (current page.north east);
    \end{tikzpicture}
}
\SetBgScale{1}
\SetBgAngle{0}

\begin{document}

\begin{tikzpicture}
    \draw (0,0) rectangle (5,5);
\end{tikzpicture}

\end{document}

(The rectangle is just to have something on the page.)

Thanks!

Edit: I found the solution on my own and posted it as an answer. I am open to better solutions.

Best Answer

I found this answer (of course) 5 minutes after I posted this question, even though I'd spent a while looking for it. =)

I added the line \thispagestyle{empty}

for the code

\documentclass{scrartcl}
\usepackage[margin=25mm]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{background}

\SetBgContents%
{   \begin{tikzpicture}[remember picture, overlay]
    \draw [line width=0.3pt,color=gray,step=0.5cm] (current page.south west) grid (current page.north east);
    \end{tikzpicture}
}
\SetBgScale{1}
\SetBgAngle{0}

\begin{document}
\thispagestyle{empty}

\begin{tikzpicture}
    \draw (0,0) rectangle (5,5);
\end{tikzpicture}

\end{document}

Which worked perfectly.

As Au101 mentioned in the comments, it is probably preferable to move \thispagestyle to the preamble:

\documentclass{scrartcl}
\usepackage[margin=25mm]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{background}

\SetBgContents%
{   \begin{tikzpicture}[remember picture, overlay]
    \draw [line width=0.3pt,color=gray,step=0.5cm] (current page.south west) grid (current page.north east);
    \end{tikzpicture}
}
\SetBgScale{1}
\SetBgAngle{0}

\thispagestyle{empty}

\begin{document}

\begin{tikzpicture}
    \draw (0,0) rectangle (5,5);
\end{tikzpicture}

\end{document}

And then put the line in the main body of the document for any special cases where you want the page numbers again.