Graphics, Figures & TablesError Report about nonexisting File

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
muath
Posts: 30
Joined: Thu Jul 15, 2010 11:34 am

Error Report about nonexisting File

Post by muath »

Hi,

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: Error Report about nonexisting File

Post by Stefan Kottwitz »

Hi,

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
LaTeX.org admin
muath
Posts: 30
Joined: Thu Jul 15, 2010 11:34 am

Re: Error Report about nonexisting File

Post by muath »

Thank You.
Sorry, I did not understand you. Yes, I use subfolders.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Error Report about nonexisting File

Post by Stefan Kottwitz »

Ensure that the figure file can be found by specifying the correct file name, if needed also the (possible relative) path to a folder or subfolder. If you just use \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
Stefan
LaTeX.org admin
muath
Posts: 30
Joined: Thu Jul 15, 2010 11:34 am

Re: Error Report about nonexisting File

Post by muath »

My situation is like:
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.
Post Reply