A document I'm working on has a table that was complicated enough for me to try and make it using a pgf matrix of nodes. However, the resulting matrix ended up being slightly too big for the page.
I'm fine with it extending slightly outside the margins, since making it smaller would probably only make it harder to read. But it won't do to have it coming off the margins and off-centre. So I've been trying to reposition it to the centre of the page. However, my usual approaches are useless here: [xy]shift won't work and I've tried anchoring its centre to the current page.center node to no avail.
So, how do I position a matrix that is too large for the page?
MWE follows:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgf}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix [matrix of nodes,
nodes={
text depth=4em,
text height=5em,
minimum width=10em,
draw
},
row sep=-\pgflinewidth,
column sep=-\pgflinewidth,
]
{
A & B & C & D \\
A & B & C & D \\
A & B & C & D \\
A & B & C & D \\
};
\end{tikzpicture}
\end{document}


\makebox[\textwidth]? I tried that originally, but found that it produces a ton of errors. This, however, works perfectly. – jja Aug 15 '13 at 22:45\makeboxyou have to use the keyampersand replacement, see section 17.5 in the manual. – egreg Aug 15 '13 at 22:56xcenterto work with the actual document. In it, the chart is actually inside alandscapeenvironment (from lscape), and this seems to mess with the alignment. If I remove thelandscapethe chart is centered, but too wide to fit on the page; with thelandscapethe alignment is off, with the chart too close to the left (=bottom). Any ideas? Or should I start a new question, since this one has been answered? – jja Aug 15 '13 at 23:25landscapeenvironment doesn't update\textwidth, so in that case you should use\hsize(or maybe\textheight, I don't remember if it works). – egreg Aug 16 '13 at 09:07textheight, buthsizedid the trick. – jja Aug 16 '13 at 09:30