cell boundary line issue when using multirow + shortstack
Clash 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:
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
New contributor
add a comment |Â
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:
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
New contributor
2
Welcome to TeX.SE! What is the role ofmultirow
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
add a comment |Â
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:
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
New contributor
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:
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
tables multirow shortstack
New contributor
New contributor
edited 18 mins ago
New contributor
asked 1 hour ago
justathought
1085
1085
New contributor
New contributor
2
Welcome to TeX.SE! What is the role ofmultirow
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
add a comment |Â
2
Welcome to TeX.SE! What is the role ofmultirow
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
add a comment |Â
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
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
Possible issues with shortstack
are discussed in egreg's nice 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
add a comment |Â
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
+1 Ironically,longstack
would be shorter thannonshortstack
;-) (And isn't that (more or less) whatmakecell
does?
â marmot
58 mins ago
@marmotmakecell
can do much more; it mostly depends on what one has to do.
â egreg
55 mins ago
add a comment |Â
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
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
Possible issues with shortstack
are discussed in egreg's nice 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
add a comment |Â
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
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
Possible issues with shortstack
are discussed in egreg's nice 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
add a comment |Â
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
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
Possible issues with shortstack
are discussed in egreg's nice 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
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
Possible issues with shortstack
are discussed in egreg's nice 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
add a comment |Â
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
add a comment |Â
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
+1 Ironically,longstack
would be shorter thannonshortstack
;-) (And isn't that (more or less) whatmakecell
does?
â marmot
58 mins ago
@marmotmakecell
can do much more; it mostly depends on what one has to do.
â egreg
55 mins ago
add a comment |Â
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
+1 Ironically,longstack
would be shorter thannonshortstack
;-) (And isn't that (more or less) whatmakecell
does?
â marmot
58 mins ago
@marmotmakecell
can do much more; it mostly depends on what one has to do.
â egreg
55 mins ago
add a comment |Â
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
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
answered 1 hour ago
egreg
684k8418223067
684k8418223067
+1 Ironically,longstack
would be shorter thannonshortstack
;-) (And isn't that (more or less) whatmakecell
does?
â marmot
58 mins ago
@marmotmakecell
can do much more; it mostly depends on what one has to do.
â egreg
55 mins ago
add a comment |Â
+1 Ironically,longstack
would be shorter thannonshortstack
;-) (And isn't that (more or less) whatmakecell
does?
â marmot
58 mins ago
@marmotmakecell
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
add a comment |Â
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.
justathought is a new contributor. Be nice, and check out our Code of Conduct.
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
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
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
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
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
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