On 03/05/2010 11:43 AM, Julien Rioux wrote:
Hi list,

This is this bug: http://www.lyx.org/trac/ticket/3686

It has been around for a while, and continuously postponed. I would have a hack at this. Here is how I think it can be solved:

- configure.py and chkconfig.ltx are altered so that
  textclass.lst retains the missing package information.
- LayoutFile.cpp reads this information in.
- When a unavailable layout is used, BufferParams.cpp can now
  inform the user of the layout's requirements.

If this is the way to go, this involves a format change for the textclass.lst file.

Either:

1. An extra field is added to textclass.lst which list:
   a. the requirements, or maybe
   b. only the missing requirements.

Missing requirements would obviously be better, since then the user knows what to do.

2. The true/false field is replaced by an empty/missing field. When empty, the class is available, otherwise this field lists the missing requirements.

The empty/missing version is probably sufficient.

Please share your thoughts! Maybe the textclass.lst file format change can be avoided altogether?

I don't see a sensible way to avoid that. The info we want is originally in the layout files, and I don't think we want to get the info from there.

Richard

Reply via email to