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
2 days ago
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 2 days ago
Roxy
2874
2874
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
@HenriMenke I have edited my answer.
– TeXnician
yesterday
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
2 days ago
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
2 days ago
@HenriMenke I have edited my answer.
– TeXnician
yesterday
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
2 days ago
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
2 days ago
@HenriMenke I have edited my answer.
– TeXnician
yesterday
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 yesterday
answered 2 days ago
TeXnician
23.6k62984
23.6k62984
That's it. Thank you :)
– Roxy
2 days ago
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
2 days ago
@HenriMenke I have edited my answer.
– TeXnician
yesterday
add a comment |
That's it. Thank you :)
– Roxy
2 days ago
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
2 days ago
@HenriMenke I have edited my answer.
– TeXnician
yesterday
That's it. Thank you :)
– Roxy
2 days ago
That's it. Thank you :)
– Roxy
2 days ago
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
2 days ago
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
2 days ago
@HenriMenke I have edited my answer.
– TeXnician
yesterday
@HenriMenke I have edited my answer.
– TeXnician
yesterday
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 2 days ago
Henri Menke
67.7k7150255
67.7k7150255
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 2 days ago
Wolfgang Schuster
4,6061711
4,6061711
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%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
2 days ago