The import
package, specifically its subimport
command, makes it possible to input another file while specifying a base directory, so that all further \inputs
in the included file will be resolved relative to the specified base directory. See for instance this answer.
However, the import
package does not work for other commands than \input
which include external files. For instance, it does not work with the VerbatimInput
command from the verbatim
package
Is there a workaround or another package that import
which would work better for this use case?