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?
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
add a comment |
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
add a comment |
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
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
boxes rules fbox
asked 1 hour ago
ClémentClément
1,7511535
1,7511535
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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
add a comment |
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
Or you could just use strut
s and make all your fbox
es 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
add a comment |
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
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
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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
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
add a comment |
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
add a comment |
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
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
answered 1 hour ago
ZarkoZarko
133k872175
133k872175
add a comment |
add a comment |
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
Or you could just use strut
s and make all your fbox
es 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
add a comment |
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
Or you could just use strut
s and make all your fbox
es 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
add a comment |
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
Or you could just use strut
s and make all your fbox
es 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
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
Or you could just use strut
s and make all your fbox
es 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
edited 1 hour ago
answered 1 hour ago
John KormyloJohn Kormylo
47.4k32672
47.4k32672
add a comment |
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
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
edited 22 mins ago
answered 1 hour ago
marmotmarmot
126k6162308
126k6162308
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown