cell boundary line issue when using multirow + shortstack

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am attempting to create a table that makes use of four consecutive multi-rows (if the reason for why this format has been chosen is important I can add it). I am using the multirow package as well as the shortstack command to execute linebreaks in each row. The text in the table is displaying as it should, but the cell boundaries are behaving as if the table was a group of single line rows.



The code that I am using is as follows:



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & multirow3*shortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


The result is sad:



enter image description here



Due to the simplicity of the input, I'm quite stumped. I would be greatly appreciative if someone can tell me why this is happening or recommend a smoother way of accomplishing my goal.



Thanks!










share|improve this question









New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2




    Welcome to TeX.SE! What is the role of multirow in a table that only has one row?
    – marmot
    1 hour ago










  • @marmot, there will be many of these multirow rows. I was using a singular row to illustrate my issue.
    – justathought
    32 mins ago






  • 1




    Yes, but this is precisely the reason why it does not work as you want it to work. If you use multirow, you want to make sure that you have multiple rows. At least for the example you show, makecell might be a better choice. (As for the example you do not show, I can't say much since my crystal ball got stolen.;-)
    – marmot
    27 mins ago






  • 1




    I misunderstood your first comment! having read your answer I understand the meaning of "one row". Thank you!
    – justathought
    18 mins ago






  • 1




    Thanks for choosing "issues". ;-)
    – marmot
    14 mins ago














up vote
1
down vote

favorite












I am attempting to create a table that makes use of four consecutive multi-rows (if the reason for why this format has been chosen is important I can add it). I am using the multirow package as well as the shortstack command to execute linebreaks in each row. The text in the table is displaying as it should, but the cell boundaries are behaving as if the table was a group of single line rows.



The code that I am using is as follows:



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & multirow3*shortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


The result is sad:



enter image description here



Due to the simplicity of the input, I'm quite stumped. I would be greatly appreciative if someone can tell me why this is happening or recommend a smoother way of accomplishing my goal.



Thanks!










share|improve this question









New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2




    Welcome to TeX.SE! What is the role of multirow in a table that only has one row?
    – marmot
    1 hour ago










  • @marmot, there will be many of these multirow rows. I was using a singular row to illustrate my issue.
    – justathought
    32 mins ago






  • 1




    Yes, but this is precisely the reason why it does not work as you want it to work. If you use multirow, you want to make sure that you have multiple rows. At least for the example you show, makecell might be a better choice. (As for the example you do not show, I can't say much since my crystal ball got stolen.;-)
    – marmot
    27 mins ago






  • 1




    I misunderstood your first comment! having read your answer I understand the meaning of "one row". Thank you!
    – justathought
    18 mins ago






  • 1




    Thanks for choosing "issues". ;-)
    – marmot
    14 mins ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am attempting to create a table that makes use of four consecutive multi-rows (if the reason for why this format has been chosen is important I can add it). I am using the multirow package as well as the shortstack command to execute linebreaks in each row. The text in the table is displaying as it should, but the cell boundaries are behaving as if the table was a group of single line rows.



The code that I am using is as follows:



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & multirow3*shortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


The result is sad:



enter image description here



Due to the simplicity of the input, I'm quite stumped. I would be greatly appreciative if someone can tell me why this is happening or recommend a smoother way of accomplishing my goal.



Thanks!










share|improve this question









New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am attempting to create a table that makes use of four consecutive multi-rows (if the reason for why this format has been chosen is important I can add it). I am using the multirow package as well as the shortstack command to execute linebreaks in each row. The text in the table is displaying as it should, but the cell boundaries are behaving as if the table was a group of single line rows.



The code that I am using is as follows:



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & multirow3*shortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


The result is sad:



enter image description here



Due to the simplicity of the input, I'm quite stumped. I would be greatly appreciative if someone can tell me why this is happening or recommend a smoother way of accomplishing my goal.



Thanks!







tables multirow shortstack






share|improve this question









New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 18 mins ago





















New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









justathought

1085




1085




New contributor




justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






justathought is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2




    Welcome to TeX.SE! What is the role of multirow in a table that only has one row?
    – marmot
    1 hour ago










  • @marmot, there will be many of these multirow rows. I was using a singular row to illustrate my issue.
    – justathought
    32 mins ago






  • 1




    Yes, but this is precisely the reason why it does not work as you want it to work. If you use multirow, you want to make sure that you have multiple rows. At least for the example you show, makecell might be a better choice. (As for the example you do not show, I can't say much since my crystal ball got stolen.;-)
    – marmot
    27 mins ago






  • 1




    I misunderstood your first comment! having read your answer I understand the meaning of "one row". Thank you!
    – justathought
    18 mins ago






  • 1




    Thanks for choosing "issues". ;-)
    – marmot
    14 mins ago












  • 2




    Welcome to TeX.SE! What is the role of multirow in a table that only has one row?
    – marmot
    1 hour ago










  • @marmot, there will be many of these multirow rows. I was using a singular row to illustrate my issue.
    – justathought
    32 mins ago






  • 1




    Yes, but this is precisely the reason why it does not work as you want it to work. If you use multirow, you want to make sure that you have multiple rows. At least for the example you show, makecell might be a better choice. (As for the example you do not show, I can't say much since my crystal ball got stolen.;-)
    – marmot
    27 mins ago






  • 1




    I misunderstood your first comment! having read your answer I understand the meaning of "one row". Thank you!
    – justathought
    18 mins ago






  • 1




    Thanks for choosing "issues". ;-)
    – marmot
    14 mins ago







2




2




Welcome to TeX.SE! What is the role of multirow in a table that only has one row?
– marmot
1 hour ago




Welcome to TeX.SE! What is the role of multirow in a table that only has one row?
– marmot
1 hour ago












@marmot, there will be many of these multirow rows. I was using a singular row to illustrate my issue.
– justathought
32 mins ago




@marmot, there will be many of these multirow rows. I was using a singular row to illustrate my issue.
– justathought
32 mins ago




1




1




Yes, but this is precisely the reason why it does not work as you want it to work. If you use multirow, you want to make sure that you have multiple rows. At least for the example you show, makecell might be a better choice. (As for the example you do not show, I can't say much since my crystal ball got stolen.;-)
– marmot
27 mins ago




Yes, but this is precisely the reason why it does not work as you want it to work. If you use multirow, you want to make sure that you have multiple rows. At least for the example you show, makecell might be a better choice. (As for the example you do not show, I can't say much since my crystal ball got stolen.;-)
– marmot
27 mins ago




1




1




I misunderstood your first comment! having read your answer I understand the meaning of "one row". Thank you!
– justathought
18 mins ago




I misunderstood your first comment! having read your answer I understand the meaning of "one row". Thank you!
– justathought
18 mins ago




1




1




Thanks for choosing "issues". ;-)
– marmot
14 mins ago




Thanks for choosing "issues". ;-)
– marmot
14 mins ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










From "the text is displaying as it should" I take that you are looking for makecell.



documentclassarticle
usepackage[utf8]inputenc
usepackagemakecell

begindocument
begintabularc
hline
Name & Website &
makecelle-mail \ phone &
makecellline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here



Of course, you can do the same with multirow provided you really have multiple rows.



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & line 1 \
& & & line 2 \
& & & line 3 \
hline
endtabular
enddocument


enter image description here



Possible issues with shortstack are discussed in egreg's nice answer.






share|improve this answer






















  • Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
    – justathought
    21 mins ago


















up vote
2
down vote













The following example shows why shortstack should not be used and proposes a solution for your problem.



documentclassarticle

newcommandnotshortstack[2][l]%
begintabular@#1@#2endtabular%


begindocument

% why shortstak should not be used
fboxshortstackline 1 \ aaa \ line 3
fboxshortstackling 1 \ aaa \ line 3

bigskip

begintabularc
hline
Name & Website & notshortstack[c]e-mail \ phone &
notshortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here






share|improve this answer




















  • +1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
    – marmot
    58 mins ago










  • @marmot makecell can do much more; it mostly depends on what one has to do.
    – egreg
    55 mins ago










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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






justathought is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452042%2fcell-boundary-line-issue-when-using-multirow-shortstack%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










From "the text is displaying as it should" I take that you are looking for makecell.



documentclassarticle
usepackage[utf8]inputenc
usepackagemakecell

begindocument
begintabularc
hline
Name & Website &
makecelle-mail \ phone &
makecellline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here



Of course, you can do the same with multirow provided you really have multiple rows.



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & line 1 \
& & & line 2 \
& & & line 3 \
hline
endtabular
enddocument


enter image description here



Possible issues with shortstack are discussed in egreg's nice answer.






share|improve this answer






















  • Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
    – justathought
    21 mins ago















up vote
3
down vote



accepted










From "the text is displaying as it should" I take that you are looking for makecell.



documentclassarticle
usepackage[utf8]inputenc
usepackagemakecell

begindocument
begintabularc
hline
Name & Website &
makecelle-mail \ phone &
makecellline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here



Of course, you can do the same with multirow provided you really have multiple rows.



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & line 1 \
& & & line 2 \
& & & line 3 \
hline
endtabular
enddocument


enter image description here



Possible issues with shortstack are discussed in egreg's nice answer.






share|improve this answer






















  • Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
    – justathought
    21 mins ago













up vote
3
down vote



accepted







up vote
3
down vote



accepted






From "the text is displaying as it should" I take that you are looking for makecell.



