0% found this document useful (0 votes)
414 views1 page

TCB Font Upper

The document describes three tcolorbox options - fontupper, fontlower, and fonttitle - that allow setting text formatting before the content of the upper part, lower part, and title of a tcolorbox respectively. Examples are given showing how to use each option to apply font settings like bold or sans serif to specific parts of the tcolorbox.

Uploaded by

jimuso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
414 views1 page

TCB Font Upper

The document describes three tcolorbox options - fontupper, fontlower, and fonttitle - that allow setting text formatting before the content of the upper part, lower part, and title of a tcolorbox respectively. Examples are given showing how to use each option to apply font settings like bold or sans serif to specific parts of the tcolorbox.

Uploaded by

jimuso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

/tcb/fontupper=htexti (no default, initially empty)

Sets htexti before the content of the upper part (e. g. font settings).

\begin{tcolorbox}[fontupper=Hello!~\sffamily]
This is a \textbf{tcolorbox}.
\end{tcolorbox}

Hello! This is a tcolorbox.

/tcb/fontlower=htexti (no default, initially empty)


Sets htexti before the content of the lower part (e. g. font settings).

\begin{tcolorbox}[fontlower=\sffamily\bfseries]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

This is a tcolorbox.

This is the lower part.

/tcb/fonttitle=htexti (no default, initially empty)


Sets htexti before the content of the title text (e. g. font settings).

\begin{tcolorbox}[fonttitle=\sffamily\bfseries\large,title=Hello]
This is a \textbf{tcolorbox}.
\end{tcolorbox}

Hello
This is a tcolorbox.

You might also like