Graphics, Figures & Tables ⇒ Error Report about nonexisting File
Error Report about nonexisting File
I divided my work into sub-files, each sub-file has chapter. At the title page I put a figure and it works very good, but when I compile the whole file I get an error that your figure is not exist.
Thank You
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Error Report about nonexisting File
perhaps provide some more information, such as if you use subfolders and how. Perhaps add the .log file as attachment to a post here.
Stefan
Re: Error Report about nonexisting File
Sorry, I did not understand you. Yes, I use subfolders.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Error Report about nonexisting File
\includegraphics
without a path, just the picture name, it has to be in the same folder as your main document, not in a subfolder.Perhaps we can tell more if you provide further information, such as
- Code lines for including
- Subfolder structure - where are pictures, where is the main .tex document
- .log file as attachment
Re: Error Report about nonexisting File
The father folder contains the following folders
main folder
preface folder
titlepage folder
chapter one folder.
Each folder contains its own .tex file and figures. I use subfiles,
for example in the main file I put
\subfile{../titlepage/titlepage}
\subfile{../preface/preface}
and so on.
In the children files I use
\documentclass[../mainfolder/main.tex]{subfiles}.
Now, when I compile the titlepage file alone it works very well but I get the problem when I compile the main file.
The figures are put in the same (titlepage) folder and the problem is not here.
I hope that my question is clear now.
Thank you very much.