tcolorbox theorem numbering
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage{graphicx,float,hyperref}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage{tcolorbox}
tcbuselibrary{theorems}
newtcbtheorem{mytheo*}{}%
{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{title...}{}
text...
end{mytheo*}
end{document}
I am trying to make the theorem unnumbered, but I have not managed to figure out how to remove the number 1 and the colon that appear at the beginning of the theorem title. Does anyone know how to do this?
numbering theorems tcolorbox newtheorem
add a comment |
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage{graphicx,float,hyperref}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage{tcolorbox}
tcbuselibrary{theorems}
newtcbtheorem{mytheo*}{}%
{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{title...}{}
text...
end{mytheo*}
end{document}
I am trying to make the theorem unnumbered, but I have not managed to figure out how to remove the number 1 and the colon that appear at the beginning of the theorem title. Does anyone know how to do this?
numbering theorems tcolorbox newtheorem
add a comment |
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage{graphicx,float,hyperref}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage{tcolorbox}
tcbuselibrary{theorems}
newtcbtheorem{mytheo*}{}%
{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{title...}{}
text...
end{mytheo*}
end{document}
I am trying to make the theorem unnumbered, but I have not managed to figure out how to remove the number 1 and the colon that appear at the beginning of the theorem title. Does anyone know how to do this?
numbering theorems tcolorbox newtheorem
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage{graphicx,float,hyperref}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage{tcolorbox}
tcbuselibrary{theorems}
newtcbtheorem{mytheo*}{}%
{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{title...}{}
text...
end{mytheo*}
end{document}
I am trying to make the theorem unnumbered, but I have not managed to figure out how to remove the number 1 and the colon that appear at the beginning of the theorem title. Does anyone know how to do this?
numbering theorems tcolorbox newtheorem
numbering theorems tcolorbox newtheorem
edited Feb 17 '18 at 10:17
Christian Hupfer
151k15199396
151k15199396
asked Feb 14 '18 at 21:03
A. GoodierA. Goodier
1326
1326
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There is a misunderstanding by the OP what newtcbtheorem does actually:
newtcbtheorem{foo}{...}{...}{...} will actually define both the numbered theorem - like enviroment foo and foo*, so newtcbtheorem{foo*} will actually define foo* and foo**, leaving foo* being numbered however and foo** is the unnumbered version.
See page 340 of current tcolorbox manual for a description of this.
In addition, hyperref should be loaded as last package as almost always in 98% of all cases.
As a reply to the comment below by Bryan-M-H:
The unstarred version of the theorem has an additional mandatory argument that is meant for the label, see the changed example where the label is given as {foo}, which is extended to th:foo since the definition of the theorem has th as label prefix.
Related (but not duplicate) Counter for tcolorbox
Also related (no duplicate too): Problem with tcolorbox package
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage[most]{tcolorbox}
usepackage{graphicx,float}
usepackage{hyperref}
newtcbtheorem{mytheo}{My theorem}{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{}
text...
end{mytheo*}
See ref{th:foo}
begin{mytheo}{Foo}{foo}
text...
end{mytheo}
end{document}

I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
1
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use{}
– Christian Hupfer
Feb 17 '18 at 15:17
add a comment |
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
});
}
});
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%2f415369%2ftcolorbox-theorem-numbering%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
There is a misunderstanding by the OP what newtcbtheorem does actually:
newtcbtheorem{foo}{...}{...}{...} will actually define both the numbered theorem - like enviroment foo and foo*, so newtcbtheorem{foo*} will actually define foo* and foo**, leaving foo* being numbered however and foo** is the unnumbered version.
See page 340 of current tcolorbox manual for a description of this.
In addition, hyperref should be loaded as last package as almost always in 98% of all cases.
As a reply to the comment below by Bryan-M-H:
The unstarred version of the theorem has an additional mandatory argument that is meant for the label, see the changed example where the label is given as {foo}, which is extended to th:foo since the definition of the theorem has th as label prefix.
Related (but not duplicate) Counter for tcolorbox
Also related (no duplicate too): Problem with tcolorbox package
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage[most]{tcolorbox}
usepackage{graphicx,float}
usepackage{hyperref}
newtcbtheorem{mytheo}{My theorem}{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{}
text...
end{mytheo*}
See ref{th:foo}
begin{mytheo}{Foo}{foo}
text...
end{mytheo}
end{document}

I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
1
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use{}
– Christian Hupfer
Feb 17 '18 at 15:17
add a comment |
There is a misunderstanding by the OP what newtcbtheorem does actually:
newtcbtheorem{foo}{...}{...}{...} will actually define both the numbered theorem - like enviroment foo and foo*, so newtcbtheorem{foo*} will actually define foo* and foo**, leaving foo* being numbered however and foo** is the unnumbered version.
See page 340 of current tcolorbox manual for a description of this.
In addition, hyperref should be loaded as last package as almost always in 98% of all cases.
As a reply to the comment below by Bryan-M-H:
The unstarred version of the theorem has an additional mandatory argument that is meant for the label, see the changed example where the label is given as {foo}, which is extended to th:foo since the definition of the theorem has th as label prefix.
Related (but not duplicate) Counter for tcolorbox
Also related (no duplicate too): Problem with tcolorbox package
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage[most]{tcolorbox}
usepackage{graphicx,float}
usepackage{hyperref}
newtcbtheorem{mytheo}{My theorem}{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{}
text...
end{mytheo*}
See ref{th:foo}
begin{mytheo}{Foo}{foo}
text...
end{mytheo}
end{document}

I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
1
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use{}
– Christian Hupfer
Feb 17 '18 at 15:17
add a comment |
There is a misunderstanding by the OP what newtcbtheorem does actually:
newtcbtheorem{foo}{...}{...}{...} will actually define both the numbered theorem - like enviroment foo and foo*, so newtcbtheorem{foo*} will actually define foo* and foo**, leaving foo* being numbered however and foo** is the unnumbered version.
See page 340 of current tcolorbox manual for a description of this.
In addition, hyperref should be loaded as last package as almost always in 98% of all cases.
As a reply to the comment below by Bryan-M-H:
The unstarred version of the theorem has an additional mandatory argument that is meant for the label, see the changed example where the label is given as {foo}, which is extended to th:foo since the definition of the theorem has th as label prefix.
Related (but not duplicate) Counter for tcolorbox
Also related (no duplicate too): Problem with tcolorbox package
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage[most]{tcolorbox}
usepackage{graphicx,float}
usepackage{hyperref}
newtcbtheorem{mytheo}{My theorem}{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{}
text...
end{mytheo*}
See ref{th:foo}
begin{mytheo}{Foo}{foo}
text...
end{mytheo}
end{document}

There is a misunderstanding by the OP what newtcbtheorem does actually:
newtcbtheorem{foo}{...}{...}{...} will actually define both the numbered theorem - like enviroment foo and foo*, so newtcbtheorem{foo*} will actually define foo* and foo**, leaving foo* being numbered however and foo** is the unnumbered version.
See page 340 of current tcolorbox manual for a description of this.
In addition, hyperref should be loaded as last package as almost always in 98% of all cases.
As a reply to the comment below by Bryan-M-H:
The unstarred version of the theorem has an additional mandatory argument that is meant for the label, see the changed example where the label is given as {foo}, which is extended to th:foo since the definition of the theorem has th as label prefix.
Related (but not duplicate) Counter for tcolorbox
Also related (no duplicate too): Problem with tcolorbox package
documentclass{article}
usepackage{amsmath,amsthm,amssymb,parskip}
usepackage[margin=1in]{geometry}
usepackage{titling,multicol}
usepackage[most]{tcolorbox}
usepackage{graphicx,float}
usepackage{hyperref}
newtcbtheorem{mytheo}{My theorem}{colback=purple!5,colframe=blue!100!,fonttitle=bfseries}{th}
begin{document}
begin{mytheo*}{}
text...
end{mytheo*}
See ref{th:foo}
begin{mytheo}{Foo}{foo}
text...
end{mytheo}
end{document}

edited Feb 28 at 19:29
answered Feb 14 '18 at 21:43
Christian HupferChristian Hupfer
151k15199396
151k15199396
I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
1
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use{}
– Christian Hupfer
Feb 17 '18 at 15:17
add a comment |
I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
1
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use{}
– Christian Hupfer
Feb 17 '18 at 15:17
I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
I tried to use the unstarred version of this in the body of the document, but found that the first letter of my theorem text was eaten up. [The word "text" came out as "ext" in the pink box.] What do I need to change? begin{mytheo}{Fowler's Folly} text... end{mytheo}
– Bryan M-H
Feb 17 '18 at 14:25
1
1
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use
{}– Christian Hupfer
Feb 17 '18 at 15:17
@BryanM-H: See my extended answer: You forgot the 2nd mandatory argument that is meant for the label of the unstarred environment. If you don't need a label, use
{}– Christian Hupfer
Feb 17 '18 at 15:17
add a comment |
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.
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%2f415369%2ftcolorbox-theorem-numbering%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