I am trying to import a graphic from Excel to LaTeX. The graph has been printed on a PDF but when trying to import it into LaTeX it doesn't scale.
Using the \fbox
function shows a box where I would like the graph to be but the graph itself is over it, justified on the left and going out of the margin on the right.
The .pdf
file has white space around it but the use of the trim
argument doesn't change the output.
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth,center]{domaine.pdf}
\caption{domaine}
\label{fig:domaine}
\end{figure}
Problem solved, output has to be to PDF directly.
\fbox{\includegraphics[width=\textwidth,center]{domaine.pdf}}
to see the real space used by the image.center
key to\includegraphics
. You do not give many clues but I would guess that excel printed a full page image (even if it is white around the edge) scaling a full page image to the textwidth will not do much. You need to either crop the image first or use the clip or trim keys. As a debugging aid use\fbox{\includegraphics...}
to see how big latex thinks the image is@
-sign in front of the name. But everytime, the changes will be seen by a very limited amount of people. You can edit the question and add more details. The Q will go back on top on the main site.