Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b4303a

Browse files
committed
Add news item for mathnormal feature
1 parent c3a69c6 commit 3b4303a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Mathtext distinguishes *italic* and *normal* font
2+
-------------------------------------------------
3+
4+
Matplotlibs lightweight TeX expression parser (`usetex=False`) now distinguishes between *italic* and *normal* math fonts to closer replicate the behaviour of LaTeX.
5+
Italic font is selected with `\mathit`, whereas the normal math font is selected by default in math environment but can be explicitly set with the new `\mathnormal` command. Previously, it was not possible to typeset italic digits.
6+
7+
The main difference is that, *italic* produces italic digits, whereas *normal* produces upright digits.
8+
One difference to historical LaTeX is that LaTeX further distinguishes between *normal* (`\mathnormal`) and *default math*, where the default uses roman digits and normal uses oldstyle digits. This distinction is no longer present with modern LaTeX engines and unicode-math.

0 commit comments

Comments
 (0)