How to adjust the page number position in the footer area in ConTeXt?












2















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



enter image description here



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?










share|improve this question























  • Why not raise the whole footer area in setuplayout?

    – Henri Menke
    Jan 19 at 19:07
















2















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



enter image description here



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?










share|improve this question























  • Why not raise the whole footer area in setuplayout?

    – Henri Menke
    Jan 19 at 19:07














2












2








2








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



enter image description here



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?










share|improve this question














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



enter image description here



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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 19 at 18:17









doctoratedoctorate

2,25911943




2,25911943













  • 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

















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










3 Answers
3






active

oldest

votes


















4














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…



footer with 5ex height lohi frame






share|improve this answer


























  • 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



















3














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


enter image description here






share|improve this answer































    1














    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


    enter image description here






    share|improve this answer























      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      4














      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…



      footer with 5ex height lohi frame






      share|improve this answer


























      • 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
















      4














      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…



      footer with 5ex height lohi frame






      share|improve this answer


























      • 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














      4












      4








      4







      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…



      footer with 5ex height lohi frame






      share|improve this answer















      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…



      footer with 5ex height lohi frame







      share|improve this answer














      share|improve this answer



      share|improve this answer








      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



















      • 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











      3














      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


      enter image description here






      share|improve this answer




























        3














        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


        enter image description here






        share|improve this answer


























          3












          3








          3







          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


          enter image description here






          share|improve this answer













          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 19 at 19:11









          Henri MenkeHenri Menke

          76k8167281




          76k8167281























              1














              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


              enter image description here






              share|improve this answer




























                1














                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


                enter image description here






                share|improve this answer


























                  1












                  1








                  1







                  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


                  enter image description here






                  share|improve this answer













                  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


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 19 at 20:10









                  Wolfgang SchusterWolfgang Schuster

                  5,6311711




                  5,6311711






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                      SQL update select statement

                      'app-layout' is not a known element: how to share Component with different Modules