How to put a frame around the footer section, with text sitting at the bottom center?
up vote
4
down vote
favorite
I'm trying to put draw lines around the footer area and put some text at the center bottom of the area. I've been trying variations of the below for a while now:
showframe
defineframed[FooterSection]
[
width=makeupwidth,
height=broad,
location=bottom,
frame=on,
rulethickness=3pt
]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
This gives me the following:
I haven't found some combination of height
and location
or other parameters I've discovered to give me the desired effect. As it is, the box is too short, but the text is in the right place. How do I extend the height so it goes to the top of the footer area?
context
add a comment |
up vote
4
down vote
favorite
I'm trying to put draw lines around the footer area and put some text at the center bottom of the area. I've been trying variations of the below for a while now:
showframe
defineframed[FooterSection]
[
width=makeupwidth,
height=broad,
location=bottom,
frame=on,
rulethickness=3pt
]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
This gives me the following:
I haven't found some combination of height
and location
or other parameters I've discovered to give me the desired effect. As it is, the box is too short, but the text is in the right place. How do I extend the height so it goes to the top of the footer area?
context
You can useheight=footerheight
to make the box as high as the footer. If the contents don't change you can useboffset
to move it downwards (this is not automic, though), e.g.boffset=-0.5footerheight
gives good results in your MWE. (I don't really know ConTeXt)
– Skillmon
Nov 26 at 16:07
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I'm trying to put draw lines around the footer area and put some text at the center bottom of the area. I've been trying variations of the below for a while now:
showframe
defineframed[FooterSection]
[
width=makeupwidth,
height=broad,
location=bottom,
frame=on,
rulethickness=3pt
]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
This gives me the following:
I haven't found some combination of height
and location
or other parameters I've discovered to give me the desired effect. As it is, the box is too short, but the text is in the right place. How do I extend the height so it goes to the top of the footer area?
context
I'm trying to put draw lines around the footer area and put some text at the center bottom of the area. I've been trying variations of the below for a while now:
showframe
defineframed[FooterSection]
[
width=makeupwidth,
height=broad,
location=bottom,
frame=on,
rulethickness=3pt
]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
This gives me the following:
I haven't found some combination of height
and location
or other parameters I've discovered to give me the desired effect. As it is, the box is too short, but the text is in the right place. How do I extend the height so it goes to the top of the footer area?
context
context
asked Nov 26 at 15:42
Roxy
3315
3315
You can useheight=footerheight
to make the box as high as the footer. If the contents don't change you can useboffset
to move it downwards (this is not automic, though), e.g.boffset=-0.5footerheight
gives good results in your MWE. (I don't really know ConTeXt)
– Skillmon
Nov 26 at 16:07
add a comment |
You can useheight=footerheight
to make the box as high as the footer. If the contents don't change you can useboffset
to move it downwards (this is not automic, though), e.g.boffset=-0.5footerheight
gives good results in your MWE. (I don't really know ConTeXt)
– Skillmon
Nov 26 at 16:07
You can use
height=footerheight
to make the box as high as the footer. If the contents don't change you can use boffset
to move it downwards (this is not automic, though), e.g.boffset=-0.5footerheight
gives good results in your MWE. (I don't really know ConTeXt)– Skillmon
Nov 26 at 16:07
You can use
height=footerheight
to make the box as high as the footer. If the contents don't change you can use boffset
to move it downwards (this is not automic, though), e.g.boffset=-0.5footerheight
gives good results in your MWE. (I don't really know ConTeXt)– Skillmon
Nov 26 at 16:07
add a comment |
3 Answers
3
active
oldest
votes
up vote
5
down vote
accepted
Use the full footer, but re-align the content.
showframe
defineframed[FooterSection]
[width=max,
height=max,
location=bottom,
align={low,middle},
frame=on,
rulethickness=3pt]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
1
width=max
andheight=max
is more expressive and you are missing a comma afterrulethickness=3pt
(in this case it does not matter but most of the time it does).
– Henri Menke
Nov 26 at 21:30
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
add a comment |
up vote
6
down vote
Just enable the frame around the footer using setupbackgrounds
. This does not require to specify the alignment manually, doesn't screw with the existing baseline, and does not require you to wrap the footer content into a macro.
setupbackgrounds
[footer]
[text]
[frame=on]
setupfootertexts[Some text]
starttext
Hello World!
stoptext
add a comment |
up vote
5
down vote
You can use the max
value for the width
and height
keys to use the available space for the frame. Another setting you have to do is to disable the strut
for the footer setup, otherwise the frame won’t fill the complete vertical area of the footer.
showframe
startsetups [footer]
startframed [width=max,height=max,align={middle,low},rulethickness=3pt]
Some text
stopframed
stopsetups
setupfooter [strut=no]
setupfootertexts[texsetup{footer}]
starttext
Hello.
stoptext
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
Use the full footer, but re-align the content.
showframe
defineframed[FooterSection]
[width=max,
height=max,
location=bottom,
align={low,middle},
frame=on,
rulethickness=3pt]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
1
width=max
andheight=max
is more expressive and you are missing a comma afterrulethickness=3pt
(in this case it does not matter but most of the time it does).
– Henri Menke
Nov 26 at 21:30
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
add a comment |
up vote
5
down vote
accepted
Use the full footer, but re-align the content.
showframe
defineframed[FooterSection]
[width=max,
height=max,
location=bottom,
align={low,middle},
frame=on,
rulethickness=3pt]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
1
width=max
andheight=max
is more expressive and you are missing a comma afterrulethickness=3pt
(in this case it does not matter but most of the time it does).
– Henri Menke
Nov 26 at 21:30
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
Use the full footer, but re-align the content.
showframe
defineframed[FooterSection]
[width=max,
height=max,
location=bottom,
align={low,middle},
frame=on,
rulethickness=3pt]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
Use the full footer, but re-align the content.
showframe
defineframed[FooterSection]
[width=max,
height=max,
location=bottom,
align={low,middle},
frame=on,
rulethickness=3pt]
setupfootertexts[FooterSection{Some text}]
starttext
Hello.
stoptext
edited Nov 27 at 7:43
answered Nov 26 at 16:08
TeXnician
23.7k62984
23.7k62984
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
1
width=max
andheight=max
is more expressive and you are missing a comma afterrulethickness=3pt
(in this case it does not matter but most of the time it does).
– Henri Menke
Nov 26 at 21:30
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
add a comment |
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
1
width=max
andheight=max
is more expressive and you are missing a comma afterrulethickness=3pt
(in this case it does not matter but most of the time it does).
– Henri Menke
Nov 26 at 21:30
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
That's it. Thank you :)
– Roxy
Nov 26 at 16:48
1
1
width=max
and height=max
is more expressive and you are missing a comma after rulethickness=3pt
(in this case it does not matter but most of the time it does).– Henri Menke
Nov 26 at 21:30
width=max
and height=max
is more expressive and you are missing a comma after rulethickness=3pt
(in this case it does not matter but most of the time it does).– Henri Menke
Nov 26 at 21:30
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
@HenriMenke I have edited my answer.
– TeXnician
Nov 27 at 7:44
add a comment |
up vote
6
down vote
Just enable the frame around the footer using setupbackgrounds
. This does not require to specify the alignment manually, doesn't screw with the existing baseline, and does not require you to wrap the footer content into a macro.
setupbackgrounds
[footer]
[text]
[frame=on]
setupfootertexts[Some text]
starttext
Hello World!
stoptext
add a comment |
up vote
6
down vote
Just enable the frame around the footer using setupbackgrounds
. This does not require to specify the alignment manually, doesn't screw with the existing baseline, and does not require you to wrap the footer content into a macro.
setupbackgrounds
[footer]
[text]
[frame=on]
setupfootertexts[Some text]
starttext
Hello World!
stoptext
add a comment |
up vote
6
down vote
up vote
6
down vote
Just enable the frame around the footer using setupbackgrounds
. This does not require to specify the alignment manually, doesn't screw with the existing baseline, and does not require you to wrap the footer content into a macro.
setupbackgrounds
[footer]
[text]
[frame=on]
setupfootertexts[Some text]
starttext
Hello World!
stoptext
Just enable the frame around the footer using setupbackgrounds
. This does not require to specify the alignment manually, doesn't screw with the existing baseline, and does not require you to wrap the footer content into a macro.
setupbackgrounds
[footer]
[text]
[frame=on]
setupfootertexts[Some text]
starttext
Hello World!
stoptext
answered Nov 26 at 19:55
Henri Menke
68.2k7152255
68.2k7152255
add a comment |
add a comment |
up vote
5
down vote
You can use the max
value for the width
and height
keys to use the available space for the frame. Another setting you have to do is to disable the strut
for the footer setup, otherwise the frame won’t fill the complete vertical area of the footer.
showframe
startsetups [footer]
startframed [width=max,height=max,align={middle,low},rulethickness=3pt]
Some text
stopframed
stopsetups
setupfooter [strut=no]
setupfootertexts[texsetup{footer}]
starttext
Hello.
stoptext
add a comment |
up vote
5
down vote
You can use the max
value for the width
and height
keys to use the available space for the frame. Another setting you have to do is to disable the strut
for the footer setup, otherwise the frame won’t fill the complete vertical area of the footer.
showframe
startsetups [footer]
startframed [width=max,height=max,align={middle,low},rulethickness=3pt]
Some text
stopframed
stopsetups
setupfooter [strut=no]
setupfootertexts[texsetup{footer}]
starttext
Hello.
stoptext
add a comment |
up vote
5
down vote
up vote
5
down vote
You can use the max
value for the width
and height
keys to use the available space for the frame. Another setting you have to do is to disable the strut
for the footer setup, otherwise the frame won’t fill the complete vertical area of the footer.
showframe
startsetups [footer]
startframed [width=max,height=max,align={middle,low},rulethickness=3pt]
Some text
stopframed
stopsetups
setupfooter [strut=no]
setupfootertexts[texsetup{footer}]
starttext
Hello.
stoptext
You can use the max
value for the width
and height
keys to use the available space for the frame. Another setting you have to do is to disable the strut
for the footer setup, otherwise the frame won’t fill the complete vertical area of the footer.
showframe
startsetups [footer]
startframed [width=max,height=max,align={middle,low},rulethickness=3pt]
Some text
stopframed
stopsetups
setupfooter [strut=no]
setupfootertexts[texsetup{footer}]
starttext
Hello.
stoptext
answered Nov 26 at 16:16
Wolfgang Schuster
4,7411711
4,7411711
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f461836%2fhow-to-put-a-frame-around-the-footer-section-with-text-sitting-at-the-bottom-ce%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
You can use
height=footerheight
to make the box as high as the footer. If the contents don't change you can useboffset
to move it downwards (this is not automic, though), e.g.boffset=-0.5footerheight
gives good results in your MWE. (I don't really know ConTeXt)– Skillmon
Nov 26 at 16:07