0

I am using the following code to scale the image figure to the page width:

\begin{figure*}[!ht]
    \centering
    \includegraphics[width=0.90\paperwidth]{mypdf.pdf}
    \caption{Caption goes here}
    \label{tautable}
    %   \vspace{-2mm}
\end{figure*}

However, the aforementioned code stretched the image on the right hand side (as shown in the figure below) regardless of using \centering and makes it look weird. How can I position it in the center correctly that the image is scaled evenly in all sides for 90% of the page width.

enter image description here

1 Answers1

0

So, the final answer to this question as follows:

\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure} \makebox[\textwidth][c]{\includegraphics[width=1.2\textwidth]{image}}% \caption{Caption goes here} \label{fig:key} \end{figure} \end{document}