Am Samstag, dem 04.03.2023 um 09:24 +0100 schrieb Jürgen Spitzmüller: > If you really want to have this subdir for some reason, you need to > include a routine that creates it. Since you have --shell-escape > enabled anyway, the most simple solution would be: > > \usepackage{shellesc} > \ShellEscape{mkdir picts}
By the way, note that LyX (LaTeX) will actually find and read files if the directory (picts/) with the respective files is there. It just cannot write into this directory (for security reasons, LaTeX disallows writing beyond the current working directory, which is the tmp dir here). A way which works is this: Create a symlink in the tmp directory with the same name as the prefix and linking to the respective subdirectory of the working directory. On Linux, this would be: \usepackage{shellesc} \ShellEscape{ln -s <workingdir>/picts picts} with <workingdir> replaced by where ever your document resides. Of course, this presupposed <workingdir>/picts actually exists. HTH, -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel