4

A tcolorbox looks something like:

**Title**

The text begins here, that is on a line below the title line ...

What I would like is:

 **Title**  The text begins here, that is on the same line as the title ...

I just found the answer on page 19 of the manual for version 3.80. (I had mistakingly looked at version 2.80 where I found it only as a theorem.)

  • With biblatex you can print a bibliography by category. – Bernard May 19 '16 at 21:15
7

Use detach title

\documentclass{article}
\usepackage{tcolorbox}

\begin{document}
\begin{tcolorbox}[detach title,
                  fonttitle=\bfseries,coltitle=red,
                  before upper={\tcbtitle\quad},
                  title=My title]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\end{document}

enter image description here

  • I found it 2 minutes ago and was so eager to edit my question that I did not see your answer. – schremmer May 19 '16 at 22:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.