How to add double frame in tcolorbox?how to draw a bicolor tcolorbox without frame?How to add space around tcolorbox theoremPackage `tcolorbox` within `titlesec`tcolorbox: remove frame of single tcb itemtcolorbox with bicolor, but only right frame outlinedHow to produce a partial double frame using tcolorbox?Note frame with tcolorbox packageSubsection in frame with tcolorbox packageHow to add label for referencing in this example tcolorboxBullet corner frame using tcolorbox

Mistake in years of experience in resume?

All ASCII characters with a given bit count

Can I criticise the more senior developers around me for not writing clean code?

Retract an already submitted recommendation letter (written for an undergrad student)

Read line from file and process something

Function pointer with named arguments?

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

'regex' and 'name' directives in find

Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?

What is meant by "Prämie" in this letter? Do I have to pay it or it is just a reminder?

On The Origin of Dissonant Chords

can anyone help me with this awful query plan?

Cyclomatic Complexity reduction JS

What term is being referred to with "reflected-sound-of-underground-spirits"?

Is there really no use for MD5 anymore?

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

How can I print the prosodic symbols in LaTeX?

'It addicted me, with one taste.' Can 'addict' be used transitively?

Was there a shared-world project before "Thieves World"?

Why do games have consumables?

How do I reattach a shelf to the wall when it ripped out of the wall?

Why must Chinese maps be obfuscated?

How to pronounce 'c++' in Spanish

How to not starve gigantic beasts



How to add double frame in tcolorbox?


how to draw a bicolor tcolorbox without frame?How to add space around tcolorbox theoremPackage `tcolorbox` within `titlesec`tcolorbox: remove frame of single tcb itemtcolorbox with bicolor, but only right frame outlinedHow to produce a partial double frame using tcolorbox?Note frame with tcolorbox packageSubsection in frame with tcolorbox packageHow to add label for referencing in this example tcolorboxBullet corner frame using tcolorbox













5















Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page colour ) and the outer border colour will be cyan ( same as the box background colour) something like this.



enter image description here



This is the code which I was trying :



usepackage[explicit]titlesec
usepackage[many]tcolorbox
definecolormyCyanHTML13C39D
titleformatchapter[display]
sffamilybfseriesHugefilcenter

0pt
%
begintcolorbox[
enhanced,
colback = myCyan,
fontupper=colorwhite,
boxrule=0pt,
colframe=black!70!white,
arc=0pt,
outer arc=0pt,
top=20pt,
bottom=20pt,
left=20pt,
right=20pt,
]
begincenter
#1
endcenter
endtcolorbox%


titlespacing*chapter0pt0cm0cm









share|improve this question
























  • So all of your chapters are not numbered?

    – JouleV
    Apr 6 at 13:39











  • Yes, numbered. the image which i have provide is just for the demo purpose. Number will be at the begging of the chapter like this : 1. Android Tutorial

    – Ravi
    Apr 6 at 13:43















5















Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page colour ) and the outer border colour will be cyan ( same as the box background colour) something like this.



enter image description here



This is the code which I was trying :



usepackage[explicit]titlesec
usepackage[many]tcolorbox
definecolormyCyanHTML13C39D
titleformatchapter[display]
sffamilybfseriesHugefilcenter

0pt
%
begintcolorbox[
enhanced,
colback = myCyan,
fontupper=colorwhite,
boxrule=0pt,
colframe=black!70!white,
arc=0pt,
outer arc=0pt,
top=20pt,
bottom=20pt,
left=20pt,
right=20pt,
]
begincenter
#1
endcenter
endtcolorbox%


titlespacing*chapter0pt0cm0cm









share|improve this question
























  • So all of your chapters are not numbered?

    – JouleV
    Apr 6 at 13:39











  • Yes, numbered. the image which i have provide is just for the demo purpose. Number will be at the begging of the chapter like this : 1. Android Tutorial

    – Ravi
    Apr 6 at 13:43













5












5








5


0






Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page colour ) and the outer border colour will be cyan ( same as the box background colour) something like this.



enter image description here



This is the code which I was trying :



usepackage[explicit]titlesec
usepackage[many]tcolorbox
definecolormyCyanHTML13C39D
titleformatchapter[display]
sffamilybfseriesHugefilcenter

0pt
%
begintcolorbox[
enhanced,
colback = myCyan,
fontupper=colorwhite,
boxrule=0pt,
colframe=black!70!white,
arc=0pt,
outer arc=0pt,
top=20pt,
bottom=20pt,
left=20pt,
right=20pt,
]
begincenter
#1
endcenter
endtcolorbox%


titlespacing*chapter0pt0cm0cm









share|improve this question
















Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page colour ) and the outer border colour will be cyan ( same as the box background colour) something like this.



enter image description here



This is the code which I was trying :



