[Tex/LaTex] Font types in tcolorbox environment

fontstcolorbox

Is there a way to specify different fonts for both typing and math mode in the tcolorbox environment. I want to use the default Computer Modern for most of my document, but use Concrete Fonts and Concrete math to define a theorem in the tcolorbox environment.

Best Answer

The manual for tcolorbox has a mention for three variables to set the fonts in the title, upper and lower parts of the box.

So, one may use the code:

\documentclass{article} 
\usepackage{tcolorbox}
\newcommand{\fon}[1]{\fontfamily{#1}\selectfont}  %% Courtesy: @JouleV
\begin{document}
Normal text using default (Computer Modern Roman) font\ldots\medskip

%
\begin{tcolorbox}[fonttitle=\fon{pbk}\bfseries,
                  fontupper=\fon{ppl}\itshape,
                  fontlower=\fon{put}\scshape,
                  title=Tcolorbox using Bookman font in bold]
Upper part with Palatino font in italics.
\tcblower
Lower part with Utopia font in smallcaps.
\end{tcolorbox}
%
\end{document}

to get something like:

enter image description here

I'm not sure of how to bring in the Concrete font, as it being a Type-I font, requires different implementation.