I have the following box, but I want to change a bit the margins from all the sides. Is it possible to set custom margins (i.e., control where the text starts and ends)? Also I want to move the subtitles a bit to the left. Note that the text should start before the subtitles, as currently start of text and subtitles are aligned.
\usepackage{lipsum}
\usepackage[most]{tcolorbox}
\usepackage{tikz}
\newtcolorbox{openningbox}[2]{
colback = white,
colframe = black,
before upper = \tcbsubtitle{\tikz{\node[draw=black,fill=white,line width=1pt,rounded corners=3.5pt,font=\bfseries\color{black}]{\rule[-.3\baselineskip]{0pt}{\baselineskip}\normalsize\sffamily\bfseries\normalfont ~~\textbf{Experiment} #1~~};}},
before lower = \tcbsubtitle{\tikz{\node[draw=black,fill=white,line width=1pt,rounded corners=3.5pt,font=\bfseries\color{black}]{\rule[-.3\baselineskip]{0pt}{\baselineskip}\normalsize\sffamily\bfseries\normalfont ~~\textbf{Experiment} #2~~};}},
subtitle style = {
enhanced,
interior hidden,
frame hidden,
top=-0.8cm
},
boxrule=1pt,
arc=2.5pt,
sidebyside,
sidebyside align = top,
enhanced,
segmentation style = {solid,line width=1pt}
}
\begin{document}
\begin{openningbox}{Real}{Ideal}
\lipsum*[1]
\tcblower
\lipsum*[2]
\end{openningbox}
\end{document}
left
also moves only the text on the left part of the box, and does not affect the right column that much.segmentation
anchors