TeX - LaTeX Asked by Onur Gürdoğan on February 26, 2021
I have been very busy to solve this issue by myself then I thought I wasted my time a lot to solve this problem (still couldn’t solve it..). It should have a simple solution but I think I stuck with in the details.. I am going to share my folder structure below.
Main_1 Folder
- main_1.tex (calls sub_main_1.tex via
input{sub_main_1.tex}
)- sub_main_1.tex (in the path with main_1.tex and it calls sub_main_2.tex via
import*{Main_2/}{sub_main_2.tex}
)Main_2 Folder
- sub_main_2.tex (calls specific folder which they contains .tex files.
import*{Main_3/Sub_1/}{main_2.tex}
)Main_3 Folder
Sub_1 Folder
- main_2.tex (calls sub_main_3.tex via
subimport*{./}{sub_main_3.tex}
)- sub_main_3.tex (in the same path with main_2.tex and it call images (.pdf, .png etc.) from image_folder with
includegraphics[scale=0.5]{../Sub_1/image_folder/abc.pdf}
command)image_folder
- abc.png, abc.pdf or abc.jpeg
I tried everything and I am facing again and again this problem:
! Package pdftex.def Error: File `abc.pdf' not found.
See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
...
I have used .pdf example because I am saving my .svg files as a .pdf format. It gives me error either I use .png or .pdf does not matter which format I use. I think I have a problem with using import
and subimport
functions.. Any help will be welcomed I literally stuck here for a long time..
In addition to that, I am using MikTeX and TeXworks locally on my MacOS but for only to test this nesting configuration. Originally I am working on a CI/CD server, I am going to implement this solution into a CI/CD server with a proper docker image file which is working perfectly until this problem occurred..
Note: I have more than one executable main.tex files which they are located under some different folders (image file paths are changing for every different parent main.tex files but I want to use same paths for the image files). So solution needs to fit also for that.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP