Tommaso Cucinotta wrote:
The first thing I'd like to point out is that it is quite annoying to
have to repeat
the same settings to each and every child document, just to allow the
preview
of them in isolation. I would love to see a mechanism for automatic
*inheritance*
of these properties from the master, and probably with also the
possibility to
add some customizations of the children documents that are automatically
"backported" to the master.
I've had the same idea. The mechanism would presumably be a "master
document" setting in Document>Settings, which would identify the master
document. That would then be opened whenever the child was, and the
various settings imported (which, in the code, may mean no more than
giving the two documents the same BufferParams).
That said, one might worry that this was fragile. If the master gets
moved, etc, etc. But maybe the master document's settings actually get
copied into the child---when the child is saved, the write() routine
will just write the BufferParams as it already does---and then if the
master can't be found, the other get used. Something like that.
Note that this would also take care of backporting: If it's just one
BufferParams, then changes in the child ARE changes to the master.
Macros, theorems and environments are a pain on their own. Usually, I
define
all of them into the master (I used to include a macro file with
LaTeX, but LyX
does not like that, yet). If I want to preview the child, I have to
copy the macro
definitions from the master, therefore the master will not preview
anymore due
to the double definition of macros.
There's a workaround on the wiki: You do an \ifx around the definitions.
But this won't be a problem at all with Stefan's new code, which should
go into 1.6.svn soon.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto