I would like to center a figure made on Tikz. This figure has a specific size which is wider than \textwidth, and it needs to be centered. All options I see use \resibox or \makebox to center the figures. But I don't want to change the figure size. Are there any option or command to allow this?
Thanks very much in advance. Kind regards,
German
=== SOLUTION ==
As Mr @David Carlisle commented below, the solution is uncomment the \makebox and set the scaling to 0pt as follow:
\begin{figure}[h!]
\centering
\newlength\figureheight
\newlength\figurewidth
\setlength\figureheight{6cm}
\setlength\figurewidth{1.2\linewidth}
\begingroup
\fontsize{8}{\baselinestretch}\selectfont
\makebox[0pt][c]{
\input{VoltFRFFreq.tikz}
%}
\endgroup
\caption{A plot of a sphere}
\label{fig.freq}
\end{figure}
Thanks again to all people!!
-- EDIT's --- P.D.-I forgot to mention I use XeLaTeX, I hope it helps. Kind regards, P.D.D- The code is
\begin{figure}[h!]
\centering
\newlength\figureheight
\newlength\figurewidth
\setlength\figureheight{6cm}
\setlength\figurewidth{1.2\linewidth}
\begingroup
\fontsize{8}{\baselinestretch}\selectfont
%\makebox[\figurewidth][c]{
\input{VoltFRFFreq.tikz}
%}
\endgroup
\caption{A plot of a sphere}
\label{fig.freq}
\end{figure}
\textwidthso this one should probably be considered a duplicate. – barbara beeton Jun 24 '16 at 19:09