注意
前往結尾以下載完整的範例程式碼。
STIX 字型#
在 LaTeX 轉譯中使用的 STIX 字型示範。

import matplotlib.pyplot as plt
circle123 = "\N{CIRCLED DIGIT ONE}\N{CIRCLED DIGIT TWO}\N{CIRCLED DIGIT THREE}"
tests = [
r'$%s\;\mathrm{%s}\;\mathbf{%s}$' % ((circle123,) * 3),
r'$\mathsf{Sans \Omega}\;\mathrm{\mathsf{Sans \Omega}}\;'
r'\mathbf{\mathsf{Sans \Omega}}$',
r'$\mathtt{Monospace}$',
r'$\mathcal{CALLIGRAPHIC}$',
r'$\mathbb{Blackboard\;\pi}$',
r'$\mathrm{\mathbb{Blackboard\;\pi}}$',
r'$\mathbf{\mathbb{Blackboard\;\pi}}$',
r'$\mathfrak{Fraktur}\;\mathbf{\mathfrak{Fraktur}}$',
r'$\mathscr{Script}$',
]
fig = plt.figure(figsize=(8, len(tests) + 2))
for i, s in enumerate(tests[::-1]):
fig.text(0, (i + .5) / len(tests), s, fontsize=32)
plt.show()
腳本總執行時間:(0 分鐘 1.574 秒)