documentclassarticle
usepackage[utf8]inputenc
usepackagemakecell

begindocument
begintabularc
hline
Name & Website &
makecelle-mail \ phone &
makecellline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here



Of course, you can do the same with multirow provided you really have multiple rows.



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & line 1 \
& & & line 2 \
& & & line 3 \
hline
endtabular
enddocument


enter image description here



Possible issues with shortstack are discussed in egreg's nice answer.






share|improve this answer














From "the text is displaying as it should" I take that you are looking for makecell.



documentclassarticle
usepackage[utf8]inputenc
usepackagemakecell

begindocument
begintabularc
hline
Name & Website &
makecelle-mail \ phone &
makecellline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here



Of course, you can do the same with multirow provided you really have multiple rows.



documentclassarticle
usepackage[utf8]inputenc
usepackagemultirow

begindocument
begintabularc
hline
multirow3*Name & multirow3*Website & multirow3*shortstack[c]e-mail \ phone & line 1 \
& & & line 2 \
& & & line 3 \
hline
endtabular
enddocument


enter image description here



Possible issues with shortstack are discussed in egreg's nice answer.







share|improve this answer














share|improve this answer



share|improve this answer








edited 12 mins ago

























answered 1 hour ago









marmot

59.4k463128




59.4k463128











  • Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
    – justathought
    21 mins ago

















  • Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
    – justathought
    21 mins ago
















Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
– justathought
21 mins ago





Thank you, makecell is exactly what I need. I will also change the title of my post to something more humble.
– justathought
21 mins ago











up vote
2
down vote













The following example shows why shortstack should not be used and proposes a solution for your problem.



documentclassarticle

newcommandnotshortstack[2][l]%
begintabular@#1@#2endtabular%


begindocument

% why shortstak should not be used
fboxshortstackline 1 \ aaa \ line 3
fboxshortstackling 1 \ aaa \ line 3

bigskip

begintabularc
hline
Name & Website & notshortstack[c]e-mail \ phone &
notshortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here






share|improve this answer




















  • +1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
    – marmot
    58 mins ago










  • @marmot makecell can do much more; it mostly depends on what one has to do.
    – egreg
    55 mins ago














up vote
2
down vote













The following example shows why shortstack should not be used and proposes a solution for your problem.



documentclassarticle

newcommandnotshortstack[2][l]%
begintabular@#1@#2endtabular%


begindocument

% why shortstak should not be used
fboxshortstackline 1 \ aaa \ line 3
fboxshortstackling 1 \ aaa \ line 3

bigskip

begintabularc
hline
Name & Website & notshortstack[c]e-mail \ phone &
notshortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here






share|improve this answer




















  • +1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
    – marmot
    58 mins ago










  • @marmot makecell can do much more; it mostly depends on what one has to do.
    – egreg
    55 mins ago












up vote
2
down vote










up vote
2
down vote









The following example shows why shortstack should not be used and proposes a solution for your problem.



documentclassarticle

newcommandnotshortstack[2][l]%
begintabular@#1@#2endtabular%


begindocument

% why shortstak should not be used
fboxshortstackline 1 \ aaa \ line 3
fboxshortstackling 1 \ aaa \ line 3

bigskip

begintabularc
hline
Name & Website & notshortstack[c]e-mail \ phone &
notshortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here






share|improve this answer












The following example shows why shortstack should not be used and proposes a solution for your problem.



documentclassarticle

newcommandnotshortstack[2][l]%
begintabular@#1@#2endtabular%


begindocument

% why shortstak should not be used
fboxshortstackline 1 \ aaa \ line 3
fboxshortstackling 1 \ aaa \ line 3

bigskip

begintabularc
hline
Name & Website & notshortstack[c]e-mail \ phone &
notshortstackline 1 \ line 2 \ line 3 \
hline
endtabular
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 1 hour ago









egreg

684k8418223067




684k8418223067











  • +1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
    – marmot
    58 mins ago










  • @marmot makecell can do much more; it mostly depends on what one has to do.
    – egreg
    55 mins ago
















  • +1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
    – marmot
    58 mins ago










  • @marmot makecell can do much more; it mostly depends on what one has to do.
    – egreg
    55 mins ago















+1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
– marmot
58 mins ago




+1 Ironically, longstack would be shorter than nonshortstack ;-) (And isn't that (more or less) what makecell does?
– marmot
58 mins ago












@marmot makecell can do much more; it mostly depends on what one has to do.
– egreg
55 mins ago




@marmot makecell can do much more; it mostly depends on what one has to do.
– egreg
55 mins ago










justathought is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















justathought is a new contributor. Be nice, and check out our Code of Conduct.












justathought is a new contributor. Be nice, and check out our Code of Conduct.











justathought is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452042%2fcell-boundary-line-issue-when-using-multirow-shortstack%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke