How to adjust the page number position in the footer area in ConTeXt?
I would like to elevate a little bit the position of the page number in the footer area of the MWE below in ConTeXt:
MWE
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
%%% local Variables:
%%% mode: context
%%% TeX-master: t
%%% TeX-engine: luatex
%%% End:
Output
In latex, I used to achieve similar to this using the command raisebox{0.6baselineskip}{SomeTextToAdjust}
. So what is the parallel approach in ConTeXt to raise the page number in footer area?
header-footer positioning page-numbering context
add a comment |
I would like to elevate a little bit the position of the page number in the footer area of the MWE below in ConTeXt:
MWE
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
%%% local Variables:
%%% mode: context
%%% TeX-master: t
%%% TeX-engine: luatex
%%% End:
Output
In latex, I used to achieve similar to this using the command raisebox{0.6baselineskip}{SomeTextToAdjust}
. So what is the parallel approach in ConTeXt to raise the page number in footer area?
header-footer positioning page-numbering context
Why not raise the whole footer area insetuplayout
?
– Henri Menke
Jan 19 at 19:07
add a comment |
I would like to elevate a little bit the position of the page number in the footer area of the MWE below in ConTeXt:
MWE
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
%%% local Variables:
%%% mode: context
%%% TeX-master: t
%%% TeX-engine: luatex
%%% End:
Output
In latex, I used to achieve similar to this using the command raisebox{0.6baselineskip}{SomeTextToAdjust}
. So what is the parallel approach in ConTeXt to raise the page number in footer area?
header-footer positioning page-numbering context
I would like to elevate a little bit the position of the page number in the footer area of the MWE below in ConTeXt:
MWE
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
%%% local Variables:
%%% mode: context
%%% TeX-master: t
%%% TeX-engine: luatex
%%% End:
Output
In latex, I used to achieve similar to this using the command raisebox{0.6baselineskip}{SomeTextToAdjust}
. So what is the parallel approach in ConTeXt to raise the page number in footer area?
header-footer positioning page-numbering context
header-footer positioning page-numbering context
asked Jan 19 at 18:17
doctoratedoctorate
2,25911943
2,25911943
Why not raise the whole footer area insetuplayout
?
– Henri Menke
Jan 19 at 19:07
add a comment |
Why not raise the whole footer area insetuplayout
?
– Henri Menke
Jan 19 at 19:07
Why not raise the whole footer area in
setuplayout
?– Henri Menke
Jan 19 at 19:07
Why not raise the whole footer area in
setuplayout
?– Henri Menke
Jan 19 at 19:07
add a comment |
3 Answers
3
active
oldest
votes
I think they are more straightforward ways to answer you question, but a wiki check suggested me this answer
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
startsetups[headertext]
startframed[frame=off,height=5ex,align={middle,lohi},width=fit]
Page pagenumber{} of totalnumberofpages
stopframed
stopsetups
setupfootertexts[directsetup{headertext}]
showframe
showlayout
showsetups
%setuppagenumbering [location={footer,middle}]
%setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
As you can see, playing with the frame height gives you some spare space, since we center the content inside the frame. Of course with a side-effect that you have also spare space above this text…
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
add a comment |
You could just raise the whole footer area instead.
setuppapersize [A4]
setuplayout
[%horizontal
margin=0pt,
backspace=1cm,
width=fit,
%vertical
topspace=1cm,
header=0pt,
height=fit,
footerdistance=0cm,
bottomspace=1cm]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
add a comment |
The best solution when the footer text is too low and all pages is to change the page layout to mode the footer area upwards which can be done by decreasing the height of the text block.
When you don’t want to change the layout you can put the content of the footer in a frame and change the offset value for the bottom. To ensure the frame fills the whole footer area you have disable the strut
setting with setupfooter
.
setuppapersize [A4]
setuplayout
[backspace=1cm,
width=middle,
header=0pt,
topspace=1cm,
bottomspace=0.5cm,
height=middle]
showframe [text,footer] [text]
setuppagenumbering
[location=none]
setupfooter
[strut=no]
% setupfootertexts
% [{framed
% [frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
% {Page realpagenumber of lastrealpagenumber}}]
setupfootertexts
[{framed
[frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
{Page realpagenumber of lastrealpagenumber}}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
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%2f470910%2fhow-to-adjust-the-page-number-position-in-the-footer-area-in-context%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think they are more straightforward ways to answer you question, but a wiki check suggested me this answer
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
startsetups[headertext]
startframed[frame=off,height=5ex,align={middle,lohi},width=fit]
Page pagenumber{} of totalnumberofpages
stopframed
stopsetups
setupfootertexts[directsetup{headertext}]
showframe
showlayout
showsetups
%setuppagenumbering [location={footer,middle}]
%setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
As you can see, playing with the frame height gives you some spare space, since we center the content inside the frame. Of course with a side-effect that you have also spare space above this text…
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
add a comment |
I think they are more straightforward ways to answer you question, but a wiki check suggested me this answer
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
startsetups[headertext]
startframed[frame=off,height=5ex,align={middle,lohi},width=fit]
Page pagenumber{} of totalnumberofpages
stopframed
stopsetups
setupfootertexts[directsetup{headertext}]
showframe
showlayout
showsetups
%setuppagenumbering [location={footer,middle}]
%setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
As you can see, playing with the frame height gives you some spare space, since we center the content inside the frame. Of course with a side-effect that you have also spare space above this text…
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
add a comment |
I think they are more straightforward ways to answer you question, but a wiki check suggested me this answer
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
startsetups[headertext]
startframed[frame=off,height=5ex,align={middle,lohi},width=fit]
Page pagenumber{} of totalnumberofpages
stopframed
stopsetups
setupfootertexts[directsetup{headertext}]
showframe
showlayout
showsetups
%setuppagenumbering [location={footer,middle}]
%setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
As you can see, playing with the frame height gives you some spare space, since we center the content inside the frame. Of course with a side-effect that you have also spare space above this text…
I think they are more straightforward ways to answer you question, but a wiki check suggested me this answer
setuppapersize [A4]
setuplayout
[header=0pt,
margin=0pt,
footerdistance=0cm,
topspace=1cm,
backspace=1cm,
width=fit,
height=dimexprpaperheight-topspace+footerheight+footerdistance-2.3cmrelax]
startsetups[headertext]
startframed[frame=off,height=5ex,align={middle,lohi},width=fit]
Page pagenumber{} of totalnumberofpages
stopframed
stopsetups
setupfootertexts[directsetup{headertext}]
showframe
showlayout
showsetups
%setuppagenumbering [location={footer,middle}]
%setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
As you can see, playing with the frame height gives you some spare space, since we center the content inside the frame. Of course with a side-effect that you have also spare space above this text…
edited Jan 19 at 18:48
answered Jan 19 at 18:42
sztrukssztruks
1,6171817
1,6171817
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
add a comment |
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
Thanks it worked. Please I would like to give some time to see if there are other solutions to the questions.
– doctorate
Jan 19 at 18:48
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
No problem, as I wrote I am sure there are more elegant ways to do it and will be happy to learn about them.
– sztruks
Jan 19 at 18:49
add a comment |
You could just raise the whole footer area instead.
setuppapersize [A4]
setuplayout
[%horizontal
margin=0pt,
backspace=1cm,
width=fit,
%vertical
topspace=1cm,
header=0pt,
height=fit,
footerdistance=0cm,
bottomspace=1cm]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
add a comment |
You could just raise the whole footer area instead.
setuppapersize [A4]
setuplayout
[%horizontal
margin=0pt,
backspace=1cm,
width=fit,
%vertical
topspace=1cm,
header=0pt,
height=fit,
footerdistance=0cm,
bottomspace=1cm]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
add a comment |
You could just raise the whole footer area instead.
setuppapersize [A4]
setuplayout
[%horizontal
margin=0pt,
backspace=1cm,
width=fit,
%vertical
topspace=1cm,
header=0pt,
height=fit,
footerdistance=0cm,
bottomspace=1cm]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
You could just raise the whole footer area instead.
setuppapersize [A4]
setuplayout
[%horizontal
margin=0pt,
backspace=1cm,
width=fit,
%vertical
topspace=1cm,
header=0pt,
height=fit,
footerdistance=0cm,
bottomspace=1cm]
showframe
showlayout
showsetups
setuppagenumbering [location={footer,middle}]
setupfootertexts[{Page pagenumber{} of totalnumberofpages}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
answered Jan 19 at 19:11
Henri MenkeHenri Menke
76k8167281
76k8167281
add a comment |
add a comment |
The best solution when the footer text is too low and all pages is to change the page layout to mode the footer area upwards which can be done by decreasing the height of the text block.
When you don’t want to change the layout you can put the content of the footer in a frame and change the offset value for the bottom. To ensure the frame fills the whole footer area you have disable the strut
setting with setupfooter
.
setuppapersize [A4]
setuplayout
[backspace=1cm,
width=middle,
header=0pt,
topspace=1cm,
bottomspace=0.5cm,
height=middle]
showframe [text,footer] [text]
setuppagenumbering
[location=none]
setupfooter
[strut=no]
% setupfootertexts
% [{framed
% [frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
% {Page realpagenumber of lastrealpagenumber}}]
setupfootertexts
[{framed
[frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
{Page realpagenumber of lastrealpagenumber}}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
add a comment |
The best solution when the footer text is too low and all pages is to change the page layout to mode the footer area upwards which can be done by decreasing the height of the text block.
When you don’t want to change the layout you can put the content of the footer in a frame and change the offset value for the bottom. To ensure the frame fills the whole footer area you have disable the strut
setting with setupfooter
.
setuppapersize [A4]
setuplayout
[backspace=1cm,
width=middle,
header=0pt,
topspace=1cm,
bottomspace=0.5cm,
height=middle]
showframe [text,footer] [text]
setuppagenumbering
[location=none]
setupfooter
[strut=no]
% setupfootertexts
% [{framed
% [frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
% {Page realpagenumber of lastrealpagenumber}}]
setupfootertexts
[{framed
[frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
{Page realpagenumber of lastrealpagenumber}}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
add a comment |
The best solution when the footer text is too low and all pages is to change the page layout to mode the footer area upwards which can be done by decreasing the height of the text block.
When you don’t want to change the layout you can put the content of the footer in a frame and change the offset value for the bottom. To ensure the frame fills the whole footer area you have disable the strut
setting with setupfooter
.
setuppapersize [A4]
setuplayout
[backspace=1cm,
width=middle,
header=0pt,
topspace=1cm,
bottomspace=0.5cm,
height=middle]
showframe [text,footer] [text]
setuppagenumbering
[location=none]
setupfooter
[strut=no]
% setupfootertexts
% [{framed
% [frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
% {Page realpagenumber of lastrealpagenumber}}]
setupfootertexts
[{framed
[frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
{Page realpagenumber of lastrealpagenumber}}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
The best solution when the footer text is too low and all pages is to change the page layout to mode the footer area upwards which can be done by decreasing the height of the text block.
When you don’t want to change the layout you can put the content of the footer in a frame and change the offset value for the bottom. To ensure the frame fills the whole footer area you have disable the strut
setting with setupfooter
.
setuppapersize [A4]
setuplayout
[backspace=1cm,
width=middle,
header=0pt,
topspace=1cm,
bottomspace=0.5cm,
height=middle]
showframe [text,footer] [text]
setuppagenumbering
[location=none]
setupfooter
[strut=no]
% setupfootertexts
% [{framed
% [frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
% {Page realpagenumber of lastrealpagenumber}}]
setupfootertexts
[{framed
[frame=off,width=max,height=max,align={middle,low},offset=0pt,boffset=5mm]
{Page realpagenumber of lastrealpagenumber}}]
starttext
This is just a minimal working example to show the location of the page numbers in the footnote area.
stoptext
answered Jan 19 at 20:10
Wolfgang SchusterWolfgang Schuster
5,6311711
5,6311711
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.
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%2f470910%2fhow-to-adjust-the-page-number-position-in-the-footer-area-in-context%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
Why not raise the whole footer area in
setuplayout
?– Henri Menke
Jan 19 at 19:07