Creating a nice-looking box without using minipage

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
7
down vote

favorite
2












I would like to create the following box and title without using minipage
With :



  • small box before Title

  • Title with counter

enter image description here



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageamsmath,amssymb,amsthm,fancybox
usepackageenumitem
newtheoremtestTest
usepackage[margin=1cm]geometry
begindocument

Comment rechercher l'ordre d'un élément d'un groupe

shadowbox
beginminipage[c]7in
subsubsectionMéthode1.3-Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endminipage

enddocument


Here is another attempt :



 documentclassarticle
usepackageamsmath,amssymb,amsthm
usepackage[svgnames]xcolor
usepackage[most]tcolorbox
usetikzlibraryshadows
usepackagepifont
newcounterexa

tcbset
myexample/.style=
enhanced,
colback=white,
colframe=black,
fonttitle=bfseries,
breakable,
drop shadow=black,opacity=1,
sharp corners,
titlerule=0pt,
title=refstepcounterexading111 Methode~theexa.,
title style=fill=white,
coltitle=black,
drop shadow,
highlight math style=reset,colback=white,colframe=black



newtcolorboxEducBoxmyexample

begindocument

beginEducBox
centering
Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endEducBox

enddocument


which produces :



enter image description here







share|improve this question






















  • Have you tried using a package like tcolorbox?
    – TeXnician
    Aug 10 at 8:40










  • @TeXnician I read quickly this link mirror.hmc.edu/ctan/macros/latex/contrib/tcolorbox/… but I didn't find a box like what I want
    – Educ
    Aug 10 at 8:43






  • 1




    Why do you want to avoid minipage? What is the underlying goal?
    – PaÅ­lo Ebermann
    Aug 10 at 22:25














up vote
7
down vote

favorite
2












I would like to create the following box and title without using minipage
With :



  • small box before Title

  • Title with counter

enter image description here



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageamsmath,amssymb,amsthm,fancybox
usepackageenumitem
newtheoremtestTest
usepackage[margin=1cm]geometry
begindocument

Comment rechercher l'ordre d'un élément d'un groupe

shadowbox
beginminipage[c]7in
subsubsectionMéthode1.3-Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endminipage

enddocument


Here is another attempt :



 documentclassarticle
usepackageamsmath,amssymb,amsthm
usepackage[svgnames]xcolor
usepackage[most]tcolorbox
usetikzlibraryshadows
usepackagepifont
newcounterexa

tcbset
myexample/.style=
enhanced,
colback=white,
colframe=black,
fonttitle=bfseries,
breakable,
drop shadow=black,opacity=1,
sharp corners,
titlerule=0pt,
title=refstepcounterexading111 Methode~theexa.,
title style=fill=white,
coltitle=black,
drop shadow,
highlight math style=reset,colback=white,colframe=black



newtcolorboxEducBoxmyexample

begindocument

beginEducBox
centering
Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endEducBox

enddocument


which produces :



enter image description here







share|improve this question






















  • Have you tried using a package like tcolorbox?
    – TeXnician
    Aug 10 at 8:40










  • @TeXnician I read quickly this link mirror.hmc.edu/ctan/macros/latex/contrib/tcolorbox/… but I didn't find a box like what I want
    – Educ
    Aug 10 at 8:43






  • 1




    Why do you want to avoid minipage? What is the underlying goal?
    – PaÅ­lo Ebermann
    Aug 10 at 22:25












up vote
7
down vote

favorite
2









up vote
7
down vote

favorite
2






2





I would like to create the following box and title without using minipage
With :



  • small box before Title

  • Title with counter

enter image description here



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageamsmath,amssymb,amsthm,fancybox
usepackageenumitem
newtheoremtestTest
usepackage[margin=1cm]geometry
begindocument

Comment rechercher l'ordre d'un élément d'un groupe

shadowbox
beginminipage[c]7in
subsubsectionMéthode1.3-Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endminipage

enddocument


Here is another attempt :



 documentclassarticle
usepackageamsmath,amssymb,amsthm
usepackage[svgnames]xcolor
usepackage[most]tcolorbox
usetikzlibraryshadows
usepackagepifont
newcounterexa

tcbset
myexample/.style=
enhanced,
colback=white,
colframe=black,
fonttitle=bfseries,
breakable,
drop shadow=black,opacity=1,
sharp corners,
titlerule=0pt,
title=refstepcounterexading111 Methode~theexa.,
title style=fill=white,
coltitle=black,
drop shadow,
highlight math style=reset,colback=white,colframe=black



newtcolorboxEducBoxmyexample

begindocument

beginEducBox
centering
Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endEducBox

enddocument


which produces :



enter image description here







share|improve this question














