I am generating a large number of graphics using tikz
which I will need to reuse through various places in my document, as well as in animations. Thus, I am pre-creating all these plots. To assure that all page sizes are the same in the plots, I am using the geometry package. Horizontal centering is easy, but even after a lot of looking I could not figure out how to vertically center a tikz graphic on the entire page. Here is an example:
\documentclass{article}
\usepackage{tikz}
\usepackage[ paperwidth=4cm,paperheight=4cm]{geometry}
\begin{document}
\begin{center}
\begin{tikzpicture}
\draw node[fill,circle,minimum size=2cm] {};
\end{tikzpicture}
\end{center}
\end{document}
Which makes this:
How to get the node in the exact center of the page?
Best Answer
Using the
current page
Node (see ยง17.13.2 of tikz doc) :With 2 nodes in the same tikzpicture :
And With 2 tikzpicture :