Why does overlay work only on the first tcolorbox?
Clash Royale CLAN TAG #URR8PPP 10 3 I'm trying to create a customized tcolorbox with some TikZ code in the overlay option. But it works only the first time I use my new box. What am I doing wrong? documentclassbook usepackagetikzlings usepackagemwe usepackage[most]tcolorbox newtcolorboxmybox[1]% enhanced, before skip=30ex, after skip=10ex, colback=yellow, frame hidden,% from https://tex.stackexchange.com/a/247509/101651 % from https://tex.stackexchange.com/a/431760/101651: overlay=% beginscope clip (frame.north west) -- (frame.north east) -- ++(0,+10ex) -- ++(-linewidth,0) -- cycle; marmot[xshift=.5linewidth] endscope beginscope clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) -- ++(-linewidth,0) -- cycle; marmot[xshift=.5linewidth, yshift=-tcbtextheight-2ex] endscope begindocument beginmybox We love TiemphkZlings! endmybox beginmybox blindtext endmybox enddocument tcolorbox share | improve this question asked Mar 16...