Why does overlay work only on the first tcolorbox?how to draw a bicolor tcolorbox without frame?tcolorbox with title on the left sidetcolorbox overlay app does not worktcolorbox `interior titled code app` does not workWhy some commands in tcolorbox do not work?tcolorbox breakable raster does not work if a cell breakstcolorbox, tabularx: first line with a multicolumn does not work in tcolorbox environmentoverlay for lowerpart of a breakable tcolorboxtcolorbox overlay in caption formatBeamer, tcolorbox, and fade overlayWhy does the former work but the latter doesn't?Tcolorbox: Outer style doesn't work

Why do passenger jet manufacturers design their planes with stall prevention systems?

Do I need to be arrogant to get ahead?

Why does overlay work only on the first tcolorbox?

What do you call the act of removing a part of a word and replacing it with an apostrophe

gcc: how to detect bad `bool` usage

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

Pauli exclusion principle

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

If I can solve Sudoku, can I solve the Travelling Salesman Problem (TSP)? If so, how?

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

Is there a symmetric-key algorithm which we can use for creating a signature?

Bacteria contamination inside a thermos bottle

Is there a place to find the pricing for things not mentioned in the PHB? (non-magical)

How to pronounce "I ♥ Huckabees"?

What is the Japanese sound word for the clinking of money?

Why does a Star of David appear at a rally with Francisco Franco?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

How to plot polar formed complex numbers?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Is it possible to upcast ritual spells?

Violin - Can double stops be played when the strings are not next to each other?

My adviser wants to be the first author

How to explain that I do not want to visit a country due to personal safety concern?

Simplify an interface for flexibly applying rules to periods of time



Why does overlay work only on the first tcolorbox?


how to draw a bicolor tcolorbox without frame?tcolorbox with title on the left sidetcolorbox overlay app does not worktcolorbox `interior titled code app` does not workWhy some commands in tcolorbox do not work?tcolorbox breakable raster does not work if a cell breakstcolorbox, tabularx: first line with a multicolumn does not work in tcolorbox environmentoverlay for lowerpart of a breakable tcolorboxtcolorbox overlay in caption formatBeamer, tcolorbox, and fade overlayWhy does the former work but the latter doesn't?Tcolorbox: Outer style doesn't work













4















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


enter image description here










share|improve this question






















  • If you add the code for the first box twice, you get two identical boxes. (Most likely I do not understand the question.)

    – marmot
    1 hour ago











  • @marmot I don't get the marmot on the second box!

    – CarLaTeX
    1 hour ago











  • beginmybox We love TiemphkZlings! endmybox beginmybox We love TiemphkZlings! endmybox works fine, the problem seem to be related to the content of the box

    – samcarter
    1 hour ago












  • the problem seems to be that for longer texts, the marmot gets render too low and even clipped away.

    – samcarter
    1 hour ago






  • 3





    @CarLaTeX The marmot was probably in its burrow behind the tcolorbox :)

    – samcarter
    1 hour ago















4















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


enter image description here










share|improve this question






















  • If you add the code for the first box twice, you get two identical boxes. (Most likely I do not understand the question.)

    – marmot
    1 hour ago











  • @marmot I don't get the marmot on the second box!

    – CarLaTeX
    1 hour ago











  • beginmybox We love TiemphkZlings! endmybox beginmybox We love TiemphkZlings! endmybox works fine, the problem seem to be related to the content of the box

    – samcarter
    1 hour ago












  • the problem seems to be that for longer texts, the marmot gets render too low and even clipped away.

    – samcarter
    1 hour ago






  • 3





    @CarLaTeX The marmot was probably in its burrow behind the tcolorbox :)

    – samcarter
    1 hour ago













4












4








4


2






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


enter image description here










share|improve this question














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


enter image description here







tcolorbox






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









CarLaTeXCarLaTeX

33.5k551137




