A butterfly-shaped text box











up vote
0
down vote

favorite












I'm working with beamer and I would like to create a fly-shaped colored text box like in the cover of the tcolorbox manual.



The first page of the manual actually features the code for that cover page but I don't seem to be able to get it to work.



I would like to have a slide fully occupied by the insect-shaped 4-boxes figure, in which boxes I would like to be able to write.



Bonus I would like the 4 text boxes to have this color settings




colback=myred!5!white,colframe=myred!75!black




and the body and antennas to be colored of the same myred color




definecolor{myred}{RGB}{87,24,32}











share|improve this question
























  • can you provide your code? What error(s) are you getting?
    – FLonLon
    Nov 21 at 16:23










  • It's an error with the beamer environment, I guess. It stops and the end{frame} command. Even if I write a MWE with just a plain slide and that code in it (that basically is want I want) it won't compile.
    – lucia de finetti
    Nov 21 at 16:24












  • Probabily it's necessary to strip all the part about the background etc. but I just can't understand how...
    – lucia de finetti
    Nov 21 at 16:26










  • can you provide the MWE?
    – FLonLon
    Nov 21 at 16:27















up vote
0
down vote

favorite












I'm working with beamer and I would like to create a fly-shaped colored text box like in the cover of the tcolorbox manual.



The first page of the manual actually features the code for that cover page but I don't seem to be able to get it to work.



I would like to have a slide fully occupied by the insect-shaped 4-boxes figure, in which boxes I would like to be able to write.



Bonus I would like the 4 text boxes to have this color settings




colback=myred!5!white,colframe=myred!75!black




and the body and antennas to be colored of the same myred color




definecolor{myred}{RGB}{87,24,32}











share|improve this question
























  • can you provide your code? What error(s) are you getting?
    – FLonLon
    Nov 21 at 16:23










  • It's an error with the beamer environment, I guess. It stops and the end{frame} command. Even if I write a MWE with just a plain slide and that code in it (that basically is want I want) it won't compile.
    – lucia de finetti
    Nov 21 at 16:24












  • Probabily it's necessary to strip all the part about the background etc. but I just can't understand how...
    – lucia de finetti
    Nov 21 at 16:26










  • can you provide the MWE?
    – FLonLon
    Nov 21 at 16:27













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm working with beamer and I would like to create a fly-shaped colored text box like in the cover of the tcolorbox manual.



The first page of the manual actually features the code for that cover page but I don't seem to be able to get it to work.



I would like to have a slide fully occupied by the insect-shaped 4-boxes figure, in which boxes I would like to be able to write.



Bonus I would like the 4 text boxes to have this color settings




colback=myred!5!white,colframe=myred!75!black




and the body and antennas to be colored of the same myred color




definecolor{myred}{RGB}{87,24,32}











share|improve this question















I'm working with beamer and I would like to create a fly-shaped colored text box like in the cover of the tcolorbox manual.



The first page of the manual actually features the code for that cover page but I don't seem to be able to get it to work.



I would like to have a slide fully occupied by the insect-shaped 4-boxes figure, in which boxes I would like to be able to write.



Bonus I would like the 4 text boxes to have this color settings




colback=myred!5!white,colframe=myred!75!black




and the body and antennas to be colored of the same myred color




definecolor{myred}{RGB}{87,24,32}








beamer tcolorbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 16:37









samcarter

82.6k794264




82.6k794264










asked Nov 21 at 16:10









lucia de finetti

645




645












  • can you provide your code? What error(s) are you getting?
    – FLonLon
    Nov 21 at 16:23










  • It's an error with the beamer environment, I guess. It stops and the end{frame} command. Even if I write a MWE with just a plain slide and that code in it (that basically is want I want) it won't compile.
    – lucia de finetti
    Nov 21 at 16:24












  • Probabily it's necessary to strip all the part about the background etc. but I just can't understand how...
    – lucia de finetti
    Nov 21 at 16:26










  • can you provide the MWE?
    – FLonLon
    Nov 21 at 16:27


















  • can you provide your code? What error(s) are you getting?
    – FLonLon
    Nov 21 at 16:23










  • It's an error with the beamer environment, I guess. It stops and the end{frame} command. Even if I write a MWE with just a plain slide and that code in it (that basically is want I want) it won't compile.
    – lucia de finetti
    Nov 21 at 16:24












  • Probabily it's necessary to strip all the part about the background etc. but I just can't understand how...
    – lucia de finetti
    Nov 21 at 16:26










  • can you provide the MWE?
    – FLonLon
    Nov 21 at 16:27
















can you provide your code? What error(s) are you getting?
– FLonLon
Nov 21 at 16:23




can you provide your code? What error(s) are you getting?
– FLonLon
Nov 21 at 16:23