I would like to create the following box and title without using minipage
With :



  • small box before Title

  • Title with counter

enter image description here



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageamsmath,amssymb,amsthm,fancybox
usepackageenumitem
newtheoremtestTest
usepackage[margin=1cm]geometry
begindocument

Comment rechercher l'ordre d'un élément d'un groupe

shadowbox
beginminipage[c]7in
subsubsectionMéthode1.3-Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endminipage

enddocument


Here is another attempt :



 documentclassarticle
usepackageamsmath,amssymb,amsthm
usepackage[svgnames]xcolor
usepackage[most]tcolorbox
usetikzlibraryshadows
usepackagepifont
newcounterexa

tcbset
myexample/.style=
enhanced,
colback=white,
colframe=black,
fonttitle=bfseries,
breakable,
drop shadow=black,opacity=1,
sharp corners,
titlerule=0pt,
title=refstepcounterexading111 Methode~theexa.,
title style=fill=white,
coltitle=black,
drop shadow,
highlight math style=reset,colback=white,colframe=black



newtcolorboxEducBoxmyexample

begindocument

beginEducBox
centering
Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endEducBox

enddocument


which produces :



enter image description here









share|improve this question













share|improve this question




share|improve this question








edited Aug 10 at 9:49

























asked Aug 10 at 8:37









Educ

1,80441640




1,80441640











  • Have you tried using a package like tcolorbox?
    – TeXnician
    Aug 10 at 8:40










  • @TeXnician I read quickly this link mirror.hmc.edu/ctan/macros/latex/contrib/tcolorbox/… but I didn't find a box like what I want
    – Educ
    Aug 10 at 8:43






  • 1




    Why do you want to avoid minipage? What is the underlying goal?
    – PaÅ­lo Ebermann
    Aug 10 at 22:25
















  • Have you tried using a package like tcolorbox?
    – TeXnician
    Aug 10 at 8:40










  • @TeXnician I read quickly this link mirror.hmc.edu/ctan/macros/latex/contrib/tcolorbox/… but I didn't find a box like what I want
    – Educ
    Aug 10 at 8:43






  • 1




    Why do you want to avoid minipage? What is the underlying goal?
    – PaÅ­lo Ebermann
    Aug 10 at 22:25















Have you tried using a package like tcolorbox?
– TeXnician
Aug 10 at 8:40




Have you tried using a package like tcolorbox?
– TeXnician
Aug 10 at 8:40












@TeXnician I read quickly this link mirror.hmc.edu/ctan/macros/latex/contrib/tcolorbox/… but I didn't find a box like what I want
– Educ
Aug 10 at 8:43




@TeXnician I read quickly this link mirror.hmc.edu/ctan/macros/latex/contrib/tcolorbox/… but I didn't find a box like what I want
– Educ
Aug 10 at 8:43




1




1




Why do you want to avoid minipage? What is the underlying goal?
– PaÅ­lo Ebermann
Aug 10 at 22:25




Why do you want to avoid minipage? What is the underlying goal?
– PaÅ­lo Ebermann
Aug 10 at 22:25










3 Answers
3






active

oldest

votes

















up vote
8
down vote



accepted










With tcolorbox and its tcbtheorems is not too difficult.



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageamsmath,amssymb,amsthm
usepackage[margin=1cm]geometry
usepackage[most]tcolorbox
usepackagelmodern
usepackagebbding

tcbset
methstyle/.style=
enhanced,
theorem style=plain,
sharp corners,
colframe=black,
colback=white,
coltitle=black,
fonttitle=bfseriesupshape,
drop shadow=black,opacity=1,
separator sign dash,
before title=SquareShadowBottomRight ,



newtcbtheorem[number within=section]MethodeMéthodemethstyleMet


begindocument

Comment rechercher l'ordre d'un élément d'un groupe

sectionMethodes

beginMethodeA new méthodeanm
Soit $G$ un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endMethode

enddocument


enter image description here






share|improve this answer


















  • 1




    Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
    – TeXnician
    Aug 10 at 10:03










  • Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
    – Educ
    Aug 10 at 10:07











  • @TeXnician Done. Thank you for pointing it.
    – Ignasi
    Aug 10 at 10:19










  • could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
    – Educ
    Aug 10 at 10:21







  • 1




    @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
    – Ignasi
    Aug 10 at 10:41

















up vote
6
down vote













Here's a starter with tcolorbox. I do not have your section and subsection styles, so this is with default styles. Please note that the tcolorbox manual is no quick read, it requires some patience.



In the code example the box is drawn with optional arguments, but feel free to use newtcolorbox instead if your original aim was to shorten the code.



box



