Image paste: sub-folder tex files not working #71
Labels
✨ Feature request
This would be nice, a new feature
⏳ Waiting for response
I need a reply, and I'm not a mind reader...
Feature Request
Is your feature request related to a problem? Please describe.
I am using a project structure where chapters have sub-folders which are then
\input
from the root folder. I also setgraphicspath
and would like to use the image paste feature.However, when using graphicspath, the paste feature will place the image relative to the current .tex file, while graphicspath will only search the root/ directory, leading to the resulting .tex file not compiling, because either paste should include the relative path to the current tex file in the path to the image or place the image in the root/ directory, as expected by pdftex.
In the screenshot you can see the result of configuring graphicspath as
diag
and pasting adiag.png
intointro.tex
. pdftex can't find the file because it's in a sub-folder.When not using
graphicspath
the paste command will use no parent-path, leading to the same issue: the image is dropped into the folder of the tex file (which is not the tex-root, so pdftex doesn't see the image)Describe the solution you'd like
Pasting the file should use the texpath / texroot path instead of the current directory of the file being edited
Describe alternatives you've considered
alternatively, pasting the file should append the current directory for the imagePath variable (or add another variable to use for this case)
The text was updated successfully, but these errors were encountered: