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
Can two people see the same photon?
What does the writing on Poe's helmet say?
Flight departed from the gate 5 min before scheduled departure time. Refund options
What does it mean that physics no longer uses mechanical models to describe phenomena?
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
Did any compiler fully use 80-bit floating point?
Why is a lens darker than other ones when applying the same settings?
Caught masturbating at work
A term for a woman complaining about things/begging in a cute/childish way
Delete free apps from Play Store library
Why are vacuum tubes still used in amateur radios?
Does the Mueller report show a conspiracy between Russia and the Trump Campaign?
Trying to understand entropy as a novice in thermodynamics
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
Relating to the President and obstruction, were Mueller's conclusions preordained?
What are the main differences between the original Stargate SG-1 and the Final Cut edition?
How were pictures turned from film to a big picture in a picture frame before digital scanning?
The test team as an enemy of development? And how can this be avoided?
How many time has Arya actually used Needle?
How does light 'choose' between wave and particle behaviour?
Why is it faster to reheat something than it is to cook it?
I can't produce songs
How does TikZ render an arc?
White walkers, cemeteries and wights
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:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
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:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
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:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
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:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
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 \
.
documentclassarticle
begindocument
Your table:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
A table with an empty row:
begintabular
$p$ & $barp$\
hline
&\
1 & 0\
0 & 1
endtabular
The correct table:
begintabular
$p$ & $barp$\
hline
1 & 0\
0 & 1
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%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 \
.
documentclassarticle
begindocument
Your table:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
A table with an empty row:
begintabular
$p$ & $barp$\
hline
&\
1 & 0\
0 & 1
endtabular
The correct table:
begintabular
$p$ & $barp$\
hline
1 & 0\
0 & 1
endtabular
enddocument
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 \
.
documentclassarticle
begindocument
Your table:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
A table with an empty row:
begintabular
$p$ & $barp$\
hline
&\
1 & 0\
0 & 1
endtabular
The correct table:
begintabular
$p$ & $barp$\
hline
1 & 0\
0 & 1
endtabular
enddocument
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 \
.
documentclassarticle
begindocument
Your table:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
A table with an empty row:
begintabular
$p$ & $barp$\
hline
&\
1 & 0\
0 & 1
endtabular
The correct table:
begintabular
$p$ & $barp$\
hline
1 & 0\
0 & 1
endtabular
enddocument
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 \
.
documentclassarticle
begindocument
Your table:
begintabular
$p$ & $barp$\
hline\
1 & 0\
0 & 1
endtabular
A table with an empty row:
begintabular
$p$ & $barp$\
hline
&\
1 & 0\
0 & 1
endtabular
The correct table:
begintabular
$p$ & $barp$\
hline
1 & 0\
0 & 1
endtabular
enddocument
answered 11 mins 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