Open sfo opened 1 year ago
The font selection mechanism needs to be refactored in various places and an improved interaction with unicode-math
is on my list. Currently, the actual font selection is delayed to the end of the preamble an especially the math font selection is done even after the begindocument
hook. Maybe using \AfterEndPreamble{...}
would help for the subfiles
issue. Unfortunately, I do not have time to work on the next major release so please do not expect any improvements in the near future.
Setting
cdmath=false
as class option when using theunicode-math
package leads to issues in typesetting of math operators like\ln
and\exp
, which are now italicized.This MWE:
leads to:![math_wrong](https://user-images.githubusercontent.com/571497/204289279-279d5e50-deb7-49b1-b872-c724869ccf59.png)
This issue seems to go into the same direction as #22. The workaround is also the same:
Another observation: When using the
subfiles
package it's required to set\TUDoptions{cdmath=false}
explicitly after\begin{document}
in each file. Setting it in\AtBeginDocument{}
does not work.