On Fri, Sep 16, 2011 at 01:57:04AM +0200, Tommaso Cucinotta wrote: > AFAICS, the logic encoded in the Python script mimics what the > exportData->addExternal() calls do in the export code (i.e., they > track all the external files, so that they can be looped over later > on). Or, is that meant to work also with custom ERT insets > containing "manual" \includegraphics{} or manual \input{file.tex} > other similar weird things ?
If you use \includegraphics{}, \input{} and friends in the preamble of the document, or those commands are found in files included through InsetInclude, then the corresponding files are also included in the archive. However, if you use \input{file.tex} in ERT, file.tex will be missed because the .lyx file would contain: \backslash input{file.tex} and the regexp misses it. I think it can be made to work, though, by complicating a bit the logic. -- Enrico