With those wide margins of LaTeX, it sometimes happens that you have a figure or table that is too wide, and just sticks out to the right. Chances are that you want it centered, sticking out equally to the right and to the left, but tough luck: the standard
center environment still aligns it with the left margin, and so does the
I was about to write a package to provide an environment that centers its content on the page instead of inside the text. This is not too difficult, but preventing the
overfull \hbox errors is tricky (they are so bad that even
\hbadness=10000 has no effect). But then I stumbled into a standard LaTeX command that does exactly what I want.
So here's how to center your figure whilst ignoring the text margins:
It also works inside float environments such as
figure. That was easy!