It's an error with the beamer environment, I guess. It stops and the end{frame} command. Even if I write a MWE with just a plain slide and that code in it (that basically is want I want) it won't compile.
– lucia de finetti
Nov 21 at 16:24






It's an error with the beamer environment, I guess. It stops and the end{frame} command. Even if I write a MWE with just a plain slide and that code in it (that basically is want I want) it won't compile.
– lucia de finetti
Nov 21 at 16:24














Probabily it's necessary to strip all the part about the background etc. but I just can't understand how...
– lucia de finetti
Nov 21 at 16:26




Probabily it's necessary to strip all the part about the background etc. but I just can't understand how...
– lucia de finetti
Nov 21 at 16:26












can you provide the MWE?
– FLonLon
Nov 21 at 16:27




can you provide the MWE?
– FLonLon
Nov 21 at 16:27










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










documentclass[xcolor={svgnames}]{beamer}

usepackage{lipsum}
usepackage{tcolorbox}

tcbuselibrary{most,documentation}
definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471}
definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706}
definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098}




begin{document}

begin{frame}

begin{tikzpicture}[overlay, remember picture, transform canvas={scale=0.6, xshift=6cm,yshift=-1cm}]
definecolorseries{boxcol}{rgb}{last}{blue}{red}
resetcolorseries[28]{boxcol}
coordinate (A) at (0,0); coordinate (B) at (current page.center);
path[use as bounding box] (A) rectangle coordinate (C) (B);
node at (C) {%
begin{tcbitemize}[title=tcolorbox xx,fonttitle=smallbfseries,
enhanced jigsaw,opacityback=0.5,opacitybacktitle=0.75,
halign=center,valign=center,arc=5mm,
raster width=16cm,raster column skip=8mm,raster halign=center,
raster force size=false,
raster row 1/.style={height=6cm},
raster row 2/.style={width=6cm,height=4cm},
raster column 1/.style={flushright title,
frame style={left color=yellow!50!black,right color=green!50!black},
title style={left color=yellow!50!blue,right color=blue!50!green!50!black},
interior style={left color=yellow!70,right color=green!70},
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,-0.15)}]frame.north east)
--([shift={(0.4,0.15)}]frame.south east); }},
raster column 2/.style={
frame style={left color=green!50!black,right color=yellow!50!black},
title style={left color=blue!50!green!50!black,right color=yellow!50!blue},
interior style={left color=green!70,right color=yellow!70}}]
tcbitem[fontupper=Hugebfseries,sharp corners=east,
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,0.30)}]frame.north east)-- coordinate(A) +(0,0.2);
draw[line width=1mm,line cap=round,black!60](A) -- +(30:1.5cm);
draw[line width=1mm,line cap=round,black!60](A) -- +(150:1.5cm);}]
tcolorbox
tcbitem[fontupper=largebfseries,sharp corners=west]
Manual for\ version\ xx\(xx)
tcbitem[sharp corners=northeast]
tcbitem[sharp corners=northwest] Thomas F.~Sturm
end{tcbitemize}%
};
end{tikzpicture}

end{frame}

end{document}


enter image description here






share|improve this answer





















  • Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
    – lucia de finetti
    Nov 21 at 16:35








  • 1




    @luciadefinetti search for yellow and green in the code and change them
    – samcarter
    Nov 21 at 16:36










  • will do thank you :)
    – lucia de finetti
    Nov 21 at 16:39













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',
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%2f461148%2fa-butterfly-shaped-text-box%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








up vote
4
down vote



accepted










documentclass[xcolor={svgnames}]{beamer}

usepackage{lipsum}
usepackage{tcolorbox}

tcbuselibrary{most,documentation}
definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471}
definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706}
definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098}




begin{document}

begin{frame}

begin{tikzpicture}[overlay, remember picture, transform canvas={scale=0.6, xshift=6cm,yshift=-1cm}]
definecolorseries{boxcol}{rgb}{last}{blue}{red}
resetcolorseries[28]{boxcol}
coordinate (A) at (0,0); coordinate (B) at (current page.center);
path[use as bounding box] (A) rectangle coordinate (C) (B);
node at (C) {%
begin{tcbitemize}[title=tcolorbox xx,fonttitle=smallbfseries,
enhanced jigsaw,opacityback=0.5,opacitybacktitle=0.75,
halign=center,valign=center,arc=5mm,
raster width=16cm,raster column skip=8mm,raster halign=center,
raster force size=false,
raster row 1/.style={height=6cm},
raster row 2/.style={width=6cm,height=4cm},
raster column 1/.style={flushright title,
frame style={left color=yellow!50!black,right color=green!50!black},
title style={left color=yellow!50!blue,right color=blue!50!green!50!black},
interior style={left color=yellow!70,right color=green!70},
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,-0.15)}]frame.north east)
--([shift={(0.4,0.15)}]frame.south east); }},
raster column 2/.style={
frame style={left color=green!50!black,right color=yellow!50!black},
title style={left color=blue!50!green!50!black,right color=yellow!50!blue},
interior style={left color=green!70,right color=yellow!70}}]
tcbitem[fontupper=Hugebfseries,sharp corners=east,
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,0.30)}]frame.north east)-- coordinate(A) +(0,0.2);
draw[line width=1mm,line cap=round,black!60](A) -- +(30:1.5cm);
draw[line width=1mm,line cap=round,black!60](A) -- +(150:1.5cm);}]
tcolorbox
tcbitem[fontupper=largebfseries,sharp corners=west]
Manual for\ version\ xx\(xx)
tcbitem[sharp corners=northeast]
tcbitem[sharp corners=northwest] Thomas F.~Sturm
end{tcbitemize}%
};
end{tikzpicture}

