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.

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.

For example, a line in textclass.lst such as

"jgrga" "aguplus" "article (AGU++ JGR)" "false"

becomes one of:

1a. "jgrga" "aguplus" "article (AGU++ JGR)" "false" "aguplus,jgrga.sty"
1b. "jgrga" "aguplus" "article (AGU++ JGR)" "false" "jgrga.sty"
2.  "jgrga" "aguplus" "article (AGU++ JGR)" "jgrga.sty"

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

Julien

Reply via email to