I have recently switched from TeXnicCenter (TXC) on Windows to Kile on Ubuntu. I have a problem building my PDF output from the source files that I have written in TXC when I want to build them in Kile.
I have been using an simplified way to include figures in my documents via using a new environment. Here the code.
Code: Select all
% automatisierte Bildeinfügung
\newenvironment{image}[5]{%
\begin{figure}[#1]
\centering
\includegraphics[width=#2\linewidth]{#3}
\caption{#4}
\label{#5}
\end{figure}%
}
Code: Select all
\begin{image}{h}{0.4}{./pics/solgel.jpg}{Scheme of sol gel process.}{fig:solgel}
\end{image}
I don't know what's the problem because the figure is surely in the right place. does Kile not comprehend the new environment?package pdftex.def Error: file'./pic/solgel.jpg' not found
I have also tried including the graphic by just using
\includegraphics
and it seems to work. However I don't want to change all figure including code. I would very much appreciate some assistance.