I want to make a tcolorbox
that looks roughly like this
-----------------------------------------------------------------------------------
| Subtitle (If the subtitle is too long, like it is here,
TITLE | then it should wrap like this, and the title on the left
| hand side should be centered relative to the subtitle)
-----------------------------------------------------------------------------------
Here is the content of the tcolorbox.
-----------------------------------------------------------------------------------
The lines should be solid and connected, and the vertical alignment should be as described above. It should be possible to specify the distance from the left margin to the horizontal separator, and from the horizontal separator to the block of subtitle text (this will be used for all tcolorboxes
, which may have titles of different lengths. It should be possible to independently specify the fonts used for the title and subtitle.
Here is a minimal example:
\documentclass{report}
\usepackage{tcolorbox}
\newlength{\normalparindent}
\AtBeginDocument{\setlength{\normalparindent}{\parindent}}
\tcbset{before upper={\setlength{\parindent}{\normalparindent}}}
\tcbuselibrary{skins,raster,breakable}
\tcbset{
enhanced,
frame hidden,interior hidden,
sharp corners,
boxrule=0pt,
left=-0.1cm,right=-0.1cm,top=0.20cm,bottom=0.35cm,
toptitle=0.35cm+1pt,
bottomtitle=0.00cm+1pt,
colframe=white,colback=white,coltitle=black,
bottomrule=1pt,
borderline north={1pt}{0pt}{black},
borderline south={1pt}{0pt}{black},
fonttitle=\bfseries,fontupper=\normalsize,
before skip=0.375cm+2pt,after skip=0.475cm+2pt
}
\begin{document}
\begin{tcolorbox}[title=TITLE]
\noindent Content.
\end{tcolorbox}
\end{document}