documentclassarticle
usepackageamsmath,amssymb,amsthm
usepackage[most]tcolorbox

begindocument
begintcolorbox[enhanced, sharp corners, colback=white, colframe=black, drop shadow=black,opacity=1]
subsubsectionMéthode1.3
Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
beginitemize
item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
enditemize
endtcolorbox
enddocument





share|improve this answer






















  • Thank you but where is small box before title 'Methode'
    – Educ
    Aug 10 at 8:55










  • Where is also counter ?
    – Educ
    Aug 10 at 8:55










  • @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
    – BambOo
    Aug 10 at 9:00











  • @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
    – TeXnician
    Aug 10 at 9:00










  • @BambOo Thanks, totally forgot that.
    – TeXnician
    Aug 10 at 9:01

















up vote
6
down vote













Quick and dirty implementation of your box without any packages:



documentclassarticle

usepackageduckuments

newsaveboxcustomboxbox
newlengthcustomboxOuterWidth
newlengthcustomboxOuterHeight
newlengthcustomboxOuterDepth
newlengthcustomboxInnerWidth
newlengthcustomboxRuleWidth
newlengthcustomboxShadowHeight
newlengthcustomboxShadowDepth
newlengthcustomboxShadowWidth
newlengthcustomboxInnerSep

customboxInnerSep3fboxsep
customboxRuleWidth.6pt
customboxShadowWidth4pt

newenvironmentcustombox[1][linewidth]
%
noindent
customboxOuterWidth#1
advancecustomboxOuterWidth-customboxShadowWidth
customboxInnerWidth#1
advancecustomboxInnerWidth-2customboxRuleWidth
advancecustomboxInnerWidth-2customboxInnerSep
advancecustomboxInnerWidth-customboxShadowWidth
setboxcustomboxboxvboxbgroup
hsizecustomboxInnerWidth
linewidthhsize
noindent
ignorespaces

%
ifhmodeunskipfi
egroup
customboxOuterHeighthtcustomboxbox
advancecustomboxOuterHeightcustomboxInnerSep
customboxOuterDepthdpcustomboxbox
advancecustomboxOuterDepthcustomboxInnerSep
customboxShadowHeightcustomboxOuterHeight
advancecustomboxShadowHeight-customboxShadowWidth
customboxShadowDepthcustomboxOuterDepth
advancecustomboxShadowDepthcustomboxShadowWidth
raiseboxcustomboxOuterHeight
rlapvrule height customboxRuleWidth width customboxOuterWidth%
vrule height customboxOuterHeight
depth customboxOuterDepth
width customboxRuleWidth
rlap
%
hskipcustomboxInnerSepuseboxcustomboxbox
hskipcustomboxInnerSep
vrule height customboxOuterHeight
depth customboxOuterDepth
width customboxRuleWidth
vrule height customboxShadowHeight
depth customboxShadowDepth
width customboxShadowWidth
%
raisebox-customboxOuterDepth
%
rlap
%
vrule height customboxRuleWidth
depth 0pt
width customboxOuterWidth
%
hskipcustomboxShadowWidth
advancecustomboxOuterWidth-customboxRuleWidth
vrule height customboxRuleWidth
depth customboxShadowWidth
width customboxOuterWidth
%



begindocument
begincustombox
blindduck
endcustombox
enddocument


enter image description here



The environment takes an optional argument which specifies the used total width. Content width is calculated based on total width, customboxInnerSep, customboxRuleWidth and customboxShadowWidth.



It doesn't add any outer spacing.






