I have created an image with Inkscape and saved it as a pdf_tex to import it into my LaTeX document.
My problem is that the picture only uses half of a page but imported into LaTeX with
\begin{figure}[htb!]
\resizebox{\textwidth}{!}{\input{fig.pdf_tex}}
\caption{Caption}
\end{figure}
creates a whole page for the picture i.e the picture is on the top and the rest is filled with a blank side.
Can I only import the parts of the pdf that contain the actual image or is there a better way to resolve the issue?
\input
-command, you are inserting LaTeX-code. Just open the file in your usual LaTeX editor and do what ever is needed, to improve the results. If your above code is not correct, and you are using the\includegraphics
-command (which I doubt), than you should try to use the[bb=llx lly urx ury,clip]
options of that command, to define a bounding box within your pdf file (defined by the lower left corner (ll) and the upper right corner (ur)). Optionclip
will cut anything outside that box.