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.
Best Answer
Since the output format is DVI, it is very likely that the DVI viewer is not able to handle the scaling of PDF files. PDF as output format is a better choice here (e.g. via pdflatex).
The documentation for package
graphicx
also explains drivers, see Packages in the 'graphics' bundle.