I want to style my ExSheets questions with a box around the headings but I can't make it work. I got this far:
\documentclass[a4paper,11pt,oneside]{memoir}
\usepackage{tcolorbox}
\usepackage{exsheets}
\DeclareInstance{exsheets-heading}{boxed}{default}{
pre-code=\begin{tcolorbox},
post-code=\end{tcolorbox},
join = {title[r,B]number[l,B](.333em,0pt) },
attach =
{
main[l,vc]title[l,vc](0pt,0pt) ;
main[r,vc]points[l,vc](\marginparsep,0pt)
}
}
\SetupExSheets[question]{headings={boxed}}
\SetupExSheets[solution]{headings={runin-nr}}
\begin{document}
\begin{question}
First question.
\end{question}
\end{document}
I'm not really satisfied with the position of the box. How can I improve this so the box gets centered around the heading?
\tcolorboxenvironment{question}{some options}
is a possible bypass