Putting definitions in color boxesProblem with solution to ntheorem and bad boxes; involves newtheoremstyleIs...
Do I have a twin with permutated remainders?
Maximum likelihood parameters deviate from posterior distributions
How do I create uniquely male characters?
How to find program name(s) of an installed package?
Dragon forelimb placement
"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"
Adding span tags within wp_list_pages list items
Collect Fourier series terms
What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)
Have astronauts in space suits ever taken selfies? If so, how?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Writing rule stating superpower from different root cause is bad writing
How much RAM could one put in a typical 80386 setup?
Why was the small council so happy for Tyrion to become the Master of Coin?
Why does Kotter return in Welcome Back Kotter?
Can I ask the recruiters in my resume to put the reason why I am rejected?
TGV timetables / schedules?
Is it unprofessional to ask if a job posting on GlassDoor is real?
What would happen to a modern skyscraper if it rains micro blackholes?
Email Account under attack (really) - anything I can do?
can i play a electric guitar through a bass amp?
How to format long polynomial?
What's the output of a record cartridge playing an out-of-speed record
Is a tag line useful on a cover?
Putting definitions in color boxes
Problem with solution to ntheorem and bad boxes; involves newtheoremstyleIs it possible to reuse tcolorbox definitions in another tcolorbox definition?How to create theorem boxesPictures in boxes with rounded cornersHow to make box sizes consistent and “glue” boxes together (in beamer)?How can I put two colored boxes next to each other?tcolorbox: It is possible to put breakable boxes behind each other (overlap)?Keep font color in a breakable tcolorboxHow do you remove spacing from multiple beamer color boxes on the same line?Consecutive numbering and labels in tcolorbox
I've found a awesome document (doing some research in Model Theory).
I would like to know how I can do those color boxes for definitions, theorems and other stuff. Thanks a lot!
math-mode tcolorbox colorbox
add a comment |
I've found a awesome document (doing some research in Model Theory).
I would like to know how I can do those color boxes for definitions, theorems and other stuff. Thanks a lot!
math-mode tcolorbox colorbox
2
Have a look at thetcolorbox
manual, it is very informative
– BambOo
Sep 6 '18 at 17:14
I'm not so sure about the choice of colours... :)
– Andrew
Sep 7 '18 at 5:54
add a comment |
I've found a awesome document (doing some research in Model Theory).
I would like to know how I can do those color boxes for definitions, theorems and other stuff. Thanks a lot!
math-mode tcolorbox colorbox
I've found a awesome document (doing some research in Model Theory).
I would like to know how I can do those color boxes for definitions, theorems and other stuff. Thanks a lot!
math-mode tcolorbox colorbox
math-mode tcolorbox colorbox
asked Sep 6 '18 at 16:48
Alexei0709Alexei0709
1402
1402
2
Have a look at thetcolorbox
manual, it is very informative
– BambOo
Sep 6 '18 at 17:14
I'm not so sure about the choice of colours... :)
– Andrew
Sep 7 '18 at 5:54
add a comment |
2
Have a look at thetcolorbox
manual, it is very informative
– BambOo
Sep 6 '18 at 17:14
I'm not so sure about the choice of colours... :)
– Andrew
Sep 7 '18 at 5:54
2
2
Have a look at the
tcolorbox
manual, it is very informative– BambOo
Sep 6 '18 at 17:14
Have a look at the
tcolorbox
manual, it is very informative– BambOo
Sep 6 '18 at 17:14
I'm not so sure about the choice of colours... :)
– Andrew
Sep 7 '18 at 5:54
I'm not so sure about the choice of colours... :)
– Andrew
Sep 7 '18 at 5:54
add a comment |
1 Answer
1
active
oldest
votes
You can do like this
documentclass[border=5mm]{standalone}
usepackage[most]{tcolorbox}
newtcolorbox{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2,#1}
begin{document}
begin{myBox}[]{content}{Some}
content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
UPDATE: sequence number to the definition
documentclass{article}
usepackage[most]{tcolorbox}
newtcolorbox[auto counter,number within=subsection]{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2 thetcbcounter,#1}
begin{document}
section{section title}
subsection{subsection title}
begin{myBox}[]{Content}{Some}
Content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
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%2f449735%2fputting-definitions-in-color-boxes%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
You can do like this
documentclass[border=5mm]{standalone}
usepackage[most]{tcolorbox}
newtcolorbox{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2,#1}
begin{document}
begin{myBox}[]{content}{Some}
content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
UPDATE: sequence number to the definition
documentclass{article}
usepackage[most]{tcolorbox}
newtcolorbox[auto counter,number within=subsection]{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2 thetcbcounter,#1}
begin{document}
section{section title}
subsection{subsection title}
begin{myBox}[]{Content}{Some}
Content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
add a comment |
You can do like this
documentclass[border=5mm]{standalone}
usepackage[most]{tcolorbox}
newtcolorbox{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2,#1}
begin{document}
begin{myBox}[]{content}{Some}
content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
UPDATE: sequence number to the definition
documentclass{article}
usepackage[most]{tcolorbox}
newtcolorbox[auto counter,number within=subsection]{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2 thetcbcounter,#1}
begin{document}
section{section title}
subsection{subsection title}
begin{myBox}[]{Content}{Some}
Content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
add a comment |
You can do like this
documentclass[border=5mm]{standalone}
usepackage[most]{tcolorbox}
newtcolorbox{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2,#1}
begin{document}
begin{myBox}[]{content}{Some}
content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
UPDATE: sequence number to the definition
documentclass{article}
usepackage[most]{tcolorbox}
newtcolorbox[auto counter,number within=subsection]{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2 thetcbcounter,#1}
begin{document}
section{section title}
subsection{subsection title}
begin{myBox}[]{Content}{Some}
Content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
You can do like this
documentclass[border=5mm]{standalone}
usepackage[most]{tcolorbox}
newtcolorbox{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2,#1}
begin{document}
begin{myBox}[]{content}{Some}
content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
UPDATE: sequence number to the definition
documentclass{article}
usepackage[most]{tcolorbox}
newtcolorbox[auto counter,number within=subsection]{myBox}[3][]{
arc=5mm,
lower separated=false,
fonttitle=bfseries,
colbacktitle=green!10,
coltitle=green!50!black,
enhanced,
attach boxed title to top left={xshift=0.5cm,
yshift=-2mm},
colframe=green!50!black,
colback=green!10,
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
overlay={
node[draw=green!50!black,thick,
%inner sep=2mm,
fill= green!10,rounded corners=1mm,
yshift=0pt,
xshift=-0.5cm,
left,
text=green!50!black,
anchor=east,
font=bfseries]
at (frame.north east) {#3};},
title=#2 thetcbcounter,#1}
begin{document}
section{section title}
subsection{subsection title}
begin{myBox}[]{Content}{Some}
Content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text content text
end{myBox}
end{document}
edited 10 hours ago
answered 12 hours ago
sandusandu
3,72342856
3,72342856
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
add a comment |
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
Could you add a sequence number to the defintion and a label to refer back to the definition?
– pzorba75
12 hours ago
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%2f449735%2fputting-definitions-in-color-boxes%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
2
Have a look at the
tcolorbox
manual, it is very informative– BambOo
Sep 6 '18 at 17:14
I'm not so sure about the choice of colours... :)
– Andrew
Sep 7 '18 at 5:54