Why can't I put a comma in a newtcolorbox

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











up vote
2
down vote

favorite












When I try to put a "," in the mybox environment, I get the error:



! Package pgfkeys Error: I do not know the key '/tcb/FM and PM and Narrowband F
M' and I am going to ignore it. Perhaps you misspelled it.



Is there a way to put a comma "," in the tcolorbox header so that my header appears as: Angle, FM, and PM and Narrowband FM? Thanks



CODE



documentclassarticle
usepackage[landscape]geometry
usepackage[table]xcolor
usepackagemathtools
usepackagemulticol
usepackageamssymb,amsthm
usepackagelipsum
usepackageminibox
usepackage[most]tcolorbox

advancetopmargin-1in
advancetextheight3in
advancetextwidth3in
advanceoddsidemargin-1.5in
advanceevensidemargin-1.5in
parindent0pt
parskip2pt
newcommandhrcenterlinerule3.5in1pt

begindocument

beginmulticols*3

newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
attach boxed title to top left=yshift=-2mm,xshift=3mm,
boxed title style=sharp corners,top=3pt,bottom=2pt,
title=#2,colback=white

%%------------ Angle, FM and PM and Narrowband FM ---------------
hspace-0.2cm
beginminipage0.31textwidth
beginmyboxAngle FM and PM and Narrowband FM

lipsum[2]

endmybox
endminipage

endmulticols*
enddocument









