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












1















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



enter image description here



Can someone please explain where did I made a mistake? Thanks in advance.










share|improve this question


















  • 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. 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
















1















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



enter image description here



Can someone please explain where did I made a mistake? Thanks in advance.










share|improve this question


















  • 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. 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














1












1








1








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



enter image description here



Can someone please explain where did I made a mistake? Thanks in advance.










share|improve this question














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



enter image description here



Can someone please explain where did I made a mistake? Thanks in advance.







tables






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 16 '18 at 14:42









MS1902MS1902

4914




4914








  • 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. 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














  • 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. 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








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










1 Answer
1






active

oldest

votes


















0














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}


enter image description here





share
























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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}


    enter image description here





    share




























      0














      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}


      enter image description here





      share


























        0












        0








        0







        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}


        enter image description here





        share













        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}


        enter image description here






        share











        share


        share










        answered 1 min ago









        CarLaTeXCarLaTeX

        35k553145




        35k553145






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

            Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

            How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...