Am Montag, dem 20.03.2023 um 12:51 +0000 schrieb Julian Popp: > Dear LyX users, > > I came across an (for me) unexpected behavior in LyX 2.3 that > probably requires me to change my whole document... > > For typesetting units and values correctly, I used the package > siunitx. Since I got a new notebook and now have LyX 2.3.7 (+MiTeX) > instead of 2.3.5-1 (in addition to package updates) there is now an > error about the incompatibility of the packages units and siunitx. > The issue here is: I do not have the \usepackage{units} in my custom > document preamble. > > After some investigation I found out that LyX in nevertheless > including the \usepackage{units} in the LaTeX code (export -> LaTeX > (pdflatex)). See code below.
LyX autoloads the package if you use a construct that requires this package (e.g., \unitfrac, \unitfracthree, \nicefrac). > Has anybody else experienced that issue? Recommendations for > mitigation? You can prevent autoloading by entering to Document > Settings > Local Layout: Provides units 1 But if you now have a LaTeX macro which requires this package (and is not covered by siunitx), you'll get an "undefined control sequence" error. HTH, Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users