usepackage[explicit]titlesec
usepackage[many]tcolorbox
definecolormyCyanHTML13C39D
titleformatchapter[display]
sffamilybfseriesHugefilcenter

0pt
%
begintcolorbox[
enhanced,
colback = myCyan,
fontupper=colorwhite,
boxrule=0pt,
colframe=black!70!white,
arc=0pt,
outer arc=0pt,
top=20pt,
bottom=20pt,
left=20pt,
right=20pt,
]
begincenter
#1
endcenter
endtcolorbox%


titlespacing*chapter0pt0cm0cm






chapters tcolorbox titlesec






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 6 at 13:35







Ravi

















asked Apr 6 at 13:29









RaviRavi

34619




34619












  • So all of your chapters are not numbered?

    – JouleV
    Apr 6 at 13:39











  • Yes, numbered. the image which i have provide is just for the demo purpose. Number will be at the begging of the chapter like this : 1. Android Tutorial

    – Ravi
    Apr 6 at 13:43

















  • So all of your chapters are not numbered?

    – JouleV
    Apr 6 at 13:39











  • Yes, numbered. the image which i have provide is just for the demo purpose. Number will be at the begging of the chapter like this : 1. Android Tutorial

    – Ravi
    Apr 6 at 13:43
















So all of your chapters are not numbered?

– JouleV
Apr 6 at 13:39





So all of your chapters are not numbered?

– JouleV
Apr 6 at 13:39













Yes, numbered. the image which i have provide is just for the demo purpose. Number will be at the begging of the chapter like this : 1. Android Tutorial

– Ravi
Apr 6 at 13:43





Yes, numbered. the image which i have provide is just for the demo purpose. Number will be at the begging of the chapter like this : 1. Android Tutorial

– Ravi
Apr 6 at 13:43










2 Answers
2






active

oldest

votes


















6














This may be a start. The idea is to nest tcolorboxes.



documentclassarticle
usepackagetcolorbox
begindocument
begintcolorbox[
colback=green!50!blue,
colframe=green!50!blue,
left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
sharp corners,
boxsep=0pt
]
begintcolorbox[
colback=green!50!blue,
colframe=white,
leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
sharp corners,
fontupper=colorwhitesffamilybfseriesLargecentering
]
Android tutorial
endtcolorbox%
endtcolorbox
enddocument


enter image description here



Now let's customize our chapter with it.



documentclassbook
usepackage[explicit]titlesec
usepackage[many]tcolorbox
definecolormyCyanHTML13C39D
titleformatchapter[display]
sffamilybfseriesHugefilcenter

0pt
%
begintcolorbox[
colback=myCyan,
colframe=myCyan,
left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
sharp corners,
boxsep=0pt
]
begintcolorbox[
colback=myCyan,
colframe=white,
leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
sharp corners,
fontupper=colorwhitesffamilybfseriesHugecentering
]
thechapter. #1
endtcolorbox%
endtcolorbox%


titlespacing*chapter0pt0cm0cm
usepackagelipsum
begindocument
chapterLorem lipsum

lipsum[1]
enddocument


enter image description here