33.5k551137












  • If you add the code for the first box twice, you get two identical boxes. (Most likely I do not understand the question.)

    – marmot
    1 hour ago











  • @marmot I don't get the marmot on the second box!

    – CarLaTeX
    1 hour ago











  • beginmybox We love TiemphkZlings! endmybox beginmybox We love TiemphkZlings! endmybox works fine, the problem seem to be related to the content of the box

    – samcarter
    1 hour ago












  • the problem seems to be that for longer texts, the marmot gets render too low and even clipped away.

    – samcarter
    1 hour ago






  • 3





    @CarLaTeX The marmot was probably in its burrow behind the tcolorbox :)

    – samcarter
    1 hour ago

















  • If you add the code for the first box twice, you get two identical boxes. (Most likely I do not understand the question.)

    – marmot
    1 hour ago











  • @marmot I don't get the marmot on the second box!

    – CarLaTeX
    1 hour ago











  • beginmybox We love TiemphkZlings! endmybox beginmybox We love TiemphkZlings! endmybox works fine, the problem seem to be related to the content of the box

    – samcarter
    1 hour ago












  • the problem seems to be that for longer texts, the marmot gets render too low and even clipped away.

    – samcarter
    1 hour ago






  • 3





    @CarLaTeX The marmot was probably in its burrow behind the tcolorbox :)

    – samcarter
    1 hour ago
















If you add the code for the first box twice, you get two identical boxes. (Most likely I do not understand the question.)

– marmot
1 hour ago





If you add the code for the first box twice, you get two identical boxes. (Most likely I do not understand the question.)

– marmot
1 hour ago













@marmot I don't get the marmot on the second box!

– CarLaTeX
1 hour ago





@marmot I don't get the marmot on the second box!

– CarLaTeX
1 hour ago













beginmybox We love TiemphkZlings! endmybox beginmybox We love TiemphkZlings! endmybox works fine, the problem seem to be related to the content of the box

– samcarter
1 hour ago






beginmybox We love TiemphkZlings! endmybox beginmybox We love TiemphkZlings! endmybox works fine, the problem seem to be related to the content of the box

– samcarter
1 hour ago














the problem seems to be that for longer texts, the marmot gets render too low and even clipped away.

– samcarter
1 hour ago





the problem seems to be that for longer texts, the marmot gets render too low and even clipped away.

– samcarter
1 hour ago




3




3





@CarLaTeX The marmot was probably in its burrow behind the tcolorbox :)

– samcarter
1 hour ago





@CarLaTeX The marmot was probably in its burrow behind the tcolorbox :)

– samcarter
1 hour ago










1 Answer
1






active

oldest

votes


















5














Oh no! No marmot on the second box! This has to be rectified! (As mentioned by @samcarter, the marmot got clipped away. But one can shift her or him back to visible region.)



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



