Steve Litt wrote:
Hi all,
I just lost my entire book structure due to a small modification to my layout
file that prevented compilation. LyX therefore reverted the book's document
class from my custom "rjustbook" to "article", removing all chapters and
flattening out the table of contents.
Shame on me, my last backup was 5 days old. But still, it would have been nice
for LyX to say "hey, your layout file just became bad. Do you REALLY want me
to revert your document class to "article", or would you like to save as (the
broken) "whatever" document class so you can fix the problem without losing
content?"
A simple solution might be for LyX to automatically treat the document
as if it were a template it decides the layout is broken -- change to
article or whatever, but in read-only mode, so that you can only save
the modified document under a new name. That would leave the original
(now presumably broken) version intact.
/Paul