0

To get a section title with a subtitle (where I also do not want the subtitle to show up in the table of contents) I've been using something like:

\section[Title]{Title\\ \footnotesize{Subtitle}}

But using this as a title for a tcolorbox produces numerous errors, the following does not work:

\begin{tcolorbox}[title=\section[Title]{Title\\ \foonotesize{Subtitle}}]

What would be the way to get something functionally equivalent to the above to work?

1

1 Answer 1

0

If the subtitle should anyway not be in the toc, you don't need them inside the section title and can put them after it:

\documentclass{article}
\usepackage[most]{tcolorbox}

\begin{document}

\tableofcontents


\begin{tcolorbox}[title={\protect\section[Title]{Title}\footnotesize subtitle}]

test

\end{tcolorbox}


\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .