Tabular environment display very weird Announcing the arrival of Valued Associate #679: Cesar...
Constant factor of an array
What does Turing mean by this statement?
Why is std::move not [[nodiscard]] in C++20?
A term for a woman complaining about things/begging in a cute/childish way
Why BitLocker does not use RSA
I can't produce songs
Did any compiler fully use 80-bit floating point?
Was Kant an Intuitionist about mathematical objects?
Can two people see the same photon?
How to change the tick of the color bar legend to black
Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?
Special flights
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
How does light 'choose' between wave and particle behaviour?
Google .dev domain strangely redirects to https
What order were files/directories output in dir?
Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?
What is the role of と after a noun when it doesn't appear to count or list anything?
Is there hard evidence that the grant peer review system performs significantly better than random?
White walkers, cemeteries and wights
Why datecode is SO IMPORTANT to chip manufacturers?
How often does castling occur in grandmaster games?
What is the "studentd" process?
Is there public access to the Meteor Crater in Arizona?
Tabular environment display very weird
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How to get multiple multirows in a table?How does this TeX code generate automatic hline's in tabular environments?Conversion of table from tabulary to tabularHow to centralize table elements using the tabular environment?Making a different table in latexHorizontal lines in nested tabular environmentTabular Environment is Acting Weirdtabular multicolumn - weird cell sizeMissing vertical lines in the latex table
So, to draw a table, I use the following Latex Code:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
But somehow, this is the outcome
Can someone please explain where did I made a mistake? Thanks in advance.
tables
add a comment |
So, to draw a table, I use the following Latex Code:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
But somehow, this is the outcome
Can someone please explain where did I made a mistake? Thanks in advance.
tables
3
Leave out the \ afterhline
– CarLaTeX
Jan 16 '18 at 14:49
You're welcome! I think you could delete your question.
– CarLaTeX
Jan 17 '18 at 4:35
There are two other "mistakes" in case of a formal table for a serious journal: (1) Vertical lines. Avoid it! (2)hline
. Usetoprule
,bottomrule
andmidrule
instead ofhline
for horizontal rules (need the the packagebooktabs
in the preamble).
– Fran
Jan 17 '18 at 5:26
add a comment |
So, to draw a table, I use the following Latex Code:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
But somehow, this is the outcome
Can someone please explain where did I made a mistake? Thanks in advance.
tables
So, to draw a table, I use the following Latex Code:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
But somehow, this is the outcome
Can someone please explain where did I made a mistake? Thanks in advance.
tables
tables
asked Jan 16 '18 at 14:42
MS1902MS1902
4914
4914
3
Leave out the \ afterhline
– CarLaTeX
Jan 16 '18 at 14:49
You're welcome! I think you could delete your question.
– CarLaTeX
Jan 17 '18 at 4:35
There are two other "mistakes" in case of a formal table for a serious journal: (1) Vertical lines. Avoid it! (2)hline
. Usetoprule
,bottomrule
andmidrule
instead ofhline
for horizontal rules (need the the packagebooktabs
in the preamble).
– Fran
Jan 17 '18 at 5:26
add a comment |
3
Leave out the \ afterhline
– CarLaTeX
Jan 16 '18 at 14:49
You're welcome! I think you could delete your question.
– CarLaTeX
Jan 17 '18 at 4:35
There are two other "mistakes" in case of a formal table for a serious journal: (1) Vertical lines. Avoid it! (2)hline
. Usetoprule
,bottomrule
andmidrule
instead ofhline
for horizontal rules (need the the packagebooktabs
in the preamble).
– Fran
Jan 17 '18 at 5:26
3
3
Leave out the \ after
hline
– CarLaTeX
Jan 16 '18 at 14:49
Leave out the \ after
hline
– CarLaTeX
Jan 16 '18 at 14:49
You're welcome! I think you could delete your question.
– CarLaTeX
Jan 17 '18 at 4:35
You're welcome! I think you could delete your question.
– CarLaTeX
Jan 17 '18 at 4:35
There are two other "mistakes" in case of a formal table for a serious journal: (1) Vertical lines. Avoid it! (2)
hline
. Use toprule
,bottomrule
and midrule
instead of hline
for horizontal rules (need the the package booktabs
in the preamble).– Fran
Jan 17 '18 at 5:26
There are two other "mistakes" in case of a formal table for a serious journal: (1) Vertical lines. Avoid it! (2)
hline
. Use toprule
,bottomrule
and midrule
instead of hline
for horizontal rules (need the the package booktabs
in the preamble).– Fran
Jan 17 '18 at 5:26
add a comment |
1 Answer
1
active
oldest
votes
Putting a \
after the hline
is like you are writing a row with empty cells.
The vertical line at the end of the empty row would appear if you wrote & \
, but of course you do not want an empty row, so simply leave out the \
.
documentclass{article}
begin{document}
Your table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
A table with an empty row:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
&\
1 & 0\
0 & 1
end{tabular}
The correct table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
1 & 0\
0 & 1
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%2f410655%2ftabular-environment-display-very-weird%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Putting a \
after the hline
is like you are writing a row with empty cells.
The vertical line at the end of the empty row would appear if you wrote & \
, but of course you do not want an empty row, so simply leave out the \
.
documentclass{article}
begin{document}
Your table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
A table with an empty row:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
&\
1 & 0\
0 & 1
end{tabular}
The correct table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
1 & 0\
0 & 1
end{tabular}
end{document}
add a comment |
Putting a \
after the hline
is like you are writing a row with empty cells.
The vertical line at the end of the empty row would appear if you wrote & \
, but of course you do not want an empty row, so simply leave out the \
.
documentclass{article}
begin{document}
Your table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
A table with an empty row:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
&\
1 & 0\
0 & 1
end{tabular}
The correct table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
1 & 0\
0 & 1
end{tabular}
end{document}
add a comment |
Putting a \
after the hline
is like you are writing a row with empty cells.
The vertical line at the end of the empty row would appear if you wrote & \
, but of course you do not want an empty row, so simply leave out the \
.
documentclass{article}
begin{document}
Your table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
A table with an empty row:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
&\
1 & 0\
0 & 1
end{tabular}
The correct table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
1 & 0\
0 & 1
end{tabular}
end{document}
Putting a \
after the hline
is like you are writing a row with empty cells.
The vertical line at the end of the empty row would appear if you wrote & \
, but of course you do not want an empty row, so simply leave out the \
.
documentclass{article}
begin{document}
Your table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline\
1 & 0\
0 & 1
end{tabular}
A table with an empty row:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
&\
1 & 0\
0 & 1
end{tabular}
The correct table:
begin{tabular}{|c|c|}
$p$ & $bar{p}$\
hline
1 & 0\
0 & 1
end{tabular}
end{document}
answered 1 min ago
CarLaTeXCarLaTeX
35k553145
35k553145
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%2f410655%2ftabular-environment-display-very-weird%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
3
Leave out the \ after
hline
– CarLaTeX
Jan 16 '18 at 14:49
You're welcome! I think you could delete your question.
– CarLaTeX
Jan 17 '18 at 4:35
There are two other "mistakes" in case of a formal table for a serious journal: (1) Vertical lines. Avoid it! (2)
hline
. Usetoprule
,bottomrule
andmidrule
instead ofhline
for horizontal rules (need the the packagebooktabs
in the preamble).– Fran
Jan 17 '18 at 5:26