share|improve this question

























    up vote
    2
    down vote

    favorite












    When I try to put a "," in the mybox environment, I get the error:



    ! Package pgfkeys Error: I do not know the key '/tcb/FM and PM and Narrowband F
    M' and I am going to ignore it. Perhaps you misspelled it.



    Is there a way to put a comma "," in the tcolorbox header so that my header appears as: Angle, FM, and PM and Narrowband FM? Thanks



    CODE



    documentclassarticle
    usepackage[landscape]geometry
    usepackage[table]xcolor
    usepackagemathtools
    usepackagemulticol
    usepackageamssymb,amsthm
    usepackagelipsum
    usepackageminibox
    usepackage[most]tcolorbox

    advancetopmargin-1in
    advancetextheight3in
    advancetextwidth3in
    advanceoddsidemargin-1.5in
    advanceevensidemargin-1.5in
    parindent0pt
    parskip2pt
    newcommandhrcenterlinerule3.5in1pt

    begindocument

    beginmulticols*3

    newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
    fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
    attach boxed title to top left=yshift=-2mm,xshift=3mm,
    boxed title style=sharp corners,top=3pt,bottom=2pt,
    title=#2,colback=white

    %%------------ Angle, FM and PM and Narrowband FM ---------------
    hspace-0.2cm
    beginminipage0.31textwidth
    beginmyboxAngle FM and PM and Narrowband FM

    lipsum[2]

    endmybox
    endminipage

    endmulticols*
    enddocument









    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      When I try to put a "," in the mybox environment, I get the error:



      ! Package pgfkeys Error: I do not know the key '/tcb/FM and PM and Narrowband F
      M' and I am going to ignore it. Perhaps you misspelled it.



      Is there a way to put a comma "," in the tcolorbox header so that my header appears as: Angle, FM, and PM and Narrowband FM? Thanks



      CODE



      documentclassarticle
      usepackage[landscape]geometry
      usepackage[table]xcolor
      usepackagemathtools
      usepackagemulticol
      usepackageamssymb,amsthm
      usepackagelipsum
      usepackageminibox
      usepackage[most]tcolorbox

      advancetopmargin-1in
      advancetextheight3in
      advancetextwidth3in
      advanceoddsidemargin-1.5in
      advanceevensidemargin-1.5in
      parindent0pt
      parskip2pt
      newcommandhrcenterlinerule3.5in1pt

      begindocument

      beginmulticols*3

      newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
      fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
      attach boxed title to top left=yshift=-2mm,xshift=3mm,
      boxed title style=sharp corners,top=3pt,bottom=2pt,
      title=#2,colback=white

      %%------------ Angle, FM and PM and Narrowband FM ---------------
      hspace-0.2cm
      beginminipage0.31textwidth
      beginmyboxAngle FM and PM and Narrowband FM

      lipsum[2]

      endmybox
      endminipage

      endmulticols*
      enddocument









      share|improve this question













      When I try to put a "," in the mybox environment, I get the error:



      ! Package pgfkeys Error: I do not know the key '/tcb/FM and PM and Narrowband F
      M' and I am going to ignore it. Perhaps you misspelled it.



      Is there a way to put a comma "," in the tcolorbox header so that my header appears as: Angle, FM, and PM and Narrowband FM? Thanks



      CODE



      documentclassarticle
      usepackage[landscape]geometry
      usepackage[table]xcolor
      usepackagemathtools
      usepackagemulticol
      usepackageamssymb,amsthm
      usepackagelipsum
      usepackageminibox
      usepackage[most]tcolorbox

      advancetopmargin-1in
      advancetextheight3in
      advancetextwidth3in
      advanceoddsidemargin-1.5in
      advanceevensidemargin-1.5in
      parindent0pt
      parskip2pt
      newcommandhrcenterlinerule3.5in1pt

      begindocument

      beginmulticols*3

      newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
      fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
      attach boxed title to top left=yshift=-2mm,xshift=3mm,
      boxed title style=sharp corners,top=3pt,bottom=2pt,
      title=#2,colback=white

      %%------------ Angle, FM and PM and Narrowband FM ---------------
      hspace-0.2cm
      beginminipage0.31textwidth
      beginmyboxAngle FM and PM and Narrowband FM

      lipsum[2]

      endmybox
      endminipage

      endmulticols*
      enddocument






      tcolorbox






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Joe

      3,41631847




      3,41631847




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          Just put the title with the comma into two more , otherwise, I think tcolorbox thinks there is another parameter.



          documentclassarticle
          usepackage[landscape]geometry
          usepackage[table]xcolor
          usepackagemathtools
          usepackagemulticol
          usepackageamssymb,amsthm
          usepackagelipsum
          usepackageminibox
          usepackage[most]tcolorbox

          advancetopmargin-1in
          advancetextheight3in
          advancetextwidth3in
          advanceoddsidemargin-1.5in
          advanceevensidemargin-1.5in
          parindent0pt
          parskip2pt
          newcommandhrcenterlinerule3.5in1pt

          begindocument

          beginmulticols*3

          newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
          fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
          attach boxed title to top left=yshift=-2mm,xshift=3mm,
          boxed title style=sharp corners,top=3pt,bottom=2pt,
          title=#2,colback=white

          %%------------ Angle, FM and PM and Narrowband FM ---------------
          hspace-0.2cm
          beginminipage0.31textwidth
          beginmyboxAngle, FM and PM and Narrowband FM

          lipsum[2]

          endmybox
          endminipage

          endmulticols*
          enddocument


          enter image description here






          share|improve this answer



























            up vote
            3
            down vote













            Brace the value for title:



            newtcolorboxmybox[2]
            text width=0.97textwidth,
            fontupper=scriptsize,
            fonttitle=bfseriessffamilyscriptsize,
            colbacktitle=black,
            enhanced,
            attach boxed title to top left=yshift=-2mm,xshift=3mm,
            boxed title style=sharp corners,
            top=3pt,
            bottom=2pt,
            title=#2,% <------ Braces!
            colback=white






            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: "",
              imageUploader:
              brandingHtml: "",
              contentPolicyHtml: "",
              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%2f457667%2fwhy-cant-i-put-a-comma-in-a-newtcolorbox%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              4
              down vote



              accepted










              Just put the title with the comma into two more , otherwise, I think tcolorbox thinks there is another parameter.



              documentclassarticle
              usepackage[landscape]geometry
              usepackage[table]xcolor
              usepackagemathtools
              usepackagemulticol
              usepackageamssymb,amsthm
              usepackagelipsum
              usepackageminibox
              usepackage[most]tcolorbox

              advancetopmargin-1in
              advancetextheight3in
              advancetextwidth3in
              advanceoddsidemargin-1.5in
              advanceevensidemargin-1.5in
              parindent0pt
              parskip2pt
              newcommandhrcenterlinerule3.5in1pt

              begindocument

              beginmulticols*3

              newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
              fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
              attach boxed title to top left=yshift=-2mm,xshift=3mm,
              boxed title style=sharp corners,top=3pt,bottom=2pt,
              title=#2,colback=white

              %%------------ Angle, FM and PM and Narrowband FM ---------------
              hspace-0.2cm
              beginminipage0.31textwidth
              beginmyboxAngle, FM and PM and Narrowband FM

              lipsum[2]

              endmybox
              endminipage

              endmulticols*
              enddocument


              enter image description here






              share|improve this answer
























                up vote
                4
                down vote



                accepted










                Just put the title with the comma into two more , otherwise, I think tcolorbox thinks there is another parameter.



                documentclassarticle
                usepackage[landscape]geometry
                usepackage[table]xcolor
                usepackagemathtools
                usepackagemulticol
                usepackageamssymb,amsthm
                usepackagelipsum
                usepackageminibox
                usepackage[most]tcolorbox

                advancetopmargin-1in
                advancetextheight3in
                advancetextwidth3in
                advanceoddsidemargin-1.5in
                advanceevensidemargin-1.5in
                parindent0pt
                parskip2pt
                newcommandhrcenterlinerule3.5in1pt

                begindocument

                beginmulticols*3

                newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
                fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
                attach boxed title to top left=yshift=-2mm,xshift=3mm,
                boxed title style=sharp corners,top=3pt,bottom=2pt,
                title=#2,colback=white

                %%------------ Angle, FM and PM and Narrowband FM ---------------
                hspace-0.2cm
                beginminipage0.31textwidth
                beginmyboxAngle, FM and PM and Narrowband FM

                lipsum[2]

                endmybox
                endminipage

                endmulticols*
                enddocument


                enter image description here






                share|improve this answer






















                  up vote
                  4
                  down vote



                  accepted







                  up vote
                  4
                  down vote



                  accepted






                  Just put the title with the comma into two more , otherwise, I think tcolorbox thinks there is another parameter.



                  documentclassarticle
                  usepackage[landscape]geometry
                  usepackage[table]xcolor
                  usepackagemathtools
                  usepackagemulticol
                  usepackageamssymb,amsthm
                  usepackagelipsum
                  usepackageminibox
                  usepackage[most]tcolorbox

                  advancetopmargin-1in
                  advancetextheight3in
                  advancetextwidth3in
                  advanceoddsidemargin-1.5in
                  advanceevensidemargin-1.5in
                  parindent0pt
                  parskip2pt
                  newcommandhrcenterlinerule3.5in1pt

                  begindocument

                  beginmulticols*3

                  newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
                  fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
                  attach boxed title to top left=yshift=-2mm,xshift=3mm,
                  boxed title style=sharp corners,top=3pt,bottom=2pt,
                  title=#2,colback=white

                  %%------------ Angle, FM and PM and Narrowband FM ---------------
                  hspace-0.2cm
                  beginminipage0.31textwidth
                  beginmyboxAngle, FM and PM and Narrowband FM

                  lipsum[2]

                  endmybox
                  endminipage

                  endmulticols*
                  enddocument


                  enter image description here






                  share|improve this answer












                  Just put the title with the comma into two more , otherwise, I think tcolorbox thinks there is another parameter.



                  documentclassarticle
                  usepackage[landscape]geometry
                  usepackage[table]xcolor
                  usepackagemathtools
                  usepackagemulticol
                  usepackageamssymb,amsthm
                  usepackagelipsum
                  usepackageminibox
                  usepackage[most]tcolorbox

                  advancetopmargin-1in
                  advancetextheight3in
                  advancetextwidth3in
                  advanceoddsidemargin-1.5in
                  advanceevensidemargin-1.5in
                  parindent0pt
                  parskip2pt
                  newcommandhrcenterlinerule3.5in1pt

                  begindocument

                  beginmulticols*3

                  newtcolorboxmybox[2]text width=0.97textwidth,fontupper=scriptsize,
                  fonttitle=bfseriessffamilyscriptsize, colbacktitle=black,enhanced,
                  attach boxed title to top left=yshift=-2mm,xshift=3mm,
                  boxed title style=sharp corners,top=3pt,bottom=2pt,
                  title=#2,colback=white

                  %%------------ Angle, FM and PM and Narrowband FM ---------------
                  hspace-0.2cm
                  beginminipage0.31textwidth
                  beginmyboxAngle, FM and PM and Narrowband FM

                  lipsum[2]

                  endmybox
                  endminipage

                  endmulticols*
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 1 hour ago









                  CarLaTeX

                  26.6k444117




                  26.6k444117




















                      up vote
                      3
                      down vote













                      Brace the value for title:



                      newtcolorboxmybox[2]
                      text width=0.97textwidth,
                      fontupper=scriptsize,
                      fonttitle=bfseriessffamilyscriptsize,
                      colbacktitle=black,
                      enhanced,
                      attach boxed title to top left=yshift=-2mm,xshift=3mm,
                      boxed title style=sharp corners,
                      top=3pt,
                      bottom=2pt,
                      title=#2,% <------ Braces!
                      colback=white






                      share|improve this answer
























                        up vote
                        3
                        down vote













                        Brace the value for title:



                        newtcolorboxmybox[2]
                        text width=0.97textwidth,
                        fontupper=scriptsize,
                        fonttitle=bfseriessffamilyscriptsize,
                        colbacktitle=black,
                        enhanced,
                        attach boxed title to top left=yshift=-2mm,xshift=3mm,
                        boxed title style=sharp corners,
                        top=3pt,
                        bottom=2pt,
                        title=#2,% <------ Braces!
                        colback=white






                        share|improve this answer






















                          up vote
                          3
                          down vote










                          up vote
                          3
                          down vote









                          Brace the value for title:



                          newtcolorboxmybox[2]
                          text width=0.97textwidth,
                          fontupper=scriptsize,
                          fonttitle=bfseriessffamilyscriptsize,
                          colbacktitle=black,
                          enhanced,
                          attach boxed title to top left=yshift=-2mm,xshift=3mm,
                          boxed title style=sharp corners,
                          top=3pt,
                          bottom=2pt,
                          title=#2,% <------ Braces!
                          colback=white






                          share|improve this answer












                          Brace the value for title:



                          newtcolorboxmybox[2]
                          text width=0.97textwidth,
                          fontupper=scriptsize,
                          fonttitle=bfseriessffamilyscriptsize,
                          colbacktitle=black,
                          enhanced,
                          attach boxed title to top left=yshift=-2mm,xshift=3mm,
                          boxed title style=sharp corners,
                          top=3pt,
                          bottom=2pt,
                          title=#2,% <------ Braces!
                          colback=white







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 13 mins ago









                          egreg

                          693k8518443096




                          693k8518443096



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457667%2fwhy-cant-i-put-a-comma-in-a-newtcolorbox%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              List of Gilmore Girls characters

                              One-line joke