Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This would work for me, too. Only drawback is that it would require me to replace all (or maybe just most... not sure) occurrences of \mathit with \mathmlit. Also, I would not know how to apply this method if I were using a different math font. To be fair, though, it took me a lot of time to figure out that I'd need Latin Modern Roman as a complement to Latin Modern Math. Had to go and look them up in the system font list. I had not specified latin modern at all, it was simply the default. So without your hint I'd had no idea what font I was looking at... Commented May 10, 2024 at 13:22
  • @Zak yes original plan was to declare \mathit that way but unicode-math goes to some lengths to reset this very late and I decided to post a simple version that worked ratherthan lots of code trying to defeat Will's code, but I hadn't noticed that \setmathrm set both mathrm and mathit so your version is simpler Commented May 10, 2024 at 13:30