Some other tikzlings joined the party.



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
koala[shift=([yshift=-7ex,xshift=-5em]frame.north)]
mouse[shift=([yshift=-7ex,xshift=5em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
koala[shift=([yshift=-4ex,xshift=-5em]frame.south)]
mouse[shift=([yshift=-4ex,xshift=5em]frame.south)]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



And a cheesebox tends to attract mice.



documentclassbook
usepackagetikzlings
usepackagemwe

usepackage[most]tcolorbox

newtcolorboxmousebox[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
foreach Y in -5,0,5
beginscope[shift=([yshift=-9ex,xshift=Y em]frame.north)]
path[fill=gray!50]
(0.5, 1.8) .. controls (0.5, 1.58) and (0.2, 1.25) .. (0, 1.16) .. controls (-0.2, 1.25) and (-0.5, 1.58) .. (-0.5, 1.8) .. controls (-0.34, 2.3) and (0.34, 2.3) .. (0.5, 1.8) -- cycle;
path[fill=gray!50!black] (0, 1.248) circle (0.09);
foreach X in 10,20,33%
fill[gray!50!black] (0,1.2) + (X:0.08) to[out=X,in=180-X] ++(X-20:0.3) --++(0,0.01) to[out=180-X,in=X] cycle (0,1.2) + (180-X:0.08) to[out=180-X,in=X] ++(200-X:0.3) --++(0,0.01) to[out=X,in=180-X] cycle;

endscope

clip (frame.north west) -- (frame.north east) -- ++(0,+10ex) --
++(-linewidth,0) -- cycle;
foreach Y in -5,0,5
mouse[shift=([yshift=-9ex,xshift=Y em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
foreach X in -5,0,5

mouse[shift=([yshift=-4ex,xshift=X em]frame.south)]
endscope


begindocument
beginmousebox
We love cheese!
endmousebox
beginmousebox
blindtext
endmousebox
enddocument


enter image description here






share|improve this answer

























  • Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

    – Ulrike Fischer
    1 hour ago











  • @UlrikeFischer What about the koala and the mouse?

    – marmot
    1 hour ago






  • 2





    You should shuffle the bottom parts.

    – Ulrike Fischer
    1 hour ago







  • 1





    +1: Can you explain what the mistake from the OP was?

    – Dr. Manuel Kuehner
    1 hour ago






  • 1





    @Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

    – marmot
    1 hour ago










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479831%2fwhy-does-overlay-work-only-on-the-first-tcolorbox%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














Oh no! No marmot on the second box! This has to be rectified! (As mentioned by @samcarter, the marmot got clipped away. But one can shift her or him back to visible region.)



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



Some other tikzlings joined the party.



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
koala[shift=([yshift=-7ex,xshift=-5em]frame.north)]
mouse[shift=([yshift=-7ex,xshift=5em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
koala[shift=([yshift=-4ex,xshift=-5em]frame.south)]
mouse[shift=([yshift=-4ex,xshift=5em]frame.south)]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



And a cheesebox tends to attract mice.



documentclassbook
usepackagetikzlings
usepackagemwe

usepackage[most]tcolorbox

newtcolorboxmousebox[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
foreach Y in -5,0,5
beginscope[shift=([yshift=-9ex,xshift=Y em]frame.north)]
path[fill=gray!50]
(0.5, 1.8) .. controls (0.5, 1.58) and (0.2, 1.25) .. (0, 1.16) .. controls (-0.2, 1.25) and (-0.5, 1.58) .. (-0.5, 1.8) .. controls (-0.34, 2.3) and (0.34, 2.3) .. (0.5, 1.8) -- cycle;
path[fill=gray!50!black] (0, 1.248) circle (0.09);
foreach X in 10,20,33%
fill[gray!50!black] (0,1.2) + (X:0.08) to[out=X,in=180-X] ++(X-20:0.3) --++(0,0.01) to[out=180-X,in=X] cycle (0,1.2) + (180-X:0.08) to[out=180-X,in=X] ++(200-X:0.3) --++(0,0.01) to[out=X,in=180-X] cycle;

endscope

clip (frame.north west) -- (frame.north east) -- ++(0,+10ex) --
++(-linewidth,0) -- cycle;
foreach Y in -5,0,5
mouse[shift=([yshift=-9ex,xshift=Y em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
foreach X in -5,0,5

mouse[shift=([yshift=-4ex,xshift=X em]frame.south)]
endscope


begindocument
beginmousebox
We love cheese!
endmousebox
beginmousebox
blindtext
endmousebox
enddocument


enter image description here






share|improve this answer

























  • Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

    – Ulrike Fischer
    1 hour ago











  • @UlrikeFischer What about the koala and the mouse?

    – marmot
    1 hour ago






  • 2





    You should shuffle the bottom parts.

    – Ulrike Fischer
    1 hour ago







  • 1





    +1: Can you explain what the mistake from the OP was?

    – Dr. Manuel Kuehner
    1 hour ago






  • 1





    @Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

    – marmot
    1 hour ago















5














Oh no! No marmot on the second box! This has to be rectified! (As mentioned by @samcarter, the marmot got clipped away. But one can shift her or him back to visible region.)



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



Some other tikzlings joined the party.



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
koala[shift=([yshift=-7ex,xshift=-5em]frame.north)]
mouse[shift=([yshift=-7ex,xshift=5em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
koala[shift=([yshift=-4ex,xshift=-5em]frame.south)]
mouse[shift=([yshift=-4ex,xshift=5em]frame.south)]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



And a cheesebox tends to attract mice.



documentclassbook
usepackagetikzlings
usepackagemwe

usepackage[most]tcolorbox

newtcolorboxmousebox[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
foreach Y in -5,0,5
beginscope[shift=([yshift=-9ex,xshift=Y em]frame.north)]
path[fill=gray!50]
(0.5, 1.8) .. controls (0.5, 1.58) and (0.2, 1.25) .. (0, 1.16) .. controls (-0.2, 1.25) and (-0.5, 1.58) .. (-0.5, 1.8) .. controls (-0.34, 2.3) and (0.34, 2.3) .. (0.5, 1.8) -- cycle;
path[fill=gray!50!black] (0, 1.248) circle (0.09);
foreach X in 10,20,33%
fill[gray!50!black] (0,1.2) + (X:0.08) to[out=X,in=180-X] ++(X-20:0.3) --++(0,0.01) to[out=180-X,in=X] cycle (0,1.2) + (180-X:0.08) to[out=180-X,in=X] ++(200-X:0.3) --++(0,0.01) to[out=X,in=180-X] cycle;

endscope

clip (frame.north west) -- (frame.north east) -- ++(0,+10ex) --
++(-linewidth,0) -- cycle;
foreach Y in -5,0,5
mouse[shift=([yshift=-9ex,xshift=Y em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
foreach X in -5,0,5

mouse[shift=([yshift=-4ex,xshift=X em]frame.south)]
endscope


begindocument
beginmousebox
We love cheese!
endmousebox
beginmousebox
blindtext
endmousebox
enddocument


enter image description here






share|improve this answer

























  • Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

    – Ulrike Fischer
    1 hour ago











  • @UlrikeFischer What about the koala and the mouse?

    – marmot
    1 hour ago






  • 2





    You should shuffle the bottom parts.

    – Ulrike Fischer
    1 hour ago







  • 1





    +1: Can you explain what the mistake from the OP was?

    – Dr. Manuel Kuehner
    1 hour ago






  • 1





    @Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

    – marmot
    1 hour ago













5












5








5







Oh no! No marmot on the second box! This has to be rectified! (As mentioned by @samcarter, the marmot got clipped away. But one can shift her or him back to visible region.)



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



Some other tikzlings joined the party.



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
koala[shift=([yshift=-7ex,xshift=-5em]frame.north)]
mouse[shift=([yshift=-7ex,xshift=5em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
koala[shift=([yshift=-4ex,xshift=-5em]frame.south)]
mouse[shift=([yshift=-4ex,xshift=5em]frame.south)]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



And a cheesebox tends to attract mice.



documentclassbook
usepackagetikzlings
usepackagemwe

usepackage[most]tcolorbox

newtcolorboxmousebox[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
foreach Y in -5,0,5
beginscope[shift=([yshift=-9ex,xshift=Y em]frame.north)]
path[fill=gray!50]
(0.5, 1.8) .. controls (0.5, 1.58) and (0.2, 1.25) .. (0, 1.16) .. controls (-0.2, 1.25) and (-0.5, 1.58) .. (-0.5, 1.8) .. controls (-0.34, 2.3) and (0.34, 2.3) .. (0.5, 1.8) -- cycle;
path[fill=gray!50!black] (0, 1.248) circle (0.09);
foreach X in 10,20,33%
fill[gray!50!black] (0,1.2) + (X:0.08) to[out=X,in=180-X] ++(X-20:0.3) --++(0,0.01) to[out=180-X,in=X] cycle (0,1.2) + (180-X:0.08) to[out=180-X,in=X] ++(200-X:0.3) --++(0,0.01) to[out=X,in=180-X] cycle;

endscope

clip (frame.north west) -- (frame.north east) -- ++(0,+10ex) --
++(-linewidth,0) -- cycle;
foreach Y in -5,0,5
mouse[shift=([yshift=-9ex,xshift=Y em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
foreach X in -5,0,5

mouse[shift=([yshift=-4ex,xshift=X em]frame.south)]
endscope


begindocument
beginmousebox
We love cheese!
endmousebox
beginmousebox
blindtext
endmousebox
enddocument


enter image description here






share|improve this answer















Oh no! No marmot on the second box! This has to be rectified! (As mentioned by @samcarter, the marmot got clipped away. But one can shift her or him back to visible region.)



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



Some other tikzlings joined the party.



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[shift=([yshift=-7ex]frame.north),whiskers,teeth]
koala[shift=([yshift=-7ex,xshift=-5em]frame.north)]
mouse[shift=([yshift=-7ex,xshift=5em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
marmot[shift=([yshift=-4ex]frame.south),whiskers,teeth]
koala[shift=([yshift=-4ex,xshift=-5em]frame.south)]
mouse[shift=([yshift=-4ex,xshift=5em]frame.south)]
endscope


begindocument
beginmybox
We love TiemphkZlings!
endmybox
beginmybox
blindtext
endmybox
enddocument


enter image description here



And a cheesebox tends to attract mice.



documentclassbook
usepackagetikzlings
usepackagemwe

usepackage[most]tcolorbox

newtcolorboxmousebox[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
foreach Y in -5,0,5
beginscope[shift=([yshift=-9ex,xshift=Y em]frame.north)]
path[fill=gray!50]
(0.5, 1.8) .. controls (0.5, 1.58) and (0.2, 1.25) .. (0, 1.16) .. controls (-0.2, 1.25) and (-0.5, 1.58) .. (-0.5, 1.8) .. controls (-0.34, 2.3) and (0.34, 2.3) .. (0.5, 1.8) -- cycle;
path[fill=gray!50!black] (0, 1.248) circle (0.09);
foreach X in 10,20,33%
fill[gray!50!black] (0,1.2) + (X:0.08) to[out=X,in=180-X] ++(X-20:0.3) --++(0,0.01) to[out=180-X,in=X] cycle (0,1.2) + (180-X:0.08) to[out=180-X,in=X] ++(200-X:0.3) --++(0,0.01) to[out=X,in=180-X] cycle;

endscope

clip (frame.north west) -- (frame.north east) -- ++(0,+10ex) --
++(-linewidth,0) -- cycle;
foreach Y in -5,0,5
mouse[shift=([yshift=-9ex,xshift=Y em]frame.north)]
endscope
beginscope
clip (frame.south west) -- (frame.south east) -- ++(0,-10ex) --
++(-linewidth,0) -- cycle;
foreach X in -5,0,5

mouse[shift=([yshift=-4ex,xshift=X em]frame.south)]
endscope


begindocument
beginmousebox
We love cheese!
endmousebox
beginmousebox
blindtext
endmousebox
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 1 hour ago









marmotmarmot

109k5133251




109k5133251












  • Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

    – Ulrike Fischer
    1 hour ago











  • @UlrikeFischer What about the koala and the mouse?

    – marmot
    1 hour ago






  • 2





    You should shuffle the bottom parts.

    – Ulrike Fischer
    1 hour ago







  • 1





    +1: Can you explain what the mistake from the OP was?

    – Dr. Manuel Kuehner
    1 hour ago






  • 1





    @Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

    – marmot
    1 hour ago

















  • Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

    – Ulrike Fischer
    1 hour ago











  • @UlrikeFischer What about the koala and the mouse?

    – marmot
    1 hour ago






  • 2





    You should shuffle the bottom parts.

    – Ulrike Fischer
    1 hour ago







  • 1





    +1: Can you explain what the mistake from the OP was?

    – Dr. Manuel Kuehner
    1 hour ago






  • 1





    @Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

    – marmot
    1 hour ago
















Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

– Ulrike Fischer
1 hour ago





Hm. Are there four marmots standing of each other? Or is this some sort of magical sawing trick?

– Ulrike Fischer
1 hour ago













@UlrikeFischer What about the koala and the mouse?

– marmot
1 hour ago





@UlrikeFischer What about the koala and the mouse?

– marmot
1 hour ago




2




2





You should shuffle the bottom parts.

– Ulrike Fischer
1 hour ago






You should shuffle the bottom parts.

– Ulrike Fischer
1 hour ago





1




1





+1: Can you explain what the mistake from the OP was?

– Dr. Manuel Kuehner
1 hour ago





+1: Can you explain what the mistake from the OP was?

– Dr. Manuel Kuehner
1 hour ago




1




1





@Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

– marmot
1 hour ago





@Dr.ManuelKuehner She forgot whiskers and teeth. ;-)

– marmot
1 hour ago

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479831%2fwhy-does-overlay-work-only-on-the-first-tcolorbox%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Which organization defines CJK Unified Ideographs? The Next CEO of Stack OverflowCharacters which have several different shapesHow useful are the kanji in reading Chinese?Can Chinese readers scan large amounts of text faster/more accurately than their alphabet-using counterparts?丼: why is “well” also “bowl of food”?What Does Unicode 8.0 Mean For Chinese?How are blanks indicated for placeholders in Chinese (like ???)Is there a dictionary of standard character variants?How to display CJK Extension F?How is it decided as to which character is used on the tech terminology?How does 子 come to mean 'midnight'?

Shenzhen Football Club Índice Elenco atual | Títulos | Referências Ligações externas | Menu de navegaçãoGooglenotíciaslivrosacadêmicoeditar«"Elenco"»Site oficialexpandindo-oeee

When We Were Young (canção de Adele) Índice Antecedentes e lançamento | Faixas e formatos | Performances e covers | Desempenho nas tabelas musicais | Créditos | Histórico de lançamento | Referências Menu de navegação«Best albums of 2015»«Adele - When We Were Young (Radio Date: 22-01-2016)»«When We Were Young - Single by Adele»«Adele: Inside Her Private Life and Triumphant Return»«adele interview: world exclusive first interview in three years»«Tobias Jesso Jr: since Adele tweeted his song, he's even bigger than his dad»«Adele interviews Tobias Jesso Jr: 'I think that a couple of the ideas we had could be rap songs'»«Adele on Her Return: 'I Was So Frightened That No One Cared'»«Tobias Jesso Jr. on working with Adele: 'I was as nervous as shit'»«How Ariel Rechtshaid Pushed Adele To Her Limit»«Adele Previews 'When We Were Young' on '60 Minutes' Teaser, Tops Trending 140»«Adele Performs New '25' Ballad, "When We Were Young" Live: Watch»«Which '25' Song Should Be Adele's Next Single?»«Adele's 'When We Were Young' Confirmed As Second Single From '25'»«Adele's new single artwork for 'When We Were Young' is perfectly adorable»«Adele at the BBC review: honest, funny and spectacular – Celebrity News News»«'Saturday Night Live': Adele Sings 'Hello' and 'When We Were Young'»«'Adele: Live in New York City' NBC Special – Set List Revealed!»«Adele Closes Out the 2016 Brit Awards With 'When We Were Young'»«What Is The Adele Live Tour Set List? There's No Way She'd Leave Out These 8 Songs»«See Demi Lovato's Soaring Cover of Adele's 'When We Were Young'»«'The Voice': 5 Best Moments From Week 1 Blind Auditions»«Adele – When We Were Young (Media Control Charts)»«Adele – When We Were Young (Entertainment Monitoring Africa)»«Adele – When We Were Young (ARIA Charts)»«Adele – When We Were Young (Ö3 Austria Top 40)»«Adele – When We Were Young (Ultratop 50)»«Adele – When We Were Young (Ultratop 40)»«Adele – When We Were Young (Canadian Hot 100)»«Adele – When We Were Young (Tracklisten)»«Adele – When We Were Young (The Official Charts Company)»«Adele – Hello (IFPI Slovenská Republika)»«Adele – When We Were Young (Productores de Música de España)»«Adele – When We Were Young (Billboard Hot 100)»«Adele – When We Were Young (Pop Songs)»«Adele – When We Were Young (Adult Pop Songs)»«Adele – When We Were Young (Hot Adult Contemporary Charts)»«Adele – When We Were Young (Hot Dance Club Songs)»«Adele – When We Were Young (Rock Airplay)»«Adele – When We Were Young (IFPI Finlândia)»«Adele – When We Were Young (Syndicat National de l'Éditon Phonographique)»«Adele – When We Were Young (Magyar Hanglemezkiadók Szövetsége)»«Adele – When We Were Young (Irish Recorded Music Association)»«Adele – When We Were Young (Mexico Airplay)»«Adele – When We Were Young (VG-lista)»«Adele – When We Were Young (NZ Top 40 Singles)»«Adele – When We Were Young (MegaCharts)»«Adele – When We Were Young (Związek Producentów Audio Video)»«Adele – When We Were Young (Portugal Digital Songs)»«Adele – When We Were Young (UK Indie Singles Chart)»«Adele – When We Were Young (UK Singles Chart)»«Adele – When We Were Young (Sverigetopplistan)»«Adele – When We Were Young (Schweizer Hitparade)»«Adele – When We Were Young (Portugal Digital Songs)»«Music Canada – Gold/Platinum – When We Were Young»«NZ Top 40 Singles Chart»«Certified Awards»e