share|improve this answer
































    5














    There's no need for nested tcolorboxes, you could use an enhanced box with an additional borderline:



    documentclassbook
    usepackage[explicit]titlesec
    usepackage[many]tcolorbox
    definecolormyCyanHTML13C39D
    titleformatchapter[display]
    sffamilybfseriesHugefilcenter

    0pt
    %
    begintcolorbox[
    enhanced,
    colback=myCyan,
    colframe=myCyan,
    boxsep=5pt,
    sharp corners,
    borderline=1.5pt3ptwhite,
    colupper=white,
    fontupper=sffamilybfseriesHuge,
    halign upper=center
    ]
    thechapter. #1
    endtcolorbox%


    titlespacing*chapter0pt0cm0cm
    usepackagelipsum
    begindocument
    chapterLorem lipsum

    lipsum[1]
    enddocument


    enter image description here






    share|improve this answer























    • Thanks sir, I really appreciate it.

      – Ravi
      Apr 8 at 7:53











    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%2f483519%2fhow-to-add-double-frame-in-tcolorbox%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    This may be a start. The idea is to nest tcolorboxes.



    documentclassarticle
    usepackagetcolorbox
    begindocument
    begintcolorbox[
    colback=green!50!blue,
    colframe=green!50!blue,
    left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
    sharp corners,
    boxsep=0pt
    ]
    begintcolorbox[
    colback=green!50!blue,
    colframe=white,
    leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
    sharp corners,
    fontupper=colorwhitesffamilybfseriesLargecentering
    ]
    Android tutorial
    endtcolorbox%
    endtcolorbox
    enddocument


    enter image description here



    Now let's customize our chapter with it.



    documentclassbook
    usepackage[explicit]titlesec
    usepackage[many]tcolorbox
    definecolormyCyanHTML13C39D
    titleformatchapter[display]
    sffamilybfseriesHugefilcenter

    0pt
    %
    begintcolorbox[
    colback=myCyan,
    colframe=myCyan,
    left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
    sharp corners,
    boxsep=0pt
    ]
    begintcolorbox[
    colback=myCyan,
    colframe=white,
    leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
    sharp corners,
    fontupper=colorwhitesffamilybfseriesHugecentering
    ]
    thechapter. #1
    endtcolorbox%
    endtcolorbox%


    titlespacing*chapter0pt0cm0cm
    usepackagelipsum
    begindocument
    chapterLorem lipsum

    lipsum[1]
    enddocument


    enter image description here






    share|improve this answer





























      6














      This may be a start. The idea is to nest tcolorboxes.



      documentclassarticle
      usepackagetcolorbox
      begindocument
      begintcolorbox[
      colback=green!50!blue,
      colframe=green!50!blue,
      left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
      sharp corners,
      boxsep=0pt
      ]
      begintcolorbox[
      colback=green!50!blue,
      colframe=white,
      leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
      sharp corners,
      fontupper=colorwhitesffamilybfseriesLargecentering
      ]
      Android tutorial
      endtcolorbox%
      endtcolorbox
      enddocument


      enter image description here



      Now let's customize our chapter with it.



      documentclassbook
      usepackage[explicit]titlesec
      usepackage[many]tcolorbox
      definecolormyCyanHTML13C39D
      titleformatchapter[display]
      sffamilybfseriesHugefilcenter

      0pt
      %
      begintcolorbox[
      colback=myCyan,
      colframe=myCyan,
      left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
      sharp corners,
      boxsep=0pt
      ]
      begintcolorbox[
      colback=myCyan,
      colframe=white,
      leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
      sharp corners,
      fontupper=colorwhitesffamilybfseriesHugecentering
      ]
      thechapter. #1
      endtcolorbox%
      endtcolorbox%


      titlespacing*chapter0pt0cm0cm
      usepackagelipsum
      begindocument
      chapterLorem lipsum

      lipsum[1]
      enddocument


      enter image description here






      share|improve this answer



























        6












        6








        6







        This may be a start. The idea is to nest tcolorboxes.



        documentclassarticle
        usepackagetcolorbox
        begindocument
        begintcolorbox[
        colback=green!50!blue,
        colframe=green!50!blue,
        left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
        sharp corners,
        boxsep=0pt
        ]
        begintcolorbox[
        colback=green!50!blue,
        colframe=white,
        leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
        sharp corners,
        fontupper=colorwhitesffamilybfseriesLargecentering
        ]
        Android tutorial
        endtcolorbox%
        endtcolorbox
        enddocument


        enter image description here



        Now let's customize our chapter with it.



        documentclassbook
        usepackage[explicit]titlesec
        usepackage[many]tcolorbox
        definecolormyCyanHTML13C39D
        titleformatchapter[display]
        sffamilybfseriesHugefilcenter

        0pt
        %
        begintcolorbox[
        colback=myCyan,
        colframe=myCyan,
        left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
        sharp corners,
        boxsep=0pt
        ]
        begintcolorbox[
        colback=myCyan,
        colframe=white,
        leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
        sharp corners,
        fontupper=colorwhitesffamilybfseriesHugecentering
        ]
        thechapter. #1
        endtcolorbox%
        endtcolorbox%


        titlespacing*chapter0pt0cm0cm
        usepackagelipsum
        begindocument
        chapterLorem lipsum

        lipsum[1]
        enddocument


        enter image description here






        share|improve this answer















        This may be a start. The idea is to nest tcolorboxes.



        documentclassarticle
        usepackagetcolorbox
        begindocument
        begintcolorbox[
        colback=green!50!blue,
        colframe=green!50!blue,
        left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
        sharp corners,
        boxsep=0pt
        ]
        begintcolorbox[
        colback=green!50!blue,
        colframe=white,
        leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
        sharp corners,
        fontupper=colorwhitesffamilybfseriesLargecentering
        ]
        Android tutorial
        endtcolorbox%
        endtcolorbox
        enddocument


        enter image description here



        Now let's customize our chapter with it.



        documentclassbook
        usepackage[explicit]titlesec
        usepackage[many]tcolorbox
        definecolormyCyanHTML13C39D
        titleformatchapter[display]
        sffamilybfseriesHugefilcenter

        0pt
        %
        begintcolorbox[
        colback=myCyan,
        colframe=myCyan,
        left=1.5pt,right=1.5pt,top=1.5pt,bottom=-1.5pt,
        sharp corners,
        boxsep=0pt
        ]
        begintcolorbox[
        colback=myCyan,
        colframe=white,
        leftrule=1.5pt,rightrule=1.5pt,toprule=1.5pt,bottomrule=1.5pt,
        sharp corners,
        fontupper=colorwhitesffamilybfseriesHugecentering
        ]
        thechapter. #1
        endtcolorbox%
        endtcolorbox%


        titlespacing*chapter0pt0cm0cm
        usepackagelipsum
        begindocument
        chapterLorem lipsum

        lipsum[1]
        enddocument


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 6 at 13:57

























        answered Apr 6 at 13:51









        JouleVJouleV

        16.1k22667




        16.1k22667





















            5














            There's no need for nested tcolorboxes, you could use an enhanced box with an additional borderline:



            documentclassbook
            usepackage[explicit]titlesec
            usepackage[many]tcolorbox
            definecolormyCyanHTML13C39D
            titleformatchapter[display]
            sffamilybfseriesHugefilcenter

            0pt
            %
            begintcolorbox[
            enhanced,
            colback=myCyan,
            colframe=myCyan,
            boxsep=5pt,
            sharp corners,
            borderline=1.5pt3ptwhite,
            colupper=white,
            fontupper=sffamilybfseriesHuge,
            halign upper=center
            ]
            thechapter. #1
            endtcolorbox%


            titlespacing*chapter0pt0cm0cm
            usepackagelipsum
            begindocument
            chapterLorem lipsum

            lipsum[1]
            enddocument


            enter image description here






            share|improve this answer























            • Thanks sir, I really appreciate it.

              – Ravi
              Apr 8 at 7:53















            5














            There's no need for nested tcolorboxes, you could use an enhanced box with an additional borderline:



            documentclassbook
            usepackage[explicit]titlesec
            usepackage[many]tcolorbox
            definecolormyCyanHTML13C39D
            titleformatchapter[display]
            sffamilybfseriesHugefilcenter

            0pt
            %
            begintcolorbox[
            enhanced,
            colback=myCyan,
            colframe=myCyan,
            boxsep=5pt,
            sharp corners,
            borderline=1.5pt3ptwhite,
            colupper=white,
            fontupper=sffamilybfseriesHuge,
            halign upper=center
            ]
            thechapter. #1
            endtcolorbox%


            titlespacing*chapter0pt0cm0cm
            usepackagelipsum
            begindocument
            chapterLorem lipsum

            lipsum[1]
            enddocument


            enter image description here






            share|improve this answer























            • Thanks sir, I really appreciate it.

              – Ravi
              Apr 8 at 7:53













            5












            5








            5







            There's no need for nested tcolorboxes, you could use an enhanced box with an additional borderline:



            documentclassbook
            usepackage[explicit]titlesec
            usepackage[many]tcolorbox
            definecolormyCyanHTML13C39D
            titleformatchapter[display]
            sffamilybfseriesHugefilcenter

            0pt
            %
            begintcolorbox[
            enhanced,
            colback=myCyan,
            colframe=myCyan,
            boxsep=5pt,
            sharp corners,
            borderline=1.5pt3ptwhite,
            colupper=white,
            fontupper=sffamilybfseriesHuge,
            halign upper=center
            ]
            thechapter. #1
            endtcolorbox%


            titlespacing*chapter0pt0cm0cm
            usepackagelipsum
            begindocument
            chapterLorem lipsum

            lipsum[1]
            enddocument


            enter image description here






            share|improve this answer













            There's no need for nested tcolorboxes, you could use an enhanced box with an additional borderline:



            documentclassbook
            usepackage[explicit]titlesec
            usepackage[many]tcolorbox
            definecolormyCyanHTML13C39D
            titleformatchapter[display]
            sffamilybfseriesHugefilcenter

            0pt
            %
            begintcolorbox[
            enhanced,
            colback=myCyan,
            colframe=myCyan,
            boxsep=5pt,
            sharp corners,
            borderline=1.5pt3ptwhite,
            colupper=white,
            fontupper=sffamilybfseriesHuge,
            halign upper=center
            ]
            thechapter. #1
            endtcolorbox%


            titlespacing*chapter0pt0cm0cm
            usepackagelipsum
            begindocument
            chapterLorem lipsum

            lipsum[1]
            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 8 at 7:48









            IgnasiIgnasi

            96.4k5176324




            96.4k5176324












            • Thanks sir, I really appreciate it.

              – Ravi
              Apr 8 at 7:53

















            • Thanks sir, I really appreciate it.

              – Ravi
              Apr 8 at 7:53
















            Thanks sir, I really appreciate it.

            – Ravi
            Apr 8 at 7:53





            Thanks sir, I really appreciate it.

            – Ravi
            Apr 8 at 7:53

















            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%2f483519%2fhow-to-add-double-frame-in-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

            Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

            Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

            Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High