I have written a document, that uses tcb-theorems to enclose theorems in the text. I would like to try out how my document looks if the titles were written in the sans serif version of the font I am using. So my question is: How can I change the style of the titles (and maybe the text) of the tcbtheorem environment that I have written below from serif to sans-serif?
\documentclass[a4paper, 11pt]{book}
\usepackage[a4paper,left=3cm,right=3cm,top=3cm,bottom=3cm]{geometry}
\usepackage{lmodern}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem[number within=section]{theorem}{Theorem}
{colback=blue!25,colframe=blue!25!black,fonttitle=\bfseries}{th}
\begin{document}
afasdsf
\begin{theorem}{Some Titel}{}
Some Text.
\end{theorem}
\end{document}
fonttitle=\bfseries\sffamily? – Jun 11 '20 at 18:09\boldmathif they’ll be using math mode within the title. If you want bold sans-serif math, scroll down and read some of the answers further down this page. – Davislor Jun 11 '20 at 19:13\hminbmor\boldsymbol{\symbf ...}inunicode-math. Besides, arrows over vectors are a common alternative. – Davislor Jun 11 '20 at 23:01\usepackage{libertinus},\boldmath, enter math mode, use\symbf. Extra bold, right out of the box. With XITS or Minion, it’s two additional lines of boilerplate. With any other math font, one more to get automaticFakeBold. I get that some publishers still only support 8-bit TeX, but the future is here. – Davislor Jun 12 '20 at 08:47