Open casper-hansen opened 5 years ago
This is a known incompatibility with the import
package. See https://github.com/gpoore/minted/issues/172.
Thanks, I guess this can be closed, if it is duplicate. Has this been added to the documentation yet? I could not really find anything about it.
It looks like the other issue got closed before a note was added to the documentation. So I am going to reopen this issue to make sure that it gets into the documentation this time.
You know if it is realted to this: https://tex.stackexchange.com/questions/531738/minted-environment-not-working-in-overleaf ? Is the yo' solution
usepackage[outputdir=../]{minted}
a valid one. I am not able to use it.
@sebacea This issue is primarily about the import
package, which is incompatible with minted
. What you linked to is related to Overleaf's internal functionality, which is a different situation and something that minted
cannot address. It appears that the solution for the linked Overleaf situation is to avoid using subdirectories.
I noticed that unfortunately the same problem arises when using the subfiles
package
So if I have an overleaf a folder structure similar to: \maindir -- \subdir1 -- \subdir2 --- \Resources ---- Preamble.tex --- main.tex Meaning, the main.tex file is under \subdir2 and at the same level as the /Resources folder, while the Preamble.tex with all the /usepackage is under \Resources. Is there then no way minted will work this way? Do I have to forcefully move the files from the folders they currently are?
I'm on Overleaf, using pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2017.7.12)
My setup is that I do this for every chapter:
But if I write any code in implementation.tex, minted gives me the error. If I just write it in my main document, minted works. I'm wondering why it won't work with import?
I tried different supposed solutions from stackexchange, with regards to how you import it. Including frozencache, cache, outputdir.