end{frame}

end{document}


enter image description here






share|improve this answer





















  • Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
    – lucia de finetti
    Nov 21 at 16:35








  • 1




    @luciadefinetti search for yellow and green in the code and change them
    – samcarter
    Nov 21 at 16:36










  • will do thank you :)
    – lucia de finetti
    Nov 21 at 16:39

















up vote
4
down vote



accepted










documentclass[xcolor={svgnames}]{beamer}

usepackage{lipsum}
usepackage{tcolorbox}

tcbuselibrary{most,documentation}
definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471}
definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706}
definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098}




begin{document}

begin{frame}

begin{tikzpicture}[overlay, remember picture, transform canvas={scale=0.6, xshift=6cm,yshift=-1cm}]
definecolorseries{boxcol}{rgb}{last}{blue}{red}
resetcolorseries[28]{boxcol}
coordinate (A) at (0,0); coordinate (B) at (current page.center);
path[use as bounding box] (A) rectangle coordinate (C) (B);
node at (C) {%
begin{tcbitemize}[title=tcolorbox xx,fonttitle=smallbfseries,
enhanced jigsaw,opacityback=0.5,opacitybacktitle=0.75,
halign=center,valign=center,arc=5mm,
raster width=16cm,raster column skip=8mm,raster halign=center,
raster force size=false,
raster row 1/.style={height=6cm},
raster row 2/.style={width=6cm,height=4cm},
raster column 1/.style={flushright title,
frame style={left color=yellow!50!black,right color=green!50!black},
title style={left color=yellow!50!blue,right color=blue!50!green!50!black},
interior style={left color=yellow!70,right color=green!70},
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,-0.15)}]frame.north east)
--([shift={(0.4,0.15)}]frame.south east); }},
raster column 2/.style={
frame style={left color=green!50!black,right color=yellow!50!black},
title style={left color=blue!50!green!50!black,right color=yellow!50!blue},
interior style={left color=green!70,right color=yellow!70}}]
tcbitem[fontupper=Hugebfseries,sharp corners=east,
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,0.30)}]frame.north east)-- coordinate(A) +(0,0.2);
draw[line width=1mm,line cap=round,black!60](A) -- +(30:1.5cm);
draw[line width=1mm,line cap=round,black!60](A) -- +(150:1.5cm);}]
tcolorbox
tcbitem[fontupper=largebfseries,sharp corners=west]
Manual for\ version\ xx\(xx)
tcbitem[sharp corners=northeast]
tcbitem[sharp corners=northwest] Thomas F.~Sturm
end{tcbitemize}%
};
end{tikzpicture}

end{frame}

end{document}


enter image description here






share|improve this answer





















  • Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
    – lucia de finetti
    Nov 21 at 16:35








  • 1




    @luciadefinetti search for yellow and green in the code and change them
    – samcarter
    Nov 21 at 16:36










  • will do thank you :)
    – lucia de finetti
    Nov 21 at 16:39















up vote
4
down vote



accepted







up vote
4
down vote



accepted






documentclass[xcolor={svgnames}]{beamer}

usepackage{lipsum}
usepackage{tcolorbox}

tcbuselibrary{most,documentation}
definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471}
definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706}
definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098}




begin{document}

begin{frame}

