On 7/26/25 5:47 PM, Enrico Forestieri wrote:
On Sat, Jul 26, 2025 at 07:41:03PM +0200, Jean-Marc Lasgouttes wrote:
Le 26 juillet 2025 19:01:05 GMT+02:00, Richard Kimberly Heck <rikih...@gmail.com> a écrit :
It seems unfortunate that I had to mess with the CPP code to add this symbol. That means an ordinary user couldn't have done so. Without that, LyX did not try to load the package. Couldn't we let LyX load unknown packages mentioned in lib/symbols?

That would make sense.

The attached patch works for me. It simply scans for required packages that not have already been accounted for and loads them at the end.

So, only packages requiring a special treatment have to be explicitly added to the list already known to LyX and, most importantly, the patch does not change the current behavior wrt the list of "simplefeatures".

Makes sense for me. I did wonder briefly about whether there's a need to clear features_loaded_ at some point. But I looked at where else mustProvide gets called, and it seems that we are always using a 'new' LaTeXFeatures object when we write the LaTeX source.

Riki


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to