On Sun, Jul 27, 2025 at 11:26:15AM -0400, Richard Kimberly Heck wrote:
On 7/26/25 5:47 PM, Enrico Forestieri wrote:
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.

However, I think this change needs to be discussed a bit.

Suppose you send a document to someone else not having the right entry in the symbols file specifying the required package. Then, the document is uncompilable unless the proper \usepackage{xyz} is inserted in the preamble.

On the other hand, without this change, the original author realizes that he has to add the proper package to be able to compile. In this case, when he sends the document to any recipient, it will be compilable and the only drawback is that the recipient will not be able to see the nifty representation on screen that the original author sees.

So, which is preferable? I'm slightly inclined to avoid making this change.

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

Reply via email to