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

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
add a comment |
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

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
One obvious point: you're not even loadingtcolorbox.
– marmot
11 mins ago
@marmot I am actually loading tcolorbox package I just forgot to put it here
– Kumarm
28 secs ago
add a comment |
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

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
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

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
tcolorbox
asked 22 mins ago
Kumarm
22619
22619
One obvious point: you're not even loadingtcolorbox.
– marmot
11 mins ago
@marmot I am actually loading tcolorbox package I just forgot to put it here
– Kumarm
28 secs ago
add a comment |
One obvious point: you're not even loadingtcolorbox.
– 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
add a comment |
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=Definitiondoes 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 withnumber 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:

add a comment |
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=Definitiondoes 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 withnumber 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:

add a comment |
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=Definitiondoes 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 withnumber 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:

add a comment |
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=Definitiondoes 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 withnumber 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:

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=Definitiondoes 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 withnumber 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:

answered 8 mins ago
Andrew
29.4k34178
29.4k34178
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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