latexbeamer

Using structureitalicserif in tcolorbox, tcbox


I am using Beamer with the fonttheme structureitalicserif. I would like to have the same font in my tcolorbox titles. I haven't been able to find anything in the manuals nor online. Is this possible? How?


Solution

  • \documentclass{beamer}
    
    \usefonttheme{structureitalicserif}
    
    \usepackage{tcolorbox}
    \tcbset{fonttitle=\itshape\rmfamily}
    
    \begin{document}
    
    \begin{frame}
    \frametitle{title}
    \begin{block}{title}
    content...
    \end{block}
    \begin{tcolorbox}[title=foo]
    content...
    \end{tcolorbox}
    \end{frame}
    
    \end{document}