mml-book / mml-book.github.io

Companion webpage to the book "Mathematics For Machine Learning"
13.04k stars 2.41k forks source link

Typographic inconsistency with text inside equations #632

Open st-- opened 3 years ago

st-- commented 3 years ago

Describe the mistake Some equations contain text, such as (6.125). Note that "transformation of interest" and "inverse" are set in a different font from the main running text of the book, though it ought to be the same font. This could be a difference between the font used by \mathrm and the font used by \text: the former should be used for upright variables, the latter for actual text (English words). (And \operatorname for operators that aren't already pre-defined such as \exp.)

Location Example (this occurs in other places, too, didn't note down all of them):

  1. version (bottom of page)
  2. Chapter 6.7
  3. page 215 [pdf 221]
  4. equation number (6.125)

Proposed solution Assuming that's the cause, replace \mathrm with \text where applicable.