Error in tcolorbox Missing endcsname inserted











up vote
0
down vote

favorite












I am trying to a fancy theorem type for my notes. I like tcolorbox examples. But the one that I like most is giving me an error.



    Missing endcsname inserted.


This one is on page 360 of the tcolorbox manual. I do not understand why I am getting this error and how to fix. There was a similar question



https://tex.stackexchange.com/questions/174017/compile-error-missing-endcsname-inserted-with-code-and-tcolorbox


But it did not solve my problem. The result should be like this
enter image description here



I have added the code below. Please help me.



    documentclass[11pt]{article}
usepackage{varioref}
usepackage{cleveref}
tcbuselibrary{skins}

newtcbtheorem[use counter from=Definition]{YetAnotherTheorem}{Theorem}%
{theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
title style={top color=yellow!50!white,bottom color=red!5!white,
middle color=yellow!50!white},
fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
}{theo}


begin{document}
begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
$fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
$[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
begin{equation*}
f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
end{equation*}
end{YetAnotherTheorem}

end{document}









share|improve this question






















  • One obvious point: you're not even loading tcolorbox.
    – marmot
    11 mins ago










  • @marmot I am actually loading tcolorbox package I just forgot to put it here
    – Kumarm
    28 secs ago















up vote
0
down vote

favorite












I am trying to a fancy theorem type for my notes. I like tcolorbox examples. But the one that I like most is giving me an error.



    Missing endcsname inserted.


This one is on page 360 of the tcolorbox manual. I do not understand why I am getting this error and how to fix. There was a similar question



https://tex.stackexchange.com/questions/174017/compile-error-missing-endcsname-inserted-with-code-and-tcolorbox


But it did not solve my problem. The result should be like this
enter image description here



I have added the code below. Please help me.



    documentclass[11pt]{article}
usepackage{varioref}
usepackage{cleveref}
tcbuselibrary{skins}

newtcbtheorem[use counter from=Definition]{YetAnotherTheorem}{Theorem}%
{theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
title style={top color=yellow!50!white,bottom color=red!5!white,
middle color=yellow!50!white},
fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
}{theo}


begin{document}
begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
$fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
$[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
begin{equation*}
f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
end{equation*}
end{YetAnotherTheorem}

end{document}









share|improve this question






















  • One obvious point: you're not even loading tcolorbox.
    – marmot
    11 mins ago










  • @marmot I am actually loading tcolorbox package I just forgot to put it here
    – Kumarm
    28 secs ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to a fancy theorem type for my notes. I like tcolorbox examples. But the one that I like most is giving me an error.



    Missing endcsname inserted.


This one is on page 360 of the tcolorbox manual. I do not understand why I am getting this error and how to fix. There was a similar question



https://tex.stackexchange.com/questions/174017/compile-error-missing-endcsname-inserted-with-code-and-tcolorbox


But it did not solve my problem. The result should be like this
enter image description here



I have added the code below. Please help me.



    documentclass[11pt]{article}
usepackage{varioref}
usepackage{cleveref}
tcbuselibrary{skins}

newtcbtheorem[use counter from=Definition]{YetAnotherTheorem}{Theorem}%
{theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
title style={top color=yellow!50!white,bottom color=red!5!white,
middle color=yellow!50!white},
fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
}{theo}


begin{document}
begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
$fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
$[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
begin{equation*}
f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
end{equation*}
end{YetAnotherTheorem}

end{document}









share|improve this question













I am trying to a fancy theorem type for my notes. I like tcolorbox examples. But the one that I like most is giving me an error.



    Missing endcsname inserted.


This one is on page 360 of the tcolorbox manual. I do not understand why I am getting this error and how to fix. There was a similar question



https://tex.stackexchange.com/questions/174017/compile-error-missing-endcsname-inserted-with-code-and-tcolorbox


But it did not solve my problem. The result should be like this
enter image description here



I have added the code below. Please help me.



    documentclass[11pt]{article}
usepackage{varioref}
usepackage{cleveref}
tcbuselibrary{skins}

newtcbtheorem[use counter from=Definition]{YetAnotherTheorem}{Theorem}%
{theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
title style={top color=yellow!50!white,bottom color=red!5!white,
middle color=yellow!50!white},
fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
}{theo}


begin{document}
begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
$fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
$[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
begin{equation*}
f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
end{equation*}
end{YetAnotherTheorem}

end{document}






tcolorbox






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 22 mins ago









Kumarm

22619




22619












  • One obvious point: you're not even loading tcolorbox.
    – marmot
    11 mins ago










  • @marmot I am actually loading tcolorbox package I just forgot to put it here
    – Kumarm
    28 secs ago


















  • One obvious point: you're not even loading tcolorbox.
    – marmot
    11 mins ago










  • @marmot I am actually loading tcolorbox package I just forgot to put it here
    – Kumarm
    28 secs ago
















One obvious point: you're not even loading tcolorbox.
– marmot
11 mins ago




One obvious point: you're not even loading tcolorbox.
– marmot
11 mins ago












@marmot I am actually loading tcolorbox package I just forgot to put it here
– Kumarm
28 secs ago




@marmot I am actually loading tcolorbox package I just forgot to put it here
– Kumarm
28 secs ago










1 Answer
1






active

oldest

votes

















up vote
1
down vote













This is too long for a comment. You have several issues:




  • you are not loading tcolorbox package

  • you need to add tcbuselibrary{theorems}

  • you have not defined mathbb

  • the use counter from=Definition does not work because you have not defined a definition environment. I am guessing that this is OK in your real document but below I replace this with number within=section.


The following code compiles and perhaps does what you want:



documentclass[11pt]{article}
usepackage{amssymb}
usepackage{varioref}
usepackage{tcolorbox}
tcbuselibrary{skins,theorems}
usepackage{cleveref}

newtcbtheorem[number within=section]{YetAnotherTheorem}{Theorem}%
{theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
title style={top color=yellow!50!white,bottom color=red!5!white,
middle color=yellow!50!white},
fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
}{theo}

begin{document}

begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
$fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
$[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
begin{equation*}
f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
end{equation*}
end{YetAnotherTheorem}

end{document}


The output is:



enter image description here





share





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461931%2ferror-in-tcolorbox-missing-endcsname-inserted%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    This is too long for a comment. You have several issues:




    • you are not loading tcolorbox package

    • you need to add tcbuselibrary{theorems}

    • you have not defined mathbb

    • the use counter from=Definition does not work because you have not defined a definition environment. I am guessing that this is OK in your real document but below I replace this with number within=section.


    The following code compiles and perhaps does what you want:



    documentclass[11pt]{article}
    usepackage{amssymb}
    usepackage{varioref}
    usepackage{tcolorbox}
    tcbuselibrary{skins,theorems}
    usepackage{cleveref}

    newtcbtheorem[number within=section]{YetAnotherTheorem}{Theorem}%
    {theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
    boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
    titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
    colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
    title style={top color=yellow!50!white,bottom color=red!5!white,
    middle color=yellow!50!white},
    fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
    }{theo}

    begin{document}

    begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
    $fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
    $[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
    begin{equation*}
    f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
    end{equation*}
    end{YetAnotherTheorem}

    end{document}


    The output is:



    enter image description here





    share

























      up vote
      1
      down vote













      This is too long for a comment. You have several issues:




      • you are not loading tcolorbox package

      • you need to add tcbuselibrary{theorems}

      • you have not defined mathbb

      • the use counter from=Definition does not work because you have not defined a definition environment. I am guessing that this is OK in your real document but below I replace this with number within=section.


      The following code compiles and perhaps does what you want:



      documentclass[11pt]{article}
      usepackage{amssymb}
      usepackage{varioref}
      usepackage{tcolorbox}
      tcbuselibrary{skins,theorems}
      usepackage{cleveref}

      newtcbtheorem[number within=section]{YetAnotherTheorem}{Theorem}%
      {theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
      boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
      titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
      colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
      title style={top color=yellow!50!white,bottom color=red!5!white,
      middle color=yellow!50!white},
      fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
      }{theo}

      begin{document}

      begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
      $fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
      $[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
      begin{equation*}
      f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
      end{equation*}
      end{YetAnotherTheorem}

      end{document}


      The output is:



      enter image description here





      share























        up vote
        1
        down vote










        up vote
        1
        down vote









        This is too long for a comment. You have several issues:




        • you are not loading tcolorbox package

        • you need to add tcbuselibrary{theorems}

        • you have not defined mathbb

        • the use counter from=Definition does not work because you have not defined a definition environment. I am guessing that this is OK in your real document but below I replace this with number within=section.


        The following code compiles and perhaps does what you want:



        documentclass[11pt]{article}
        usepackage{amssymb}
        usepackage{varioref}
        usepackage{tcolorbox}
        tcbuselibrary{skins,theorems}
        usepackage{cleveref}

        newtcbtheorem[number within=section]{YetAnotherTheorem}{Theorem}%
        {theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
        boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
        titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
        colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
        title style={top color=yellow!50!white,bottom color=red!5!white,
        middle color=yellow!50!white},
        fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
        }{theo}

        begin{document}

        begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
        $fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
        $[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
        begin{equation*}
        f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
        end{equation*}
        end{YetAnotherTheorem}

        end{document}


        The output is:



        enter image description here





        share












        This is too long for a comment. You have several issues:




        • you are not loading tcolorbox package

        • you need to add tcbuselibrary{theorems}

        • you have not defined mathbb

        • the use counter from=Definition does not work because you have not defined a definition environment. I am guessing that this is OK in your real document but below I replace this with number within=section.


        The following code compiles and perhaps does what you want:



        documentclass[11pt]{article}
        usepackage{amssymb}
        usepackage{varioref}
        usepackage{tcolorbox}
        tcbuselibrary{skins,theorems}
        usepackage{cleveref}

        newtcbtheorem[number within=section]{YetAnotherTheorem}{Theorem}%
        {theorem style=change apart,enhanced,arc=0mm,outer arc=0mm,
        boxrule=0mm,toprule=1mm,bottomrule=1mm,left=1mm,right=1mm,
        titlerule=0mm,toptitle=0mm,bottomtitle=1mm,top=0mm,
        colframe=red!50!black,colback=red!5!white,coltitle=red!50!black,
        title style={top color=yellow!50!white,bottom color=red!5!white,
        middle color=yellow!50!white},
        fonttitle=bfseriessffamilynormalsize,fontupper=normalsizeitshape,
        }{theo}

        begin{document}

        begin{YetAnotherTheorem}{Mittelwertsatz f"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $ninmathbb{N}$, $Dsubseteqmathbb{R}^n$ eine offene Menge und
        $fin C^{1}(D,mathbb{R})$. Dann gibt es auf jeder Strecke
        $[x_0,x]subset D$ einen Punkt $xiin[x_0,x]$, so dass gilt
        begin{equation*}
        f(x)-f(x_0) = operatorname{grad} f(xi)^{top}(x-x_0)
        end{equation*}
        end{YetAnotherTheorem}

        end{document}


        The output is:



        enter image description here






        share











        share


        share










        answered 8 mins ago









        Andrew

        29.4k34178




        29.4k34178






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461931%2ferror-in-tcolorbox-missing-endcsname-inserted%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

            Lallio

            Futebolista

            Jornalista