I would like to have a top and a side border around my section heading like this
I'm using titlesec \titleformat
to define my sections.
So far I've been able to add a top rule by putting a \titlerule
in the font definition but the side border is difficult. I suspect I should use some kind of more graphical package to set my borders but I don't know how to incorporate these into a \titleformat
.
\titleformat{\subsubsection} % Customize the \subsection{} section title
{\color{cyan}\titlerule
\vspace{.2ex}%
\sffamily\footnotesize\bfseries\color{cyan}} % Title font customizations
{\thesubsubsection} % Subsection number
{12pt} % Whitespace between the number and title
{\footnotesize} % Title font size
\titlespacing*{\subsubsection}{0mm}{3mm}{0mm} % Left, top and bottom spacing around the title