You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to include \mathbf around greek letters, or try to use the \bm command instead which is actually the better way of producing bold greek letters, I get various errors when trying to compile
Minimal non-working example:
title: Greek symbols, mathbf and bm with Metropolis
output:
beamer_presentation:
theme: "metropolis"
latex_engine: xelatex
header-includes:
\usefonttheme{professionalfonts}
\setsansfont[BoldFont={Fira Sans SemiBold}]{Fira Sans Book}
\usepackage{bm}
require(knitr)
Greek symbols
This $\mathbf{\theta}$ should be a greek symbol using
\mathbf{\theta}
This should be a greek symbol using
\bm{\theta}
Neither works.
The text was updated successfully, but these errors were encountered:
With unicode-math you then have to use \symbf{\theta}
Minimal example:
\documentclass[1610]{beamer}
\usefonttheme{professionalfonts}
\usetheme{metropolis}
\usepackage{fontspec}
\setsansfont[BoldFont={Fira Sans SemiBold}]{Fira Sans Book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[
mathrm=sym,
math-style=ISO, % Greek letters also in italics
bold-style=ISO, % bold letters also in italics
]{unicode-math}
\setmathfont{Fira Math}
% top is still missing in Fira Math, get it from another font\setmathfont[range={\top}]{XITS Math}
\begin{document}
\begin{frame}[t]{Example}
\begin{align}
\symbf{\theta} &= (1, 2, 3)^\top\\\theta_0 &= 1\end{align}
\end{frame}
\end{document}
There are several other math fonts and you should always set one. Go with "Latin Modern Math" for the "TeX" font.
If I try to include \mathbf around greek letters, or try to use the \bm command instead which is actually the better way of producing bold greek letters, I get various errors when trying to compile
Minimal non-working example:
title: Greek symbols, mathbf and bm with Metropolis
output:
beamer_presentation:
theme: "metropolis"
latex_engine: xelatex
header-includes:
Greek symbols
This$\mathbf{\theta}$ should be a greek symbol using
This should be a greek symbol using
Neither works.
The text was updated successfully, but these errors were encountered: