makecell alters vertical alignment across table row
Consider this example:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[l]{A\B\C\D\E}
end{tabular}
end{document}
The output is:
As can be seen, the use of makecell
altered the vertical alignment in the rest of the row. How to bring the vertical alignment of the affected row in harmony with the rest of the table (starting from top)?
tables vertical-alignment makecell
add a comment |
Consider this example:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[l]{A\B\C\D\E}
end{tabular}
end{document}
The output is:
As can be seen, the use of makecell
altered the vertical alignment in the rest of the row. How to bring the vertical alignment of the affected row in harmony with the rest of the table (starting from top)?
tables vertical-alignment makecell
add a comment |
Consider this example:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[l]{A\B\C\D\E}
end{tabular}
end{document}
The output is:
As can be seen, the use of makecell
altered the vertical alignment in the rest of the row. How to bring the vertical alignment of the affected row in harmony with the rest of the table (starting from top)?
tables vertical-alignment makecell
Consider this example:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[l]{A\B\C\D\E}
end{tabular}
end{document}
The output is:
As can be seen, the use of makecell
altered the vertical alignment in the rest of the row. How to bring the vertical alignment of the affected row in harmony with the rest of the table (starting from top)?
tables vertical-alignment makecell
tables vertical-alignment makecell
asked 3 hours ago
ViestursViesturs
1,63531123
1,63531123
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The default for makecell
is centred
, both vertically and horizontally. You could use makecell[lt]{A\B\C\D\E}
.
However, why use makecell
in a p
column type? You may as well use this code:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
newcommand{nl}{newline}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & Anl Bnl Cnl Dnl E
end{tabular}
end{document}
you have a dangling}
inCnl Dnl E}
– Viesturs
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
add a comment |
If you want to use makecell
use t
option:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{6cm}p{6cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[tl]{A\B\C\D\E}
end{tabular}
end{document}
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%2f470934%2fmakecell-alters-vertical-alignment-across-table-row%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The default for makecell
is centred
, both vertically and horizontally. You could use makecell[lt]{A\B\C\D\E}
.
However, why use makecell
in a p
column type? You may as well use this code:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
newcommand{nl}{newline}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & Anl Bnl Cnl Dnl E
end{tabular}
end{document}
you have a dangling}
inCnl Dnl E}
– Viesturs
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
add a comment |
The default for makecell
is centred
, both vertically and horizontally. You could use makecell[lt]{A\B\C\D\E}
.
However, why use makecell
in a p
column type? You may as well use this code:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
newcommand{nl}{newline}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & Anl Bnl Cnl Dnl E
end{tabular}
end{document}
you have a dangling}
inCnl Dnl E}
– Viesturs
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
add a comment |
The default for makecell
is centred
, both vertically and horizontally. You could use makecell[lt]{A\B\C\D\E}
.
However, why use makecell
in a p
column type? You may as well use this code:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
newcommand{nl}{newline}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & Anl Bnl Cnl Dnl E
end{tabular}
end{document}
The default for makecell
is centred
, both vertically and horizontally. You could use makecell[lt]{A\B\C\D\E}
.
However, why use makecell
in a p
column type? You may as well use this code:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
newcommand{nl}{newline}
begin{document}
begin{tabular}{p{3cm}p{3cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & Anl Bnl Cnl Dnl E
end{tabular}
end{document}
edited 2 hours ago
answered 2 hours ago
BernardBernard
167k770195
167k770195
you have a dangling}
inCnl Dnl E}
– Viesturs
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
add a comment |
you have a dangling}
inCnl Dnl E}
– Viesturs
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
you have a dangling
}
in Cnl Dnl E}
– Viesturs
2 hours ago
you have a dangling
}
in Cnl Dnl E}
– Viesturs
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
I've seen that. 'Tis fixed. Thanks!
– Bernard
2 hours ago
add a comment |
If you want to use makecell
use t
option:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{6cm}p{6cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[tl]{A\B\C\D\E}
end{tabular}
end{document}
add a comment |
If you want to use makecell
use t
option:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{6cm}p{6cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[tl]{A\B\C\D\E}
end{tabular}
end{document}
add a comment |
If you want to use makecell
use t
option:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{6cm}p{6cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[tl]{A\B\C\D\E}
end{tabular}
end{document}
If you want to use makecell
use t
option:
documentclass{report}
usepackage{makecell}
usepackage{lipsum}
begin{document}
begin{tabular}{p{6cm}p{6cm}}
lipsum[1][1] & lipsum[1][2-4]\
lipsum[1][5] & makecell[tl]{A\B\C\D\E}
end{tabular}
end{document}
edited 2 hours ago
answered 2 hours ago
CarLaTeXCarLaTeX
30.3k448127
30.3k448127
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%2f470934%2fmakecell-alters-vertical-alignment-across-table-row%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