Modify distance of enumerate item in tcolorbox












1















i want to add line (A) and change distance between rows (B)



My code



documentclass[11pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[margin=1in]{geometry}
usepackage{tcolorbox}
begin{document}
begin{tcolorbox}[width=10cm]

begin{enumerate}
item
...........:........... ..............................................\
........................ hfill XXX
%vspace*{1.5cm}
item
...........:........... ..............................................\
........................ hfill XXX
end{enumerate}
end{tcolorbox}

end{document}


enter image description here
Please help. Thanks










share|improve this question





























    1















    i want to add line (A) and change distance between rows (B)



    My code



    documentclass[11pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage[margin=1in]{geometry}
    usepackage{tcolorbox}
    begin{document}
    begin{tcolorbox}[width=10cm]

    begin{enumerate}
    item
    ...........:........... ..............................................\
    ........................ hfill XXX
    %vspace*{1.5cm}
    item
    ...........:........... ..............................................\
    ........................ hfill XXX
    end{enumerate}
    end{tcolorbox}

    end{document}


    enter image description here
    Please help. Thanks










    share|improve this question



























      1












      1








      1








      i want to add line (A) and change distance between rows (B)



      My code



      documentclass[11pt,a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[margin=1in]{geometry}
      usepackage{tcolorbox}
      begin{document}
      begin{tcolorbox}[width=10cm]

      begin{enumerate}
      item
      ...........:........... ..............................................\
      ........................ hfill XXX
      %vspace*{1.5cm}
      item
      ...........:........... ..............................................\
      ........................ hfill XXX
      end{enumerate}
      end{tcolorbox}

      end{document}


      enter image description here
      Please help. Thanks










      share|improve this question
















      i want to add line (A) and change distance between rows (B)



      My code



      documentclass[11pt,a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[margin=1in]{geometry}
      usepackage{tcolorbox}
      begin{document}
      begin{tcolorbox}[width=10cm]

      begin{enumerate}
      item
      ...........:........... ..............................................\
      ........................ hfill XXX
      %vspace*{1.5cm}
      item
      ...........:........... ..............................................\
      ........................ hfill XXX
      end{enumerate}
      end{tcolorbox}

      end{document}


      enter image description here
      Please help. Thanks







      enumerate tcolorbox






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 at 14:14







      latexforti

















      asked Mar 20 at 14:08









      latexfortilatexforti

      4347




      4347






















          1 Answer
          1






          active

          oldest

          votes


















          1














          The enumitem package allows the simple specification of various list parameters, including (in this case) itemsep to set the vertical gap between items.



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]

          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{tcolorbox}

          end{document}


          enter image description here





          I can think of various interpretations for what the OP means by the "B" issue. Here is a possibility. In addition to using itemsep, the setspace package is employed to temporarily set the line spacing:



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem,setspace}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]
          begin{spacing}{2.5}
          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{spacing}
          end{tcolorbox}

          end{document}


          enter image description here






          share|improve this answer


























          • B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

            – latexforti
            Mar 20 at 14:16








          • 1





            @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

            – Steven B. Segletes
            Mar 20 at 14:22













          • (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

            – latexforti
            Mar 20 at 14:28








          • 1





            @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

            – Steven B. Segletes
            Mar 20 at 14:36












          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%2f480491%2fmodify-distance-of-enumerate-item-in-tcolorbox%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The enumitem package allows the simple specification of various list parameters, including (in this case) itemsep to set the vertical gap between items.



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]

          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{tcolorbox}

          end{document}


          enter image description here





          I can think of various interpretations for what the OP means by the "B" issue. Here is a possibility. In addition to using itemsep, the setspace package is employed to temporarily set the line spacing:



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem,setspace}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]
          begin{spacing}{2.5}
          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{spacing}
          end{tcolorbox}

          end{document}


          enter image description here






          share|improve this answer


























          • B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

            – latexforti
            Mar 20 at 14:16








          • 1





            @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

            – Steven B. Segletes
            Mar 20 at 14:22













          • (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

            – latexforti
            Mar 20 at 14:28








          • 1





            @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

            – Steven B. Segletes
            Mar 20 at 14:36
















          1














          The enumitem package allows the simple specification of various list parameters, including (in this case) itemsep to set the vertical gap between items.



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]

          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{tcolorbox}

          end{document}


          enter image description here





          I can think of various interpretations for what the OP means by the "B" issue. Here is a possibility. In addition to using itemsep, the setspace package is employed to temporarily set the line spacing:



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem,setspace}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]
          begin{spacing}{2.5}
          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{spacing}
          end{tcolorbox}

          end{document}


          enter image description here






          share|improve this answer


























          • B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

            – latexforti
            Mar 20 at 14:16








          • 1





            @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

            – Steven B. Segletes
            Mar 20 at 14:22













          • (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

            – latexforti
            Mar 20 at 14:28








          • 1





            @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

            – Steven B. Segletes
            Mar 20 at 14:36














          1












          1








          1







          The enumitem package allows the simple specification of various list parameters, including (in this case) itemsep to set the vertical gap between items.



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]

          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{tcolorbox}

          end{document}


          enter image description here





          I can think of various interpretations for what the OP means by the "B" issue. Here is a possibility. In addition to using itemsep, the setspace package is employed to temporarily set the line spacing:



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem,setspace}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]
          begin{spacing}{2.5}
          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{spacing}
          end{tcolorbox}

          end{document}


          enter image description here






          share|improve this answer















          The enumitem package allows the simple specification of various list parameters, including (in this case) itemsep to set the vertical gap between items.



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]

          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{tcolorbox}

          end{document}


          enter image description here





          I can think of various interpretations for what the OP means by the "B" issue. Here is a possibility. In addition to using itemsep, the setspace package is employed to temporarily set the line spacing:



          documentclass[11pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage[margin=1in]{geometry}
          usepackage{tcolorbox,enumitem,setspace}
          newcommandlinegap[1]{underline{hspace{#1}}}
          begin{document}
          begin{tcolorbox}[width=10cm]
          begin{spacing}{2.5}
          begin{enumerate}[itemsep=1.5cm,leftmargin=0pt,itemindent=.5in]
          item
          linegap{35pt}:linegap{35pt} linegap{135pt}\
          linegap{75pt} hfill A
          item
          ...........:........... ..............................................\
          ........................ hfill A
          end{enumerate}
          end{spacing}
          end{tcolorbox}

          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 20 at 14:36

























          answered Mar 20 at 14:11









          Steven B. SegletesSteven B. Segletes

          160k9204413




          160k9204413













          • B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

            – latexforti
            Mar 20 at 14:16








          • 1





            @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

            – Steven B. Segletes
            Mar 20 at 14:22













          • (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

            – latexforti
            Mar 20 at 14:28








          • 1





            @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

            – Steven B. Segletes
            Mar 20 at 14:36



















          • B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

            – latexforti
            Mar 20 at 14:16








          • 1





            @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

            – Steven B. Segletes
            Mar 20 at 14:22













          • (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

            – latexforti
            Mar 20 at 14:28








          • 1





            @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

            – Steven B. Segletes
            Mar 20 at 14:36

















          B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

          – latexforti
          Mar 20 at 14:16







          B.Segietes. Thank for your fast reply. Sorry, I uploading image slow and can you help to change A & B in my uploaded image.

          – latexforti
          Mar 20 at 14:16






          1




          1





          @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

          – Steven B. Segletes
          Mar 20 at 14:22







          @latexforti I have taken care of the "A" issue but with regard to vertical distance "B", is it between the 1st line and what follows? is it between every line? or is it between items?

          – Steven B. Segletes
          Mar 20 at 14:22















          (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

          – latexforti
          Mar 20 at 14:28







          (B-green) is between every line. I don't want to use (\) and tried added vspace*{0.3cm} but not but not effort. Thanks

          – latexforti
          Mar 20 at 14:28






          1




          1





          @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

          – Steven B. Segletes
          Mar 20 at 14:36





          @latexforti Please see my edit. I use the spacing environment to set temporarily the line spacing.

          – Steven B. Segletes
          Mar 20 at 14:36


















          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%2f480491%2fmodify-distance-of-enumerate-item-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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?