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
    2 days ago

















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
    2 days ago















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 2 days ago









Roxy

2874




2874












  • 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


















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












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
    2 days ago






  • 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










  • @HenriMenke I have edited my answer.
    – TeXnician
    yesterday


















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
        2 days ago






      • 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










      • @HenriMenke I have edited my answer.
        – TeXnician
        yesterday















      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
        2 days ago






      • 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










      • @HenriMenke I have edited my answer.
        – TeXnician
        yesterday













      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 yesterday

























      answered 2 days ago









      TeXnician

      23.6k62984




      23.6k62984












      • That's it. Thank you :)
        – Roxy
        2 days ago






      • 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










      • @HenriMenke I have edited my answer.
        – TeXnician
        yesterday


















      • That's it. Thank you :)
        – Roxy
        2 days ago






      • 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










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










      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 2 days ago









          Henri Menke

          67.7k7150255




          67.7k7150255






















              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 2 days ago









                  Wolfgang Schuster

                  4,6061711




                  4,6061711






























                       

                      draft saved


                      draft discarded



















































                       


                      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

                      Quarter-circle Tiles

                      build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                      Mont Emei