begin{tikzpicture}[overlay, remember picture, transform canvas={scale=0.6, xshift=6cm,yshift=-1cm}]
definecolorseries{boxcol}{rgb}{last}{blue}{red}
resetcolorseries[28]{boxcol}
coordinate (A) at (0,0); coordinate (B) at (current page.center);
path[use as bounding box] (A) rectangle coordinate (C) (B);
node at (C) {%
begin{tcbitemize}[title=tcolorbox xx,fonttitle=smallbfseries,
enhanced jigsaw,opacityback=0.5,opacitybacktitle=0.75,
halign=center,valign=center,arc=5mm,
raster width=16cm,raster column skip=8mm,raster halign=center,
raster force size=false,
raster row 1/.style={height=6cm},
raster row 2/.style={width=6cm,height=4cm},
raster column 1/.style={flushright title,
frame style={left color=yellow!50!black,right color=green!50!black},
title style={left color=yellow!50!blue,right color=blue!50!green!50!black},
interior style={left color=yellow!70,right color=green!70},
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,-0.15)}]frame.north east)
--([shift={(0.4,0.15)}]frame.south east); }},
raster column 2/.style={
frame style={left color=green!50!black,right color=yellow!50!black},
title style={left color=blue!50!green!50!black,right color=yellow!50!blue},
interior style={left color=green!70,right color=yellow!70}}]
tcbitem[fontupper=Hugebfseries,sharp corners=east,
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,0.30)}]frame.north east)-- coordinate(A) +(0,0.2);
draw[line width=1mm,line cap=round,black!60](A) -- +(30:1.5cm);
draw[line width=1mm,line cap=round,black!60](A) -- +(150:1.5cm);}]
tcolorbox
tcbitem[fontupper=largebfseries,sharp corners=west]
Manual for\ version\ xx\(xx)
tcbitem[sharp corners=northeast]
tcbitem[sharp corners=northwest] Thomas F.~Sturm
end{tcbitemize}%
};
end{tikzpicture}

end{frame}

end{document}


enter image description here






share|improve this answer












documentclass[xcolor={svgnames}]{beamer}

usepackage{lipsum}
usepackage{tcolorbox}

tcbuselibrary{most,documentation}
definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471}
definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706}
definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098}




begin{document}

begin{frame}

begin{tikzpicture}[overlay, remember picture, transform canvas={scale=0.6, xshift=6cm,yshift=-1cm}]
definecolorseries{boxcol}{rgb}{last}{blue}{red}
resetcolorseries[28]{boxcol}
coordinate (A) at (0,0); coordinate (B) at (current page.center);
path[use as bounding box] (A) rectangle coordinate (C) (B);
node at (C) {%
begin{tcbitemize}[title=tcolorbox xx,fonttitle=smallbfseries,
enhanced jigsaw,opacityback=0.5,opacitybacktitle=0.75,
halign=center,valign=center,arc=5mm,
raster width=16cm,raster column skip=8mm,raster halign=center,
raster force size=false,
raster row 1/.style={height=6cm},
raster row 2/.style={width=6cm,height=4cm},
raster column 1/.style={flushright title,
frame style={left color=yellow!50!black,right color=green!50!black},
title style={left color=yellow!50!blue,right color=blue!50!green!50!black},
interior style={left color=yellow!70,right color=green!70},
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,-0.15)}]frame.north east)
--([shift={(0.4,0.15)}]frame.south east); }},
raster column 2/.style={
frame style={left color=green!50!black,right color=yellow!50!black},
title style={left color=blue!50!green!50!black,right color=yellow!50!blue},
interior style={left color=green!70,right color=yellow!70}}]
tcbitem[fontupper=Hugebfseries,sharp corners=east,
underlay={draw[line width=6mm,line cap=round,black!60]
([shift={(0.4,0.30)}]frame.north east)-- coordinate(A) +(0,0.2);
draw[line width=1mm,line cap=round,black!60](A) -- +(30:1.5cm);
draw[line width=1mm,line cap=round,black!60](A) -- +(150:1.5cm);}]
tcolorbox
tcbitem[fontupper=largebfseries,sharp corners=west]
Manual for\ version\ xx\(xx)
tcbitem[sharp corners=northeast]
tcbitem[sharp corners=northwest] Thomas F.~Sturm
end{tcbitemize}%
};
end{tikzpicture}

end{frame}

end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 at 16:33









samcarter

82.6k794264




82.6k794264












  • Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
    – lucia de finetti
    Nov 21 at 16:35








  • 1




    @luciadefinetti search for yellow and green in the code and change them
    – samcarter
    Nov 21 at 16:36










  • will do thank you :)
    – lucia de finetti
    Nov 21 at 16:39




















  • Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
    – lucia de finetti
    Nov 21 at 16:35








  • 1




    @luciadefinetti search for yellow and green in the code and change them
    – samcarter
    Nov 21 at 16:36










  • will do thank you :)
    – lucia de finetti
    Nov 21 at 16:39


















Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
– lucia de finetti
Nov 21 at 16:35






Fantastic! Thank you very much :) Any chance that can be edited to be in "myred" palette?
– lucia de finetti
Nov 21 at 16:35






1




1




@luciadefinetti search for yellow and green in the code and change them
– samcarter
Nov 21 at 16:36




@luciadefinetti search for yellow and green in the code and change them
– samcarter
Nov 21 at 16:36












will do thank you :)
– lucia de finetti
Nov 21 at 16:39






will do thank you :)
– lucia de finetti
Nov 21 at 16:39




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461148%2fa-butterfly-shaped-text-box%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

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?