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:



enter image description here



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?










share|improve this question






















  • 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

















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:



enter image description here



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?










share|improve this question






















  • 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















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:



enter image description here



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?










share|improve this question













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:



enter image description here



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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 26 at 15:42









Roxy

3025




3025












  • 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


















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












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





share|improve this answer























  • That's it. Thank you :)
    – Roxy
    Nov 26 at 16:48






  • 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










  • @HenriMenke I have edited my answer.
    – TeXnician
    Nov 27 at 7:44


















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


enter image description here






share|improve this answer




























    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





    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',
      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%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

























      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





      share|improve this answer























      • That's it. Thank you :)
        – Roxy
        Nov 26 at 16:48






      • 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










      • @HenriMenke I have edited my answer.
        – TeXnician
        Nov 27 at 7:44















      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





      share|improve this answer























      • That's it. Thank you :)
        – Roxy
        Nov 26 at 16:48






      • 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










      • @HenriMenke I have edited my answer.
        – TeXnician
        Nov 27 at 7:44













      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





      share|improve this answer














      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






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 27 at 7:43

























      answered Nov 26 at 16:08









      TeXnician

      23.6k62984




      23.6k62984












      • That's it. Thank you :)
        – Roxy
        Nov 26 at 16:48






      • 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










      • @HenriMenke I have edited my answer.
        – TeXnician
        Nov 27 at 7:44


















      • That's it. Thank you :)
        – Roxy
        Nov 26 at 16:48






      • 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










      • @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










      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


      enter image description here






      share|improve this answer

























        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


        enter image description here






        share|improve this answer























          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


          enter image description here






          share|improve this answer












          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 at 19:55









          Henri Menke

          67.9k7150255




          67.9k7150255






















              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





              share|improve this answer

























                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





                share|improve this answer























                  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





                  share|improve this answer












                  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






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 26 at 16:16









                  Wolfgang Schuster

                  4,6261711




                  4,6261711






























                      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.





                      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.




                      draft saved


                      draft discarded














                      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





















































                      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

                      AnyDesk - Fatal Program Failure

                      How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

                      QoS: MAC-Priority for clients behind a repeater