Skip to content

Commit c437362

Browse files
mmckyclaude
andcommitted
Add amsfonts to LaTeX preamble so \mathbb renders under usetex
The upstream rewrite introduced \mathbb{E}[...] notation in plot titles and labels; the CJK-adapted preamble carried only CJKutf8+amsmath, so under text.usetex=True the \mathbb control sequence was undefined and fig.tight_layout() raised RuntimeError (latex failed). Upstream's own preamble is amsmath,amsfonts; this restores amsfonts alongside the zh-specific CJKutf8 adaptation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 75e1e8a commit c437362

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lectures/kalman_2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ mpl.rcParams.update({
7979
'text.latex.preamble': r'''
8080
\usepackage{{CJKutf8}}
8181
\usepackage{{amsmath}}
82+
\usepackage{{amsfonts}}
8283
'''
8384
})
8485

0 commit comments

Comments
 (0)