Say I have a a file File1.tex that I input in a file like Foo.tex:
folder1/File1.tex:
\begin{frame}
This is file 1.
\end{frame}
Foo.tex:
\documentclass{beamer}
\usepackage{graphicx}
\begin{document}
\input{folder1/File1.tex}
\end{document}
All works fine. But if I include a graphic in File1 the relative path does not work in `Foo.tex":
Say I add a file image1.jpg to folder folder1/images/.
Now I can extend folder1/File1.tex:
\begin{frame}
This is file 1.
\includegraphics{images/image1}
\end{frame}
But now, Foo.tex could not find the graphic, because of its point of view, the path of \includegraphics should be folder1/images/image1.
How can I manage such things?
folder1within theFile1.tex). What is, if I change the folder name, I would have to edit allinclude graphicstags. – mrbela Mar 24 '21 at 15:35\includegraphics{image1}just as you use\documentclass{article}keep the ppaths out of the documemnt and just use teh TEXINPUTS path – David Carlisle Mar 24 '21 at 15:44