Attached is an updated patch that 1. use enum ... enum info_type { UNKNOWN_INFO, // Invalid type SHORTCUT_INFO, // Keyboard shortcut LYXRC_INFO, // RC entry PACKAGE_INFO, // Availability of package TEXTCLASS_INFO, // Availability of textclass FONT_INFO, // Availability of font // BUFFER_INFO, // BufferParam (not implemented yet) }; and many related changes.
2. handle the availability of package, textclass and font... } else if (type_ == PACKAGE_INFO) { // check in packages.lst info_ = LaTeXFeatures::isAvailable(name_) ? _("yes") : _("no"); } else if (type_ == TEXTCLASS_INFO) { // name_ is the class name pair<bool, lyx::textclass_type> pp = textclasslist.numberOfClass(name_); info_ = pp.first ? _("yes") : _("no"); } else if (type_ == FONT_INFO) { // name_ is the class name info_ = LaTeXFeatures::isAvailable(name_) ? _("yes") : _("no"); } 3. remove LaTeXConfig.lyx.in and relevant parts in configure.py 4. modify LaTeXConfig.lyx, such as \begin_layout Description -Found: @chk_ec@ +Found: +\begin_inset Info +type "font" +arg "ec" +\end_inset + You will like the simplified handling and new look of LaTeXConfig.lyx. Note that there are a few unhandled Info type in LaTeXConfig.lyx (configure date, and fmtversion). Bo