I would like to use an overlay but only at the start of a tcolorbox
when there is a break. This does not work as it is shown in the picture. Is there a way to fix that ?
Note: the use of overlay first
doesn't solve the problem because the logo is only printed once for the very first tcolorbox
broken.
\documentclass[12pt]{article}
\usepackage[skins,many,minted,breakable]{tcolorbox}
\usepackage{fontawesome5}
\usemintedstyle{bw}
\renewcommand{\ttdefault}{pcr}
% Source: https://tex.stackexchange.com/a/124688/6880
\newcommand{\mynewminted}[3]{%
\newminted[#1]{#2}{#3}%
\tcbset{myminted/#1/.style={minted language=#2,minted options={#3}}}}
\mynewminted{for-coding-python}{python}{tabsize=4,fontsize=\footnotesize}
\newtcblisting[
auto counter,
number within=section,
list inside=mypyg
]{coding-python}[1]{%
listing only,
title= #1,
list entry={\protect\numberline{\thetcbcounter}#1},
enhanced,
coltitle = black,
colbacktitle = black!10!white,
colback = white,
toptitle = 1.5mm,
bottomtitle = 1.5mm,
center title,
breakable,
% drop fuzzy shadow,
myminted/for-coding-python,
overlay first= {%
\begin{tcbcliptitle}
\node[
anchor = north west,
inner ysep = 1.75mm,
inner xsep = 2mm
] at (frame.north west){\Large\faPython};
\end{tcbcliptitle}
}
}
\begin{document}
\begin{coding-python}{TTT}
if i == 0:
print("OK")
elif:
print("KO")
\end{coding-python}
\null\vspace{12.5cm}
\begin{coding-python}{TTT}
if i == 0:
print("OK")
elif:
print("KO")
\end{coding-python}
\end{document}
tcbcliptitle
instead oftcbclipframe
solve the issue?