How can I make a vertical rule that extends to the edges of an fbox?Why should the minimal class be avoided?Adjusting the height of vlineHow can I eliminate the epigraph rule?Non-invasive replacement for fbox?Box with same vertical height, even when emptyHow can I place a vertical rule between subfigures?Rule at the end of chapter: vertical and horizontal aligningConTeXt: Get edges of frames without intersections with other edges. Vertical lines between wordsHow to make “rule with hooks”what is the correct value to move horizontal rule and join it with vertical rule between minipage?How to change the default border color of fbox?How can we make caption the appear inside of the fbox?

How old is Captain America at the end of "Avengers: Endgame"?

Is it a bad idea to replace pull-up resistors with hard pull-ups?

Best species to breed to intelligence

What is the significance of 4200 BCE in context of farming replacing foraging in Europe?

Delta TSA-Precheck status removed

Is it a Munchausen Number?

As programers say: Strive to be lazy

Was there a contingency plan in place if Little Boy failed to detonate?

Why is it so slow when assigning a concatenated string to a variable in python?

Why was the Ancient One so hesitant to teach Dr. Strange the art of sorcery?

What is the best way for a skeleton to impersonate human without using magic?

Was this a power play by Daenerys?

Why was this sacrifice sufficient?

How can I make a vertical rule that extends to the edges of an fbox?

Can I use my laptop, which says 240V, in the USA?

How does Howard Stark know this?

Ex-manager wants to stay in touch, I don't want to

Cropping a message using array splits

What can cause a never-frozen indoor copper drain pipe to crack?

Why does a C.D.F need to be right-continuous?

Can 'sudo apt-get remove [write]' destroy my Ubuntu?

Exception propagation: When to catch exceptions?

Why does TypeScript pack a Class in an IIFE?

Washer drain pipe overflow



How can I make a vertical rule that extends to the edges of an fbox?


Why should the minimal class be avoided?Adjusting the height of vlineHow can I eliminate the epigraph rule?Non-invasive replacement for fbox?Box with same vertical height, even when emptyHow can I place a vertical rule between subfigures?Rule at the end of chapter: vertical and horizontal aligningConTeXt: Get edges of frames without intersections with other edges. Vertical lines between wordsHow to make “rule with hooks”what is the correct value to move horizontal rule and join it with vertical rule between minipage?How to change the default border color of fbox?How can we make caption the appear inside of the fbox?













3















Consider the following MWE:



documentclassminimal

begindocument
fboxsome text vrule more text
fboxsome text vrule more deep text
fboxsome text vrule more $int$ tall text
enddocument


In all three cases, the vrule stretches to the height of the surrounding box, but doesn't touch the edges of the fbox because of the fboxsep.



How can I make the vrule stretch by an extra fboxsep on each side? I found this question, but it only covers giving an explicit height to the vrule, while I'd like to extend it by a given amount, but otherwise let it expand and shrink as appropriate to fill the current box.










