How do you use the LaTeX blackboard font in MATLAB?

You might not have noticed it, but you get an warning message in the command prompt: Warning: Unable to interpret TeX string which tells you that MATLAB has trouble parsing your LaTeX expression. More specifically, the blackboard bold math font (indicated by the ‘\mathbb’) is not supported by MATLAB’s built-in LaTeX interpreter (it requires the … Read more

Bold font weight for LaTeX axes label in matplotlib

Unfortunately you can’t bold symbols using the bold font, see this question on tex.stackexchange. As the answer suggests, you could use \boldsymbol to bold phi: r’$\boldsymbol{\phi}$’ You’ll need to load amsmath into the TeX preamble: matplotlib.rc(‘text’, usetex=True) matplotlib.rcParams[‘text.latex.preamble’]=[r”\usepackage{amsmath}”]