share|improve this answer






















    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f445449%2fcreating-a-nice-looking-box-without-using-minipage%23new-answer', 'question_page');

    );

    Post as a guest






























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    8
    down vote



    accepted










    With tcolorbox and its tcbtheorems is not too difficult.



    documentclassarticle
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackageamsmath,amssymb,amsthm
    usepackage[margin=1cm]geometry
    usepackage[most]tcolorbox
    usepackagelmodern
    usepackagebbding

    tcbset
    methstyle/.style=
    enhanced,
    theorem style=plain,
    sharp corners,
    colframe=black,
    colback=white,
    coltitle=black,
    fonttitle=bfseriesupshape,
    drop shadow=black,opacity=1,
    separator sign dash,
    before title=SquareShadowBottomRight ,



    newtcbtheorem[number within=section]MethodeMéthodemethstyleMet


    begindocument

    Comment rechercher l'ordre d'un élément d'un groupe

    sectionMethodes

    beginMethodeA new méthodeanm
    Soit $G$ un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endMethode

    enddocument


    enter image description here






    share|improve this answer


















    • 1




      Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
      – TeXnician
      Aug 10 at 10:03










    • Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
      – Educ
      Aug 10 at 10:07











    • @TeXnician Done. Thank you for pointing it.
      – Ignasi
      Aug 10 at 10:19










    • could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
      – Educ
      Aug 10 at 10:21







    • 1




      @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
      – Ignasi
      Aug 10 at 10:41














    up vote
    8
    down vote



    accepted










    With tcolorbox and its tcbtheorems is not too difficult.



    documentclassarticle
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackageamsmath,amssymb,amsthm
    usepackage[margin=1cm]geometry
    usepackage[most]tcolorbox
    usepackagelmodern
    usepackagebbding

    tcbset
    methstyle/.style=
    enhanced,
    theorem style=plain,
    sharp corners,
    colframe=black,
    colback=white,
    coltitle=black,
    fonttitle=bfseriesupshape,
    drop shadow=black,opacity=1,
    separator sign dash,
    before title=SquareShadowBottomRight ,



    newtcbtheorem[number within=section]MethodeMéthodemethstyleMet


    begindocument

    Comment rechercher l'ordre d'un élément d'un groupe

    sectionMethodes

    beginMethodeA new méthodeanm
    Soit $G$ un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endMethode

    enddocument


    enter image description here






    share|improve this answer


















    • 1




      Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
      – TeXnician
      Aug 10 at 10:03










    • Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
      – Educ
      Aug 10 at 10:07











    • @TeXnician Done. Thank you for pointing it.
      – Ignasi
      Aug 10 at 10:19










    • could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
      – Educ
      Aug 10 at 10:21







    • 1




      @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
      – Ignasi
      Aug 10 at 10:41












    up vote
    8
    down vote



    accepted







    up vote
    8
    down vote



    accepted






    With tcolorbox and its tcbtheorems is not too difficult.



    documentclassarticle
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackageamsmath,amssymb,amsthm
    usepackage[margin=1cm]geometry
    usepackage[most]tcolorbox
    usepackagelmodern
    usepackagebbding

    tcbset
    methstyle/.style=
    enhanced,
    theorem style=plain,
    sharp corners,
    colframe=black,
    colback=white,
    coltitle=black,
    fonttitle=bfseriesupshape,
    drop shadow=black,opacity=1,
    separator sign dash,
    before title=SquareShadowBottomRight ,



    newtcbtheorem[number within=section]MethodeMéthodemethstyleMet


    begindocument

    Comment rechercher l'ordre d'un élément d'un groupe

    sectionMethodes

    beginMethodeA new méthodeanm
    Soit $G$ un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endMethode

    enddocument


    enter image description here






    share|improve this answer














    With tcolorbox and its tcbtheorems is not too difficult.



    documentclassarticle
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackageamsmath,amssymb,amsthm
    usepackage[margin=1cm]geometry
    usepackage[most]tcolorbox
    usepackagelmodern
    usepackagebbding

    tcbset
    methstyle/.style=
    enhanced,
    theorem style=plain,
    sharp corners,
    colframe=black,
    colback=white,
    coltitle=black,
    fonttitle=bfseriesupshape,
    drop shadow=black,opacity=1,
    separator sign dash,
    before title=SquareShadowBottomRight ,



    newtcbtheorem[number within=section]MethodeMéthodemethstyleMet


    begindocument

    Comment rechercher l'ordre d'un élément d'un groupe

    sectionMethodes

    beginMethodeA new méthodeanm
    Soit $G$ un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endMethode

    enddocument


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 10 at 10:38

























    answered Aug 10 at 9:53









    Ignasi

    86.6k4153287




    86.6k4153287







    • 1




      Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
      – TeXnician
      Aug 10 at 10:03










    • Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
      – Educ
      Aug 10 at 10:07











    • @TeXnician Done. Thank you for pointing it.
      – Ignasi
      Aug 10 at 10:19










    • could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
      – Educ
      Aug 10 at 10:21







    • 1




      @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
      – Ignasi
      Aug 10 at 10:41












    • 1




      Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
      – TeXnician
      Aug 10 at 10:03










    • Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
      – Educ
      Aug 10 at 10:07











    • @TeXnician Done. Thank you for pointing it.
      – Ignasi
      Aug 10 at 10:19










    • could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
      – Educ
      Aug 10 at 10:21







    • 1




      @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
      – Ignasi
      Aug 10 at 10:41







    1




    1




    Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
    – TeXnician
    Aug 10 at 10:03




    Just to forward the comment @BambOo has made on my tcolorbox post: "You can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)". But great answer, +1.
    – TeXnician
    Aug 10 at 10:03












    Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
    – Educ
    Aug 10 at 10:07





    Yes, I agree with @TeXnician for opacity thing. +1 very nice work Thank you
    – Educ
    Aug 10 at 10:07













    @TeXnician Done. Thank you for pointing it.
    – Ignasi
    Aug 10 at 10:19




    @TeXnician Done. Thank you for pointing it.
    – Ignasi
    Aug 10 at 10:19












    could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
    – Educ
    Aug 10 at 10:21





    could you replace the quare with a square with shadows like the picture That I post I try 'shadowbox' but with no luck I used pifont pakcage too but with no sucess
    – Educ
    Aug 10 at 10:21





    1




    1




    @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
    – Ignasi
    Aug 10 at 10:41




    @Edut I've found something similar in bbding. If you don't like, try to find something else in The Comprehensive LaTeX Symbol List list
    – Ignasi
    Aug 10 at 10:41










    up vote
    6
    down vote













    Here's a starter with tcolorbox. I do not have your section and subsection styles, so this is with default styles. Please note that the tcolorbox manual is no quick read, it requires some patience.



    In the code example the box is drawn with optional arguments, but feel free to use newtcolorbox instead if your original aim was to shorten the code.



    box



    documentclassarticle
    usepackageamsmath,amssymb,amsthm
    usepackage[most]tcolorbox

    begindocument
    begintcolorbox[enhanced, sharp corners, colback=white, colframe=black, drop shadow=black,opacity=1]
    subsubsectionMéthode1.3
    Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endtcolorbox
    enddocument





    share|improve this answer






















    • Thank you but where is small box before title 'Methode'
      – Educ
      Aug 10 at 8:55










    • Where is also counter ?
      – Educ
      Aug 10 at 8:55










    • @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
      – BambOo
      Aug 10 at 9:00











    • @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
      – TeXnician
      Aug 10 at 9:00










    • @BambOo Thanks, totally forgot that.
      – TeXnician
      Aug 10 at 9:01














    up vote
    6
    down vote













    Here's a starter with tcolorbox. I do not have your section and subsection styles, so this is with default styles. Please note that the tcolorbox manual is no quick read, it requires some patience.



    In the code example the box is drawn with optional arguments, but feel free to use newtcolorbox instead if your original aim was to shorten the code.



    box



    documentclassarticle
    usepackageamsmath,amssymb,amsthm
    usepackage[most]tcolorbox

    begindocument
    begintcolorbox[enhanced, sharp corners, colback=white, colframe=black, drop shadow=black,opacity=1]
    subsubsectionMéthode1.3
    Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endtcolorbox
    enddocument





    share|improve this answer






















    • Thank you but where is small box before title 'Methode'
      – Educ
      Aug 10 at 8:55










    • Where is also counter ?
      – Educ
      Aug 10 at 8:55










    • @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
      – BambOo
      Aug 10 at 9:00











    • @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
      – TeXnician
      Aug 10 at 9:00










    • @BambOo Thanks, totally forgot that.
      – TeXnician
      Aug 10 at 9:01












    up vote
    6
    down vote










    up vote
    6
    down vote









    Here's a starter with tcolorbox. I do not have your section and subsection styles, so this is with default styles. Please note that the tcolorbox manual is no quick read, it requires some patience.



    In the code example the box is drawn with optional arguments, but feel free to use newtcolorbox instead if your original aim was to shorten the code.



    box



    documentclassarticle
    usepackageamsmath,amssymb,amsthm
    usepackage[most]tcolorbox

    begindocument
    begintcolorbox[enhanced, sharp corners, colback=white, colframe=black, drop shadow=black,opacity=1]
    subsubsectionMéthode1.3
    Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endtcolorbox
    enddocument





    share|improve this answer














    Here's a starter with tcolorbox. I do not have your section and subsection styles, so this is with default styles. Please note that the tcolorbox manual is no quick read, it requires some patience.



    In the code example the box is drawn with optional arguments, but feel free to use newtcolorbox instead if your original aim was to shorten the code.



    box



    documentclassarticle
    usepackageamsmath,amssymb,amsthm
    usepackage[most]tcolorbox

    begindocument
    begintcolorbox[enhanced, sharp corners, colback=white, colframe=black, drop shadow=black,opacity=1]
    subsubsectionMéthode1.3
    Soit G un groupe, noté multiplicativement, et soit $ain G$. Pour déterminer l'ordre de l'élément $a$, on peut:
    beginitemize
    item Calculer les puissances successives de l'élément $a$ jusqu'à l'obtention de l'élément neutre.
    item Trouver une propriété qui montre qu'aucune puissance de $a$ ne peut être le neutre.
    enditemize
    endtcolorbox
    enddocument






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 10 at 9:01

























    answered Aug 10 at 8:54









    TeXnician

    20.2k52880




    20.2k52880











    • Thank you but where is small box before title 'Methode'
      – Educ
      Aug 10 at 8:55










    • Where is also counter ?
      – Educ
      Aug 10 at 8:55










    • @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
      – BambOo
      Aug 10 at 9:00











    • @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
      – TeXnician
      Aug 10 at 9:00










    • @BambOo Thanks, totally forgot that.
      – TeXnician
      Aug 10 at 9:01
















    • Thank you but where is small box before title 'Methode'
      – Educ
      Aug 10 at 8:55










    • Where is also counter ?
      – Educ
      Aug 10 at 8:55










    • @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
      – BambOo
      Aug 10 at 9:00











    • @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
      – TeXnician
      Aug 10 at 9:00










    • @BambOo Thanks, totally forgot that.
      – TeXnician
      Aug 10 at 9:01















    Thank you but where is small box before title 'Methode'
    – Educ
    Aug 10 at 8:55




    Thank you but where is small box before title 'Methode'
    – Educ
    Aug 10 at 8:55












    Where is also counter ?
    – Educ
    Aug 10 at 8:55




    Where is also counter ?
    – Educ
    Aug 10 at 8:55












    @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
    – BambOo
    Aug 10 at 9:00





    @Texnician, you can also add opacity=1 to the drop shadow option to get a bit closer to the OP's demand :)
    – BambOo
    Aug 10 at 9:00













    @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
    – TeXnician
    Aug 10 at 9:00




    @Educ You do not provide your sectioning style (you're using a styled subsubsection for the picture as it seems), so I don't attempt to replicate it. As you are using a different setup to create the picture in your question than your MWE produces, I only try to give you a starter on the box you've asked for.
    – TeXnician
    Aug 10 at 9:00












    @BambOo Thanks, totally forgot that.
    – TeXnician
    Aug 10 at 9:01




    @BambOo Thanks, totally forgot that.
    – TeXnician
    Aug 10 at 9:01










    up vote
    6
    down vote













    Quick and dirty implementation of your box without any packages:



    documentclassarticle

    usepackageduckuments

    newsaveboxcustomboxbox
    newlengthcustomboxOuterWidth
    newlengthcustomboxOuterHeight
    newlengthcustomboxOuterDepth
    newlengthcustomboxInnerWidth
    newlengthcustomboxRuleWidth
    newlengthcustomboxShadowHeight
    newlengthcustomboxShadowDepth
    newlengthcustomboxShadowWidth
    newlengthcustomboxInnerSep

    customboxInnerSep3fboxsep
    customboxRuleWidth.6pt
    customboxShadowWidth4pt

    newenvironmentcustombox[1][linewidth]
    %
    noindent
    customboxOuterWidth#1
    advancecustomboxOuterWidth-customboxShadowWidth
    customboxInnerWidth#1
    advancecustomboxInnerWidth-2customboxRuleWidth
    advancecustomboxInnerWidth-2customboxInnerSep
    advancecustomboxInnerWidth-customboxShadowWidth
    setboxcustomboxboxvboxbgroup
    hsizecustomboxInnerWidth
    linewidthhsize
    noindent
    ignorespaces

    %
    ifhmodeunskipfi
    egroup
    customboxOuterHeighthtcustomboxbox
    advancecustomboxOuterHeightcustomboxInnerSep
    customboxOuterDepthdpcustomboxbox
    advancecustomboxOuterDepthcustomboxInnerSep
    customboxShadowHeightcustomboxOuterHeight
    advancecustomboxShadowHeight-customboxShadowWidth
    customboxShadowDepthcustomboxOuterDepth
    advancecustomboxShadowDepthcustomboxShadowWidth
    raiseboxcustomboxOuterHeight
    rlapvrule height customboxRuleWidth width customboxOuterWidth%
    vrule height customboxOuterHeight
    depth customboxOuterDepth
    width customboxRuleWidth
    rlap
    %
    hskipcustomboxInnerSepuseboxcustomboxbox
    hskipcustomboxInnerSep
    vrule height customboxOuterHeight
    depth customboxOuterDepth
    width customboxRuleWidth
    vrule height customboxShadowHeight
    depth customboxShadowDepth
    width customboxShadowWidth
    %
    raisebox-customboxOuterDepth
    %
    rlap
    %
    vrule height customboxRuleWidth
    depth 0pt
    width customboxOuterWidth
    %
    hskipcustomboxShadowWidth
    advancecustomboxOuterWidth-customboxRuleWidth
    vrule height customboxRuleWidth
    depth customboxShadowWidth
    width customboxOuterWidth
    %



    begindocument
    begincustombox
    blindduck
    endcustombox
    enddocument


    enter image description here



    The environment takes an optional argument which specifies the used total width. Content width is calculated based on total width, customboxInnerSep, customboxRuleWidth and customboxShadowWidth.



    It doesn't add any outer spacing.






    share|improve this answer


























      up vote
      6
      down vote













      Quick and dirty implementation of your box without any packages:



      documentclassarticle

      usepackageduckuments

      newsaveboxcustomboxbox
      newlengthcustomboxOuterWidth
      newlengthcustomboxOuterHeight
      newlengthcustomboxOuterDepth
      newlengthcustomboxInnerWidth
      newlengthcustomboxRuleWidth
      newlengthcustomboxShadowHeight
      newlengthcustomboxShadowDepth
      newlengthcustomboxShadowWidth
      newlengthcustomboxInnerSep

      customboxInnerSep3fboxsep
      customboxRuleWidth.6pt
      customboxShadowWidth4pt

      newenvironmentcustombox[1][linewidth]
      %
      noindent
      customboxOuterWidth#1
      advancecustomboxOuterWidth-customboxShadowWidth
      customboxInnerWidth#1
      advancecustomboxInnerWidth-2customboxRuleWidth
      advancecustomboxInnerWidth-2customboxInnerSep
      advancecustomboxInnerWidth-customboxShadowWidth
      setboxcustomboxboxvboxbgroup
      hsizecustomboxInnerWidth
      linewidthhsize
      noindent
      ignorespaces

      %
      ifhmodeunskipfi
      egroup
      customboxOuterHeighthtcustomboxbox
      advancecustomboxOuterHeightcustomboxInnerSep
      customboxOuterDepthdpcustomboxbox
      advancecustomboxOuterDepthcustomboxInnerSep
      customboxShadowHeightcustomboxOuterHeight
      advancecustomboxShadowHeight-customboxShadowWidth
      customboxShadowDepthcustomboxOuterDepth
      advancecustomboxShadowDepthcustomboxShadowWidth
      raiseboxcustomboxOuterHeight
      rlapvrule height customboxRuleWidth width customboxOuterWidth%
      vrule height customboxOuterHeight
      depth customboxOuterDepth
      width customboxRuleWidth
      rlap
      %
      hskipcustomboxInnerSepuseboxcustomboxbox
      hskipcustomboxInnerSep
      vrule height customboxOuterHeight
      depth customboxOuterDepth
      width customboxRuleWidth
      vrule height customboxShadowHeight
      depth customboxShadowDepth
      width customboxShadowWidth
      %
      raisebox-customboxOuterDepth
      %
      rlap
      %
      vrule height customboxRuleWidth
      depth 0pt
      width customboxOuterWidth
      %
      hskipcustomboxShadowWidth
      advancecustomboxOuterWidth-customboxRuleWidth
      vrule height customboxRuleWidth
      depth customboxShadowWidth
      width customboxOuterWidth
      %



      begindocument
      begincustombox
      blindduck
      endcustombox
      enddocument


      enter image description here



      The environment takes an optional argument which specifies the used total width. Content width is calculated based on total width, customboxInnerSep, customboxRuleWidth and customboxShadowWidth.



      It doesn't add any outer spacing.






      share|improve this answer
























        up vote
        6
        down vote










        up vote
        6
        down vote









        Quick and dirty implementation of your box without any packages:



        documentclassarticle

        usepackageduckuments

        newsaveboxcustomboxbox
        newlengthcustomboxOuterWidth
        newlengthcustomboxOuterHeight
        newlengthcustomboxOuterDepth
        newlengthcustomboxInnerWidth
        newlengthcustomboxRuleWidth
        newlengthcustomboxShadowHeight
        newlengthcustomboxShadowDepth
        newlengthcustomboxShadowWidth
        newlengthcustomboxInnerSep

        customboxInnerSep3fboxsep
        customboxRuleWidth.6pt
        customboxShadowWidth4pt

        newenvironmentcustombox[1][linewidth]
        %
        noindent
        customboxOuterWidth#1
        advancecustomboxOuterWidth-customboxShadowWidth
        customboxInnerWidth#1
        advancecustomboxInnerWidth-2customboxRuleWidth
        advancecustomboxInnerWidth-2customboxInnerSep
        advancecustomboxInnerWidth-customboxShadowWidth
        setboxcustomboxboxvboxbgroup
        hsizecustomboxInnerWidth
        linewidthhsize
        noindent
        ignorespaces

        %
        ifhmodeunskipfi
        egroup
        customboxOuterHeighthtcustomboxbox
        advancecustomboxOuterHeightcustomboxInnerSep
        customboxOuterDepthdpcustomboxbox
        advancecustomboxOuterDepthcustomboxInnerSep
        customboxShadowHeightcustomboxOuterHeight
        advancecustomboxShadowHeight-customboxShadowWidth
        customboxShadowDepthcustomboxOuterDepth
        advancecustomboxShadowDepthcustomboxShadowWidth
        raiseboxcustomboxOuterHeight
        rlapvrule height customboxRuleWidth width customboxOuterWidth%
        vrule height customboxOuterHeight
        depth customboxOuterDepth
        width customboxRuleWidth
        rlap
        %
        hskipcustomboxInnerSepuseboxcustomboxbox
        hskipcustomboxInnerSep
        vrule height customboxOuterHeight
        depth customboxOuterDepth
        width customboxRuleWidth
        vrule height customboxShadowHeight
        depth customboxShadowDepth
        width customboxShadowWidth
        %
        raisebox-customboxOuterDepth
        %
        rlap
        %
        vrule height customboxRuleWidth
        depth 0pt
        width customboxOuterWidth
        %
        hskipcustomboxShadowWidth
        advancecustomboxOuterWidth-customboxRuleWidth
        vrule height customboxRuleWidth
        depth customboxShadowWidth
        width customboxOuterWidth
        %



        begindocument
        begincustombox
        blindduck
        endcustombox
        enddocument


        enter image description here



        The environment takes an optional argument which specifies the used total width. Content width is calculated based on total width, customboxInnerSep, customboxRuleWidth and customboxShadowWidth.



        It doesn't add any outer spacing.






        share|improve this answer














        Quick and dirty implementation of your box without any packages:



        documentclassarticle

        usepackageduckuments

        newsaveboxcustomboxbox
        newlengthcustomboxOuterWidth
        newlengthcustomboxOuterHeight
        newlengthcustomboxOuterDepth
        newlengthcustomboxInnerWidth
        newlengthcustomboxRuleWidth
        newlengthcustomboxShadowHeight
        newlengthcustomboxShadowDepth
        newlengthcustomboxShadowWidth
        newlengthcustomboxInnerSep

        customboxInnerSep3fboxsep
        customboxRuleWidth.6pt
        customboxShadowWidth4pt

        newenvironmentcustombox[1][linewidth]
        %
        noindent
        customboxOuterWidth#1
        advancecustomboxOuterWidth-customboxShadowWidth
        customboxInnerWidth#1
        advancecustomboxInnerWidth-2customboxRuleWidth
        advancecustomboxInnerWidth-2customboxInnerSep
        advancecustomboxInnerWidth-customboxShadowWidth
        setboxcustomboxboxvboxbgroup
        hsizecustomboxInnerWidth
        linewidthhsize
        noindent
        ignorespaces

        %
        ifhmodeunskipfi
        egroup
        customboxOuterHeighthtcustomboxbox
        advancecustomboxOuterHeightcustomboxInnerSep
        customboxOuterDepthdpcustomboxbox
        advancecustomboxOuterDepthcustomboxInnerSep
        customboxShadowHeightcustomboxOuterHeight
        advancecustomboxShadowHeight-customboxShadowWidth
        customboxShadowDepthcustomboxOuterDepth
        advancecustomboxShadowDepthcustomboxShadowWidth
        raiseboxcustomboxOuterHeight
        rlapvrule height customboxRuleWidth width customboxOuterWidth%
        vrule height customboxOuterHeight
        depth customboxOuterDepth
        width customboxRuleWidth
        rlap
        %
        hskipcustomboxInnerSepuseboxcustomboxbox
        hskipcustomboxInnerSep
        vrule height customboxOuterHeight
        depth customboxOuterDepth
        width customboxRuleWidth
        vrule height customboxShadowHeight
        depth customboxShadowDepth
        width customboxShadowWidth
        %
        raisebox-customboxOuterDepth
        %
        rlap
        %
        vrule height customboxRuleWidth
        depth 0pt
        width customboxOuterWidth
        %
        hskipcustomboxShadowWidth
        advancecustomboxOuterWidth-customboxRuleWidth
        vrule height customboxRuleWidth
        depth customboxShadowWidth
        width customboxOuterWidth
        %



        begindocument
        begincustombox
        blindduck
        endcustombox
        enddocument


        enter image description here



        The environment takes an optional argument which specifies the used total width. Content width is calculated based on total width, customboxInnerSep, customboxRuleWidth and customboxShadowWidth.



        It doesn't add any outer spacing.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 10 at 11:15

























        answered Aug 10 at 9:14









        Skillmon

        17.2k11534




        17.2k11534



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f445449%2fcreating-a-nice-looking-box-without-using-minipage%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            What does second last employer means? [closed]

            One-line joke