0

I am able to display a image from a .eps file correctly using the below code.

\begin{figure}[t!]
\centering
\includegraphics[keepaspectratio, width=.6\textwidth, trim={0 7cm 0 6cm},clip]{ware.eps}
\caption{Ware}\label{figures:ware}
\end{figure}

Now I trying to include the pdf_tex file which I exported from Inkscape but the image is not being displayed. Both the pdf and pdf_tex files are in the same directory. I am using the below code for this. I get the error "Error: File `ware.pdf_tex' not found. [\input{ware.pdf_tex}]"

\begin{figure}[t!]
\centering
\input{ware.pdf_tex}
\caption{Ware}\label{figures:ware}
\end{figure}

Could someone please help me with this issue. I am new to latex.

Dai Bowen
  • 6,117
aries
  • 183

2 Answers2

1

The problem was with the file path not being specified properly. With "\includegraphics" I had the path specified as "\graphicspath{ {figures/} }" . However, for "\input" I had to explicitly specify the path.

\input{figures/ware.pdf_tex}
aries
  • 183
0

Have a look at this. Your problem may be that your figure files aren't in the same directory as your main file, that you're missing the svgwidth line (so latex doesn't know at what size to display the image) or that you're mixing eps and pdf. Hope this helps.

Dai
  • 304