My problem is almost a repost from reddit (original post). Recently, I opened a issue trying to explain what is going on (issue), but the reddit post was clearer than my explanation and very similar to my problem.
Say I have the files
other.org, which are in different directories. In
other.orghas a hyperlink to an image
image.pngis in the same directory as
other.orgso when I export
other.orgto pdf, the image is found and included in the output.
However, when exporting
main.org, in the generated
main.texfile it'll try to find
./image.pngeven though that's in a different directory, so when exporting
main.orgnone of the images with relative links are included in the output
Anyone have advice on how I should fix this, without specifying the full path each time I link to an image?
The problem that I am facing is quite similar. The only difference is that I have a slightly different file structure, such as:
│ └── other.org
│ └── image.png
As from the original reddit post, the figure/file paths are not updated when exporting to PDF, causing a file with missing figures.
Update: An important difference between mine problem and that from reddit is that my
other.org also have
#+INCLUDEs insed and I guess that could be the source of the problem.
Is it possible to org updates the file paths in a recursive use of
Expected behaviour: Org-mode updates relative paths when using
#+include command, and successfully generates a PDF file.
Actual behaviour: Org-mode use paths as it is when exporting to
Emacs configuration: Doom emacs based
Org-mode version: 9.6