Juergen Spitzmueller wrote:

> Georg Baum wrote:
>> The reason for renaming the files was to be able to put everything in one
>> temp dir. In 1.3 we had one temp dir per buffer, that lead to problems
>> with included graphics. I would be possible to work around this in some
>> different way, but that would not be trivial and need lots of testing.
> 
> Isn't it possible to get access to the real filenames nevertheless, by
> using symlinks or something?

No. If that would work we could have used the original filenames directly.
Consider the included documents

dir1/x.lyx
dir2/x.lyx

We can not copy them to the same dir. We could create subdirs, but then that
does not work for absolute paths, or for ../../dir1/dir2/x.lyx. We would
also get problems with files with spaces or other strange characters in the
name.

>> I'd prefer to add the \includeonly feature natively to LyX.
> 
> While that would be nice, it would only cover the problem IMHO. Even if I
> don't know any at the moment, we basically break every package (or LaTeX
> command) that uses the filenames of subdocuments (or of their auxiliary
> files).

That is a drawback of that approach, yes. The same holds true for images.
OTOH I can't imagine any other case where access to the real file name from
the preamble or a ERT command is needed. We discussed this at length with
Angus, and the result was that creating mangled file names is the best
thing to do.


Georg

Reply via email to