share|improve this question


























    3















    Consider the following MWE:



    documentclassminimal

    begindocument
    fboxsome text vrule more text
    fboxsome text vrule more deep text
    fboxsome text vrule more $int$ tall text
    enddocument


    In all three cases, the vrule stretches to the height of the surrounding box, but doesn't touch the edges of the fbox because of the fboxsep.



    How can I make the vrule stretch by an extra fboxsep on each side? I found this question, but it only covers giving an explicit height to the vrule, while I'd like to extend it by a given amount, but otherwise let it expand and shrink as appropriate to fill the current box.










    share|improve this question
























      3












      3








      3








      Consider the following MWE:



      documentclassminimal

      begindocument
      fboxsome text vrule more text
      fboxsome text vrule more deep text
      fboxsome text vrule more $int$ tall text
      enddocument


      In all three cases, the vrule stretches to the height of the surrounding box, but doesn't touch the edges of the fbox because of the fboxsep.



      How can I make the vrule stretch by an extra fboxsep on each side? I found this question, but it only covers giving an explicit height to the vrule, while I'd like to extend it by a given amount, but otherwise let it expand and shrink as appropriate to fill the current box.










      share|improve this question














      Consider the following MWE:



      documentclassminimal

      begindocument
      fboxsome text vrule more text
      fboxsome text vrule more deep text
      fboxsome text vrule more $int$ tall text
      enddocument


      In all three cases, the vrule stretches to the height of the surrounding box, but doesn't touch the edges of the fbox because of the fboxsep.



      How can I make the vrule stretch by an extra fboxsep on each side? I found this question, but it only covers giving an explicit height to the vrule, while I'd like to extend it by a given amount, but otherwise let it expand and shrink as appropriate to fill the current box.







      boxes rules fbox






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      ClémentClément

      1,7511535




      1,7511535




















          3 Answers
          3






          active

          oldest

          votes


















          3














          one way is to set fboxsep to zero and than instead vrule use accordingly set rule:



          documentclassminimal
          setlengthfboxsep0pt
          newcommandVRrule[-0.4baselineskip]0.4pt1.2baselineskip

          begindocument
          fbox some text VR qjf more text
          fbox some text VR more deep text
          fbox some text VR more $int$ tall text
          enddocument


          enter image description here






          share|improve this answer






























            3














            You can use smashvrule, but you have to specify the height and depth.



            documentclassarticle
            begindocument
            sbox0fboxsome text more text%
            fboxsome text smashvrule heightht0 depthdp0 more text
            sbox0fboxsome text more deep text%
            fboxsome text smashvrule heightht0 depthdp0 more deep text
            sbox0fboxsome text more $int$ tall text%
            fboxsome text smashvrule heightht0 depthdp0 more $int$ tall text
            enddocument


            demo




            Or you could just use struts and make all your fboxes the same height.



            documentclassstandalone
            begindocument
            fboxstrut some texthspace-fboxrulefboxstrut some text
            fboxstrut some texthspace-fboxrulefboxstrut more deep text
            fboxstrut some texthspace-fboxrulefboxstrut more $int$ tall text
            enddocument


            demo2






            share|improve this answer
































              1














              Looks like a tabular to me.



              documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
              begindocument
              begintabular
              hline
              some text & more text\
              hline
              endtabular

              begintabular
              hline
              some text & more deep text\
              hline
              endtabular

              begintabular
              hline
              some text & more $displaystyleint$ tall text\
              hline
              endtabular
              enddocument


              enter image description here



              Of course you can adjust the padding.



              documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
              % commands based on
              newcommandTstrut[1]rule0pt#1 % "top" strut
              newcommandBstrut[1]rule[-#1]0pt0pt % "bottom" strut
              newcommandTBstrut[2]Tstrut#1Bstrut#2
              begindocument
              begintabular
              hline
              some text & more text\
              hline
              endtabular

              begintabular
              hline
              TBstrut2.5ex1.5exsome text & more deep text\
              hline
              endtabular

              begintabular
              hline
              TBstrut4ex3exsome text & more $displaystyleint$ tall text\[0.5ex]
              hline
              endtabular
              enddocument


              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%2f490262%2fhow-can-i-make-a-vertical-rule-that-extends-to-the-edges-of-an-fbox%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









                3














                one way is to set fboxsep to zero and than instead vrule use accordingly set rule:



                documentclassminimal
                setlengthfboxsep0pt
                newcommandVRrule[-0.4baselineskip]0.4pt1.2baselineskip

                begindocument
                fbox some text VR qjf more text
                fbox some text VR more deep text
                fbox some text VR more $int$ tall text
                enddocument


                enter image description here






                share|improve this answer



























                  3














                  one way is to set fboxsep to zero and than instead vrule use accordingly set rule:



                  documentclassminimal
                  setlengthfboxsep0pt
                  newcommandVRrule[-0.4baselineskip]0.4pt1.2baselineskip

                  begindocument
                  fbox some text VR qjf more text
                  fbox some text VR more deep text
                  fbox some text VR more $int$ tall text
                  enddocument


                  enter image description here






                  share|improve this answer

























                    3












                    3








                    3







                    one way is to set fboxsep to zero and than instead vrule use accordingly set rule:



                    documentclassminimal
                    setlengthfboxsep0pt
                    newcommandVRrule[-0.4baselineskip]0.4pt1.2baselineskip

                    begindocument
                    fbox some text VR qjf more text
                    fbox some text VR more deep text
                    fbox some text VR more $int$ tall text
                    enddocument


                    enter image description here






                    share|improve this answer













                    one way is to set fboxsep to zero and than instead vrule use accordingly set rule:



                    documentclassminimal
                    setlengthfboxsep0pt
                    newcommandVRrule[-0.4baselineskip]0.4pt1.2baselineskip

                    begindocument
                    fbox some text VR qjf more text
                    fbox some text VR more deep text
                    fbox some text VR more $int$ tall text
                    enddocument


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 1 hour ago









                    ZarkoZarko

                    133k872175




                    133k872175





















                        3














                        You can use smashvrule, but you have to specify the height and depth.



                        documentclassarticle
                        begindocument
                        sbox0fboxsome text more text%
                        fboxsome text smashvrule heightht0 depthdp0 more text
                        sbox0fboxsome text more deep text%
                        fboxsome text smashvrule heightht0 depthdp0 more deep text
                        sbox0fboxsome text more $int$ tall text%
                        fboxsome text smashvrule heightht0 depthdp0 more $int$ tall text
                        enddocument


                        demo




                        Or you could just use struts and make all your fboxes the same height.



                        documentclassstandalone
                        begindocument
                        fboxstrut some texthspace-fboxrulefboxstrut some text
                        fboxstrut some texthspace-fboxrulefboxstrut more deep text
                        fboxstrut some texthspace-fboxrulefboxstrut more $int$ tall text
                        enddocument


                        demo2






                        share|improve this answer





























                          3














                          You can use smashvrule, but you have to specify the height and depth.



                          documentclassarticle
                          begindocument
                          sbox0fboxsome text more text%
                          fboxsome text smashvrule heightht0 depthdp0 more text
                          sbox0fboxsome text more deep text%
                          fboxsome text smashvrule heightht0 depthdp0 more deep text
                          sbox0fboxsome text more $int$ tall text%
                          fboxsome text smashvrule heightht0 depthdp0 more $int$ tall text
                          enddocument


                          demo




                          Or you could just use struts and make all your fboxes the same height.



                          documentclassstandalone
                          begindocument
                          fboxstrut some texthspace-fboxrulefboxstrut some text
                          fboxstrut some texthspace-fboxrulefboxstrut more deep text
                          fboxstrut some texthspace-fboxrulefboxstrut more $int$ tall text
                          enddocument


                          demo2






                          share|improve this answer



























                            3












                            3








                            3







                            You can use smashvrule, but you have to specify the height and depth.



                            documentclassarticle
                            begindocument
                            sbox0fboxsome text more text%
                            fboxsome text smashvrule heightht0 depthdp0 more text
                            sbox0fboxsome text more deep text%
                            fboxsome text smashvrule heightht0 depthdp0 more deep text
                            sbox0fboxsome text more $int$ tall text%
                            fboxsome text smashvrule heightht0 depthdp0 more $int$ tall text
                            enddocument


                            demo




                            Or you could just use struts and make all your fboxes the same height.



                            documentclassstandalone
                            begindocument
                            fboxstrut some texthspace-fboxrulefboxstrut some text
                            fboxstrut some texthspace-fboxrulefboxstrut more deep text
                            fboxstrut some texthspace-fboxrulefboxstrut more $int$ tall text
                            enddocument


                            demo2






                            share|improve this answer















                            You can use smashvrule, but you have to specify the height and depth.



                            documentclassarticle
                            begindocument
                            sbox0fboxsome text more text%
                            fboxsome text smashvrule heightht0 depthdp0 more text
                            sbox0fboxsome text more deep text%
                            fboxsome text smashvrule heightht0 depthdp0 more deep text
                            sbox0fboxsome text more $int$ tall text%
                            fboxsome text smashvrule heightht0 depthdp0 more $int$ tall text
                            enddocument


                            demo




                            Or you could just use struts and make all your fboxes the same height.



                            documentclassstandalone
                            begindocument
                            fboxstrut some texthspace-fboxrulefboxstrut some text
                            fboxstrut some texthspace-fboxrulefboxstrut more deep text
                            fboxstrut some texthspace-fboxrulefboxstrut more $int$ tall text
                            enddocument


                            demo2







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 1 hour ago

























                            answered 1 hour ago









                            John KormyloJohn Kormylo

                            47.4k32672




                            47.4k32672





















                                1














                                Looks like a tabular to me.



                                documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                begindocument
                                begintabular
                                hline
                                some text & more text\
                                hline
                                endtabular

                                begintabular
                                hline
                                some text & more deep text\
                                hline
                                endtabular

                                begintabular
                                hline
                                some text & more $displaystyleint$ tall text\
                                hline
                                endtabular
                                enddocument


                                enter image description here



                                Of course you can adjust the padding.



                                documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                % commands based on
                                newcommandTstrut[1]rule0pt#1 % "top" strut
                                newcommandBstrut[1]rule[-#1]0pt0pt % "bottom" strut
                                newcommandTBstrut[2]Tstrut#1Bstrut#2
                                begindocument
                                begintabular
                                hline
                                some text & more text\
                                hline
                                endtabular

                                begintabular
                                hline
                                TBstrut2.5ex1.5exsome text & more deep text\
                                hline
                                endtabular

                                begintabular
                                hline
                                TBstrut4ex3exsome text & more $displaystyleint$ tall text\[0.5ex]
                                hline
                                endtabular
                                enddocument


                                enter image description here






                                share|improve this answer





























                                  1














                                  Looks like a tabular to me.



                                  documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                  begindocument
                                  begintabular
                                  hline
                                  some text & more text\
                                  hline
                                  endtabular

                                  begintabular
                                  hline
                                  some text & more deep text\
                                  hline
                                  endtabular

                                  begintabular
                                  hline
                                  some text & more $displaystyleint$ tall text\
                                  hline
                                  endtabular
                                  enddocument


                                  enter image description here



                                  Of course you can adjust the padding.



                                  documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                  % commands based on
                                  newcommandTstrut[1]rule0pt#1 % "top" strut
                                  newcommandBstrut[1]rule[-#1]0pt0pt % "bottom" strut
                                  newcommandTBstrut[2]Tstrut#1Bstrut#2
                                  begindocument
                                  begintabular
                                  hline
                                  some text & more text\
                                  hline
                                  endtabular

                                  begintabular
                                  hline
                                  TBstrut2.5ex1.5exsome text & more deep text\
                                  hline
                                  endtabular

                                  begintabular
                                  hline
                                  TBstrut4ex3exsome text & more $displaystyleint$ tall text\[0.5ex]
                                  hline
                                  endtabular
                                  enddocument


                                  enter image description here






                                  share|improve this answer



























                                    1












                                    1








                                    1







                                    Looks like a tabular to me.



                                    documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                    begindocument
                                    begintabular
                                    hline
                                    some text & more text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    some text & more deep text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    some text & more $displaystyleint$ tall text\
                                    hline
                                    endtabular
                                    enddocument


                                    enter image description here



                                    Of course you can adjust the padding.



                                    documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                    % commands based on
                                    newcommandTstrut[1]rule0pt#1 % "top" strut
                                    newcommandBstrut[1]rule[-#1]0pt0pt % "bottom" strut
                                    newcommandTBstrut[2]Tstrut#1Bstrut#2
                                    begindocument
                                    begintabular
                                    hline
                                    some text & more text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    TBstrut2.5ex1.5exsome text & more deep text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    TBstrut4ex3exsome text & more $displaystyleint$ tall text\[0.5ex]
                                    hline
                                    endtabular
                                    enddocument


                                    enter image description here






                                    share|improve this answer















                                    Looks like a tabular to me.



                                    documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                    begindocument
                                    begintabular
                                    hline
                                    some text & more text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    some text & more deep text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    some text & more $displaystyleint$ tall text\
                                    hline
                                    endtabular
                                    enddocument


                                    enter image description here



                                    Of course you can adjust the padding.



                                    documentclassarticle % see https://tex.stackexchange.com/q/42114/121799
                                    % commands based on
                                    newcommandTstrut[1]rule0pt#1 % "top" strut
                                    newcommandBstrut[1]rule[-#1]0pt0pt % "bottom" strut
                                    newcommandTBstrut[2]Tstrut#1Bstrut#2
                                    begindocument
                                    begintabular
                                    hline
                                    some text & more text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    TBstrut2.5ex1.5exsome text & more deep text\
                                    hline
                                    endtabular

                                    begintabular
                                    hline
                                    TBstrut4ex3exsome text & more $displaystyleint$ tall text\[0.5ex]
                                    hline
                                    endtabular
                                    enddocument


                                    enter image description here







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited 22 mins ago

























                                    answered 1 hour ago









                                    marmotmarmot

                                    126k6162308




                                    126k6162308



























                                        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%2f490262%2fhow-can-i-make-a-vertical-rule-that-extends-to-the-edges-of-an-fbox%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

                                        ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

                                        Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

                                        19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу