Le 14/12/2015 22:04, Georg Baum a écrit :
Jean-Marc Lasgouttes wrote:

Would it make sens to add a parametr \is_lyx_doc to our fileformat? We
could decide to do lots of interesting things (like have all relative
paths be relative to lib/doc) to files declared this way.

I am not sure. The whole purpose of \origin is to support the case when
somebody copies a file to a different location outside of LyX (instead of
using "Save As" in LyX, which adjusts all paths correctly). If we now
introduce a setting \is_lyx_doc then we would need to reset this setting
automatically on loading. Otherwise the image references of a document that
was copied from the LyX doc folder to some other location would be wrong.

The
documentor's toolbar could also magically kick in when editing such a
file (in non readonly mode).

This would be possible already, by testing for \origin starting with
"/systemlyxdir".

I really do not like that this /systemlyxdir thing has to be set on install by mofiying the file and that this setting is not accessible from the GUI. I'd prefer a scheme where the document is explicitly marked as lyxdoc and is handled differently depending on whether it is in its natural place or not. That would smell less like black magick.


JMarc

Reply via email to