when I am using subfiles in my tex document:
\subfile{./chapter-2020-02/chapter-2020-02}
when the subfile using figure like this:
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.3]{mavenauthpassword}
\caption{Maven}
\label{fig:mavenauthpassword}
\end{figure}
shows this error:
! LaTeX Error: File `mavenauthpassword.tex' not found.
what should I do to using figure correctly when using subfiles in latex document?
\graphicspath, then LaTeX will search the imagemavenauthpassword....in the same directory aschapter-2020-02.tex. – gernot Apr 02 '21 at 22:45