Extend breakable tcolorbox over footer on page break
I've defined a tcolorbox
environment thusly:
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
colback=Orange!15,
colframe=Orange!70,
colbacktitle=Orange!35,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={Orange!50,loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
When a page break occcurs, the box stops just under the last line of text and then continues on the next page. However, I'd like the box to continue past the last line of text to the very bottom of the page, past the footer even. Just the box, not the text, of course.
I know this wouldn't make sense aesthetically in most situations, but I promise in this case does. I have an image overlay as the footer so the box would "disappear" behind that image rather than stopping awkwardly just before it.
Can this be done?
EDIT: Image to show what I mean.
EDIT: Minimal working example:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
margins page-breaking tcolorbox
|
show 6 more comments
I've defined a tcolorbox
environment thusly:
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
colback=Orange!15,
colframe=Orange!70,
colbacktitle=Orange!35,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={Orange!50,loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
When a page break occcurs, the box stops just under the last line of text and then continues on the next page. However, I'd like the box to continue past the last line of text to the very bottom of the page, past the footer even. Just the box, not the text, of course.
I know this wouldn't make sense aesthetically in most situations, but I promise in this case does. I have an image overlay as the footer so the box would "disappear" behind that image rather than stopping awkwardly just before it.
Can this be done?
EDIT: Image to show what I mean.
EDIT: Minimal working example:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
margins page-breaking tcolorbox
2
It should be rather easy to extend the box. But the footer is the last thing drawn on a page, so it is always in the foreground. If it should get in the background you need to move its code into the header.
– Ulrike Fischer
Feb 3 at 11:10
You could place thetcolorbox
inside a node of a centeredtikz
graph in an overlay likebegin{center}begin{tikzpicture}node (Here) at (0,0);end{tikzpicture}begin{tikzpicture}[remember picture,overlay]node at (Here){begin{tcolorbox} ... end{tkolorbox}}end{tikzpicture}end{center}
– koleygr
Feb 3 at 11:39
@koleygr which would break completly the breakable option ...
– Ulrike Fischer
Feb 3 at 11:41
1
Well make a sensible minimal example.
– Ulrike Fischer
Feb 3 at 11:48
1
The point of an MWE is that we can use it for test. So it should compile for me (which it doesn't currently due to the pictures) and it shouldn't contain irrelevant stuff as this is distracting. Use your little gray cells ...
– Ulrike Fischer
Feb 3 at 12:33
|
show 6 more comments
I've defined a tcolorbox
environment thusly:
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
colback=Orange!15,
colframe=Orange!70,
colbacktitle=Orange!35,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={Orange!50,loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
When a page break occcurs, the box stops just under the last line of text and then continues on the next page. However, I'd like the box to continue past the last line of text to the very bottom of the page, past the footer even. Just the box, not the text, of course.
I know this wouldn't make sense aesthetically in most situations, but I promise in this case does. I have an image overlay as the footer so the box would "disappear" behind that image rather than stopping awkwardly just before it.
Can this be done?
EDIT: Image to show what I mean.
EDIT: Minimal working example:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
margins page-breaking tcolorbox
I've defined a tcolorbox
environment thusly:
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
colback=Orange!15,
colframe=Orange!70,
colbacktitle=Orange!35,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={Orange!50,loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
When a page break occcurs, the box stops just under the last line of text and then continues on the next page. However, I'd like the box to continue past the last line of text to the very bottom of the page, past the footer even. Just the box, not the text, of course.
I know this wouldn't make sense aesthetically in most situations, but I promise in this case does. I have an image overlay as the footer so the box would "disappear" behind that image rather than stopping awkwardly just before it.
Can this be done?
EDIT: Image to show what I mean.
EDIT: Minimal working example:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
margins page-breaking tcolorbox
margins page-breaking tcolorbox
edited Feb 3 at 12:44
Hercule Poirot
asked Feb 3 at 11:01
Hercule PoirotHercule Poirot
325
325
2
It should be rather easy to extend the box. But the footer is the last thing drawn on a page, so it is always in the foreground. If it should get in the background you need to move its code into the header.
– Ulrike Fischer
Feb 3 at 11:10
You could place thetcolorbox
inside a node of a centeredtikz
graph in an overlay likebegin{center}begin{tikzpicture}node (Here) at (0,0);end{tikzpicture}begin{tikzpicture}[remember picture,overlay]node at (Here){begin{tcolorbox} ... end{tkolorbox}}end{tikzpicture}end{center}
– koleygr
Feb 3 at 11:39
@koleygr which would break completly the breakable option ...
– Ulrike Fischer
Feb 3 at 11:41
1
Well make a sensible minimal example.
– Ulrike Fischer
Feb 3 at 11:48
1
The point of an MWE is that we can use it for test. So it should compile for me (which it doesn't currently due to the pictures) and it shouldn't contain irrelevant stuff as this is distracting. Use your little gray cells ...
– Ulrike Fischer
Feb 3 at 12:33
|
show 6 more comments
2
It should be rather easy to extend the box. But the footer is the last thing drawn on a page, so it is always in the foreground. If it should get in the background you need to move its code into the header.
– Ulrike Fischer
Feb 3 at 11:10
You could place thetcolorbox
inside a node of a centeredtikz
graph in an overlay likebegin{center}begin{tikzpicture}node (Here) at (0,0);end{tikzpicture}begin{tikzpicture}[remember picture,overlay]node at (Here){begin{tcolorbox} ... end{tkolorbox}}end{tikzpicture}end{center}
– koleygr
Feb 3 at 11:39
@koleygr which would break completly the breakable option ...
– Ulrike Fischer
Feb 3 at 11:41
1
Well make a sensible minimal example.
– Ulrike Fischer
Feb 3 at 11:48
1
The point of an MWE is that we can use it for test. So it should compile for me (which it doesn't currently due to the pictures) and it shouldn't contain irrelevant stuff as this is distracting. Use your little gray cells ...
– Ulrike Fischer
Feb 3 at 12:33
2
2
It should be rather easy to extend the box. But the footer is the last thing drawn on a page, so it is always in the foreground. If it should get in the background you need to move its code into the header.
– Ulrike Fischer
Feb 3 at 11:10
It should be rather easy to extend the box. But the footer is the last thing drawn on a page, so it is always in the foreground. If it should get in the background you need to move its code into the header.
– Ulrike Fischer
Feb 3 at 11:10
You could place the
tcolorbox
inside a node of a centered tikz
graph in an overlay like begin{center}begin{tikzpicture}node (Here) at (0,0);end{tikzpicture}begin{tikzpicture}[remember picture,overlay]node at (Here){begin{tcolorbox} ... end{tkolorbox}}end{tikzpicture}end{center}
– koleygr
Feb 3 at 11:39
You could place the
tcolorbox
inside a node of a centered tikz
graph in an overlay like begin{center}begin{tikzpicture}node (Here) at (0,0);end{tikzpicture}begin{tikzpicture}[remember picture,overlay]node at (Here){begin{tcolorbox} ... end{tkolorbox}}end{tikzpicture}end{center}
– koleygr
Feb 3 at 11:39
@koleygr which would break completly the breakable option ...
– Ulrike Fischer
Feb 3 at 11:41
@koleygr which would break completly the breakable option ...
– Ulrike Fischer
Feb 3 at 11:41
1
1
Well make a sensible minimal example.
– Ulrike Fischer
Feb 3 at 11:48
Well make a sensible minimal example.
– Ulrike Fischer
Feb 3 at 11:48
1
1
The point of an MWE is that we can use it for test. So it should compile for me (which it doesn't currently due to the pictures) and it shouldn't contain irrelevant stuff as this is distracting. Use your little gray cells ...
– Ulrike Fischer
Feb 3 at 12:33
The point of an MWE is that we can use it for test. So it should compile for me (which it doesn't currently due to the pictures) and it shouldn't contain irrelevant stuff as this is distracting. Use your little gray cells ...
– Ulrike Fischer
Feb 3 at 12:33
|
show 6 more comments
1 Answer
1
active
oldest
votes
You can use a combination of enlarge bottom at break by
and bottomsep at break
or pad before break
:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
enlarge bottom at break by=-3cm,
%pad before break=3cm,
bottomsep at break=3cm,
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
1
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
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%2f473160%2fextend-breakable-tcolorbox-over-footer-on-page-break%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 use a combination of enlarge bottom at break by
and bottomsep at break
or pad before break
:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
enlarge bottom at break by=-3cm,
%pad before break=3cm,
bottomsep at break=3cm,
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
1
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
add a comment |
You can use a combination of enlarge bottom at break by
and bottomsep at break
or pad before break
:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
enlarge bottom at break by=-3cm,
%pad before break=3cm,
bottomsep at break=3cm,
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
1
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
add a comment |
You can use a combination of enlarge bottom at break by
and bottomsep at break
or pad before break
:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
enlarge bottom at break by=-3cm,
%pad before break=3cm,
bottomsep at break=3cm,
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
You can use a combination of enlarge bottom at break by
and bottomsep at break
or pad before break
:
documentclass[11pt]{article}
usepackage{lipsum}
usepackage[most]{tcolorbox}
newtcolorbox{cajita}[1]{ boxrule=2pt,
breakable,
enhanced,
arc=3mm,
coltitle=black,
fonttitle={bfseries},
attach boxed title to top left={xshift=10pt,yshift*={-tcboxedtitleheight/2}},
boxed title style={parbox,boxrule=2pt,boxsep=1.5mm},
segmentation style={loosely dotted,line width=2pt},
beforeafter skip=topskip, title = {#1},
enlarge bottom at break by=-3cm,
%pad before break=3cm,
bottomsep at break=3cm,
parbox=false}{}
begin{document}
begin{cajita}{mybox}
lipsum
end{cajita}
end{document}
answered Feb 3 at 12:58
Ulrike FischerUlrike Fischer
192k8299682
192k8299682
1
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
add a comment |
1
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
1
1
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
Thanks a lot, that solved the problem beautifully!
– Hercule Poirot
Feb 3 at 13:10
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%2f473160%2fextend-breakable-tcolorbox-over-footer-on-page-break%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
It should be rather easy to extend the box. But the footer is the last thing drawn on a page, so it is always in the foreground. If it should get in the background you need to move its code into the header.
– Ulrike Fischer
Feb 3 at 11:10
You could place the
tcolorbox
inside a node of a centeredtikz
graph in an overlay likebegin{center}begin{tikzpicture}node (Here) at (0,0);end{tikzpicture}begin{tikzpicture}[remember picture,overlay]node at (Here){begin{tcolorbox} ... end{tkolorbox}}end{tikzpicture}end{center}
– koleygr
Feb 3 at 11:39
@koleygr which would break completly the breakable option ...
– Ulrike Fischer
Feb 3 at 11:41
1
Well make a sensible minimal example.
– Ulrike Fischer
Feb 3 at 11:48
1
The point of an MWE is that we can use it for test. So it should compile for me (which it doesn't currently due to the pictures) and it shouldn't contain irrelevant stuff as this is distracting. Use your little gray cells ...
– Ulrike Fischer
Feb 3 at 12:33