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

4 Option Keys: 4.1 Title

This document describes various options that can be applied to tcolorbox macros. It discusses the title, notitle, adjusted title, and adjust text keys. The title key adds a heading with the given text. Notitle removes the title. Adjusted title creates a heading that adjusts its minimum height to fit the adjust text. Adjust text sets the reference text used to determine the minimum height for adjusted titles. Examples are given to demonstrate how adjusted title adjusts the box height based on the adjust text.

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)
88 views1 page

4 Option Keys: 4.1 Title

This document describes various options that can be applied to tcolorbox macros. It discusses the title, notitle, adjusted title, and adjust text keys. The title key adds a heading with the given text. Notitle removes the title. Adjusted title creates a heading that adjusts its minimum height to fit the adjust text. Adjust text sets the reference text used to determine the minimum height for adjusted titles. Examples are given to demonstrate how adjusted title adjusts the box height based on the adjust text.

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
You are on page 1/ 1

4 Option Keys

For the hoptionsi in tcolorboxÕ P. 12 respectively \tcbsetÕ P. 13 the following pgf keys can be
applied. The key tree path /tcb/ is not to be used inside these macros. It is easy to add your
own style keys using the syntax for pgf keys, see [21, 22] or the examples starting from page 326.

4.1 Title
/tcb/title=htexti (no default, initially empty)
Creates a heading line with htexti as content.

\begin{tcolorbox}[title=My heading line] My heading line


This is a \textbf{tcolorbox}.
\end{tcolorbox} This is a tcolorbox.

/tcb/notitle (no value, initially set)


Removes the title line if set before.
/tcb/adjusted title=htexti (style, no default, initially unset)
Creates a heading line with htexti as content. The minimal height of this line is adjusted to
fit the text given by /tcb/adjust text. This option makes sense for single line headings
if boxes are set side by side with equal height. Note that it is very easy to trick this
adjustment.

\tcbset{colback=White,arc=0mm,width=(\linewidth-4pt)/4,
equal height group=AT,before=,after=\hfill,fonttitle=\bfseries}

The following titles are not adjusted:\\


\foreach \n in {xxx,ggg,AAA,\"Agypten}
{\begin{tcolorbox}[title=\n,colframe=red!75!black]
Some content.\end{tcolorbox}}
Now, we try again with adjusted titles:\\
\foreach \n in {xxx,ggg,AAA,\"Agypten}
{\begin{tcolorbox}[adjusted title=\n,colframe=blue!75!black]
Some content.\end{tcolorbox}}

The following titles are not adjusted:


xxx ggg AAA Ägypten
Some content. Some content. Some content. Some content.

Now, we try again with adjusted titles:


xxx ggg AAA Ägypten

Some content. Some content. Some content. Some content.

/tcb/adjust text=htexti (no default, initially Äpgjy)


This sets the reference text for /tcb/adjusted title. If your texts never exceed ’Äpgjy’
in depth and height you don’t need to care about this option.

18

You might also like