Drawing a thick line through rows of a table to separate first column from second column












1















I have code for a table to be drawn. It is almost what I want. I am requesting three modifications to be made to it.



I would like vertical lines, forming the left and right edges of the table, to be drawn. These lines together with the horizontal line above the title and the horizontal line after the last row of the table should make a rectangle.



There are two vertical lines separating the three columns. I would like the vertical line separating the first column from the other two columns to be either 1.5 times thicker than the vertical line separating the second and third column and the vertical lines forming the left and right edges of the table. (In the code provided, two parallel lines drawn close to each other separate the first and second columns.)



The data - certain percentages - should be horizontally centered in their rows.



documentclass{amsart}

usepackage{array}
newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}

begin{document}


begin{center}
begin{tabular}{l||r|r}
hline
multicolumn{3}{c}{textbf{---Title is Lengthy --- Here is First Line}}\
multicolumn{3}{c}{textbf{Here is Second Line}} \ hlinehline
textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}}{textbf{Percent Present in Habitat B}}\hline

textbf{Mammals} & & \
hspace*{1em}Dog & 20% & 5% \
hspace*{1em}Cow & 10% & 7% \ hline
textbf{Bird} & & \
hspace*{1em}Peacock & 15% & 25% \ hline
hspace*{1em}Turkey & 25% & 40% \ hline
textbf{Animals} & textbf{3%} & textbf{5%} \
hline
end{tabular}
end{center}

end{document}









share|improve this question



























    1















    I have code for a table to be drawn. It is almost what I want. I am requesting three modifications to be made to it.



    I would like vertical lines, forming the left and right edges of the table, to be drawn. These lines together with the horizontal line above the title and the horizontal line after the last row of the table should make a rectangle.



    There are two vertical lines separating the three columns. I would like the vertical line separating the first column from the other two columns to be either 1.5 times thicker than the vertical line separating the second and third column and the vertical lines forming the left and right edges of the table. (In the code provided, two parallel lines drawn close to each other separate the first and second columns.)



    The data - certain percentages - should be horizontally centered in their rows.



    documentclass{amsart}

    usepackage{array}
    newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}

    begin{document}


    begin{center}
    begin{tabular}{l||r|r}
    hline
    multicolumn{3}{c}{textbf{---Title is Lengthy --- Here is First Line}}\
    multicolumn{3}{c}{textbf{Here is Second Line}} \ hlinehline
    textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}}{textbf{Percent Present in Habitat B}}\hline

    textbf{Mammals} & & \
    hspace*{1em}Dog & 20% & 5% \
    hspace*{1em}Cow & 10% & 7% \ hline
    textbf{Bird} & & \
    hspace*{1em}Peacock & 15% & 25% \ hline
    hspace*{1em}Turkey & 25% & 40% \ hline
    textbf{Animals} & textbf{3%} & textbf{5%} \
    hline
    end{tabular}
    end{center}

    end{document}









    share|improve this question

























      1












      1








      1








      I have code for a table to be drawn. It is almost what I want. I am requesting three modifications to be made to it.



      I would like vertical lines, forming the left and right edges of the table, to be drawn. These lines together with the horizontal line above the title and the horizontal line after the last row of the table should make a rectangle.



      There are two vertical lines separating the three columns. I would like the vertical line separating the first column from the other two columns to be either 1.5 times thicker than the vertical line separating the second and third column and the vertical lines forming the left and right edges of the table. (In the code provided, two parallel lines drawn close to each other separate the first and second columns.)



      The data - certain percentages - should be horizontally centered in their rows.



      documentclass{amsart}

      usepackage{array}
      newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}

      begin{document}


      begin{center}
      begin{tabular}{l||r|r}
      hline
      multicolumn{3}{c}{textbf{---Title is Lengthy --- Here is First Line}}\
      multicolumn{3}{c}{textbf{Here is Second Line}} \ hlinehline
      textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}}{textbf{Percent Present in Habitat B}}\hline

      textbf{Mammals} & & \
      hspace*{1em}Dog & 20% & 5% \
      hspace*{1em}Cow & 10% & 7% \ hline
      textbf{Bird} & & \
      hspace*{1em}Peacock & 15% & 25% \ hline
      hspace*{1em}Turkey & 25% & 40% \ hline
      textbf{Animals} & textbf{3%} & textbf{5%} \
      hline
      end{tabular}
      end{center}

      end{document}









      share|improve this question














      I have code for a table to be drawn. It is almost what I want. I am requesting three modifications to be made to it.



      I would like vertical lines, forming the left and right edges of the table, to be drawn. These lines together with the horizontal line above the title and the horizontal line after the last row of the table should make a rectangle.



      There are two vertical lines separating the three columns. I would like the vertical line separating the first column from the other two columns to be either 1.5 times thicker than the vertical line separating the second and third column and the vertical lines forming the left and right edges of the table. (In the code provided, two parallel lines drawn close to each other separate the first and second columns.)



      The data - certain percentages - should be horizontally centered in their rows.



      documentclass{amsart}

      usepackage{array}
      newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}

      begin{document}


      begin{center}
      begin{tabular}{l||r|r}
      hline
      multicolumn{3}{c}{textbf{---Title is Lengthy --- Here is First Line}}\
      multicolumn{3}{c}{textbf{Here is Second Line}} \ hlinehline
      textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}}{textbf{Percent Present in Habitat B}}\hline

      textbf{Mammals} & & \
      hspace*{1em}Dog & 20% & 5% \
      hspace*{1em}Cow & 10% & 7% \ hline
      textbf{Bird} & & \
      hspace*{1em}Peacock & 15% & 25% \ hline
      hspace*{1em}Turkey & 25% & 40% \ hline
      textbf{Animals} & textbf{3%} & textbf{5%} \
      hline
      end{tabular}
      end{center}

      end{document}






      tables






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 15 at 21:54









      A gal named DesireA gal named Desire

      6091311




      6091311






















          1 Answer
          1






          active

          oldest

          votes


















          3














          For the thicker vertical line, you have the boldline package which does exactly what you want, with syntax V{num} in the table preamble to obtain a vertical rule with thickness num times arrayrulewidth.



          Other than that, I simplified a bit your code, and propose two variants,– the second with the thead command, from makecell, which allows for line breaks within standard columns and a common formatting. Furthermore, the content of thead is centred by default, both vertically and horizontally.



          documentclass{amsart}

          usepackage{array}
          usepackage{boldline}usepackage{makecell}
          renewcommand{theadfont} {normalsizebfseries}


          newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
          setlength{extrarowheight}{3pt}

          begin{document}


          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{textbf{---Title is Lengthy --- Here is First Line}}\
          multicolumn{3}{|c|}{textbf{Here is Second Line}} \ hlinehline
          textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}|}{textbf{Percent Present in Habitat B}}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}
          vskip 1cm

          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \ hlinehline
          textbf{Class}&thead{Percent Present in \ Habitat A} &thead{Percent Present in \ Habitat B}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}

          end{document}


          enter image description here



          To have an unboxed title, and a bigger vertical spacing between the title and the first horizontal line, you can use this code:



              begin{tabular}{|lV{1.5}c|c|}
          multicolumn{3}{c}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \
          noalign{vspace{2ex}}hline
          textbf{Class}&thead{Percent Present in \ Habitat A} & thead{Percent Present in \ Habitat B}\ hline
          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}


          enter image description here






          share|improve this answer


























          • That is the display that I want.

            – A gal named Desire
            Jan 15 at 22:55











          • Which one, out of curiosity?

            – Bernard
            Jan 15 at 22:56






          • 1





            Wait a moment, I'll post an example.

            – Bernard
            Jan 15 at 23:06






          • 1





            I've posted an example. Is it more or less like you want?

            – Bernard
            Jan 15 at 23:22






          • 1





            It is used to insert things between two rows, which do not have to be aligned within a column.

            – Bernard
            Jan 16 at 0:04











          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%2f470310%2fdrawing-a-thick-line-through-rows-of-a-table-to-separate-first-column-from-secon%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









          3














          For the thicker vertical line, you have the boldline package which does exactly what you want, with syntax V{num} in the table preamble to obtain a vertical rule with thickness num times arrayrulewidth.



          Other than that, I simplified a bit your code, and propose two variants,– the second with the thead command, from makecell, which allows for line breaks within standard columns and a common formatting. Furthermore, the content of thead is centred by default, both vertically and horizontally.



          documentclass{amsart}

          usepackage{array}
          usepackage{boldline}usepackage{makecell}
          renewcommand{theadfont} {normalsizebfseries}


          newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
          setlength{extrarowheight}{3pt}

          begin{document}


          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{textbf{---Title is Lengthy --- Here is First Line}}\
          multicolumn{3}{|c|}{textbf{Here is Second Line}} \ hlinehline
          textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}|}{textbf{Percent Present in Habitat B}}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}
          vskip 1cm

          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \ hlinehline
          textbf{Class}&thead{Percent Present in \ Habitat A} &thead{Percent Present in \ Habitat B}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}

          end{document}


          enter image description here



          To have an unboxed title, and a bigger vertical spacing between the title and the first horizontal line, you can use this code:



              begin{tabular}{|lV{1.5}c|c|}
          multicolumn{3}{c}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \
          noalign{vspace{2ex}}hline
          textbf{Class}&thead{Percent Present in \ Habitat A} & thead{Percent Present in \ Habitat B}\ hline
          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}


          enter image description here






          share|improve this answer


























          • That is the display that I want.

            – A gal named Desire
            Jan 15 at 22:55











          • Which one, out of curiosity?

            – Bernard
            Jan 15 at 22:56






          • 1





            Wait a moment, I'll post an example.

            – Bernard
            Jan 15 at 23:06






          • 1





            I've posted an example. Is it more or less like you want?

            – Bernard
            Jan 15 at 23:22






          • 1





            It is used to insert things between two rows, which do not have to be aligned within a column.

            – Bernard
            Jan 16 at 0:04
















          3














          For the thicker vertical line, you have the boldline package which does exactly what you want, with syntax V{num} in the table preamble to obtain a vertical rule with thickness num times arrayrulewidth.



          Other than that, I simplified a bit your code, and propose two variants,– the second with the thead command, from makecell, which allows for line breaks within standard columns and a common formatting. Furthermore, the content of thead is centred by default, both vertically and horizontally.



          documentclass{amsart}

          usepackage{array}
          usepackage{boldline}usepackage{makecell}
          renewcommand{theadfont} {normalsizebfseries}


          newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
          setlength{extrarowheight}{3pt}

          begin{document}


          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{textbf{---Title is Lengthy --- Here is First Line}}\
          multicolumn{3}{|c|}{textbf{Here is Second Line}} \ hlinehline
          textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}|}{textbf{Percent Present in Habitat B}}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}
          vskip 1cm

          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \ hlinehline
          textbf{Class}&thead{Percent Present in \ Habitat A} &thead{Percent Present in \ Habitat B}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}

          end{document}


          enter image description here



          To have an unboxed title, and a bigger vertical spacing between the title and the first horizontal line, you can use this code:



              begin{tabular}{|lV{1.5}c|c|}
          multicolumn{3}{c}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \
          noalign{vspace{2ex}}hline
          textbf{Class}&thead{Percent Present in \ Habitat A} & thead{Percent Present in \ Habitat B}\ hline
          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}


          enter image description here






          share|improve this answer


























          • That is the display that I want.

            – A gal named Desire
            Jan 15 at 22:55











          • Which one, out of curiosity?

            – Bernard
            Jan 15 at 22:56






          • 1





            Wait a moment, I'll post an example.

            – Bernard
            Jan 15 at 23:06






          • 1





            I've posted an example. Is it more or less like you want?

            – Bernard
            Jan 15 at 23:22






          • 1





            It is used to insert things between two rows, which do not have to be aligned within a column.

            – Bernard
            Jan 16 at 0:04














          3












          3








          3







          For the thicker vertical line, you have the boldline package which does exactly what you want, with syntax V{num} in the table preamble to obtain a vertical rule with thickness num times arrayrulewidth.



          Other than that, I simplified a bit your code, and propose two variants,– the second with the thead command, from makecell, which allows for line breaks within standard columns and a common formatting. Furthermore, the content of thead is centred by default, both vertically and horizontally.



          documentclass{amsart}

          usepackage{array}
          usepackage{boldline}usepackage{makecell}
          renewcommand{theadfont} {normalsizebfseries}


          newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
          setlength{extrarowheight}{3pt}

          begin{document}


          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{textbf{---Title is Lengthy --- Here is First Line}}\
          multicolumn{3}{|c|}{textbf{Here is Second Line}} \ hlinehline
          textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}|}{textbf{Percent Present in Habitat B}}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}
          vskip 1cm

          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \ hlinehline
          textbf{Class}&thead{Percent Present in \ Habitat A} &thead{Percent Present in \ Habitat B}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}

          end{document}


          enter image description here



          To have an unboxed title, and a bigger vertical spacing between the title and the first horizontal line, you can use this code:



              begin{tabular}{|lV{1.5}c|c|}
          multicolumn{3}{c}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \
          noalign{vspace{2ex}}hline
          textbf{Class}&thead{Percent Present in \ Habitat A} & thead{Percent Present in \ Habitat B}\ hline
          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}


          enter image description here






          share|improve this answer















          For the thicker vertical line, you have the boldline package which does exactly what you want, with syntax V{num} in the table preamble to obtain a vertical rule with thickness num times arrayrulewidth.



          Other than that, I simplified a bit your code, and propose two variants,– the second with the thead command, from makecell, which allows for line breaks within standard columns and a common formatting. Furthermore, the content of thead is centred by default, both vertically and horizontally.



          documentclass{amsart}

          usepackage{array}
          usepackage{boldline}usepackage{makecell}
          renewcommand{theadfont} {normalsizebfseries}


          newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
          setlength{extrarowheight}{3pt}

          begin{document}


          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{textbf{---Title is Lengthy --- Here is First Line}}\
          multicolumn{3}{|c|}{textbf{Here is Second Line}} \ hlinehline
          textbf{Class}&multicolumn{1}{C{1.5in}|}{textbf{Percent Present in Habitat A}}&multicolumn{1}{C{1.75in}|}{textbf{Percent Present in Habitat B}}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}
          vskip 1cm

          begin{center}
          begin{tabular}{|lV{1.5}c|c|}
          hline
          multicolumn{3}{|c|}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \ hlinehline
          textbf{Class}&thead{Percent Present in \ Habitat A} &thead{Percent Present in \ Habitat B}\hline

          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}
          end{center}

          end{document}


          enter image description here



          To have an unboxed title, and a bigger vertical spacing between the title and the first horizontal line, you can use this code:



              begin{tabular}{|lV{1.5}c|c|}
          multicolumn{3}{c}{thead{---Title is Lengthy --- Here is First Line\ Here is Second Line}} \
          noalign{vspace{2ex}}hline
          textbf{Class}&thead{Percent Present in \ Habitat A} & thead{Percent Present in \ Habitat B}\ hline
          textbf{Mammals} & & \
          quad Dog & 20% & 5% \
          quad Cow & 10% & 7% \ hline
          textbf{Bird} & & \
          quad Peacock & 15% & 25% \ hline
          quad Turkey & 25% & 40% \ hline
          textbf{Animals} & textbf{3%} & textbf{5%} \
          hline
          end{tabular}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 15 at 23:21

























          answered Jan 15 at 22:26









          BernardBernard

          168k770195




          168k770195













          • That is the display that I want.

            – A gal named Desire
            Jan 15 at 22:55











          • Which one, out of curiosity?

            – Bernard
            Jan 15 at 22:56






          • 1





            Wait a moment, I'll post an example.

            – Bernard
            Jan 15 at 23:06






          • 1





            I've posted an example. Is it more or less like you want?

            – Bernard
            Jan 15 at 23:22






          • 1





            It is used to insert things between two rows, which do not have to be aligned within a column.

            – Bernard
            Jan 16 at 0:04



















          • That is the display that I want.

            – A gal named Desire
            Jan 15 at 22:55











          • Which one, out of curiosity?

            – Bernard
            Jan 15 at 22:56






          • 1





            Wait a moment, I'll post an example.

            – Bernard
            Jan 15 at 23:06






          • 1





            I've posted an example. Is it more or less like you want?

            – Bernard
            Jan 15 at 23:22






          • 1





            It is used to insert things between two rows, which do not have to be aligned within a column.

            – Bernard
            Jan 16 at 0:04

















          That is the display that I want.

          – A gal named Desire
          Jan 15 at 22:55





          That is the display that I want.

          – A gal named Desire
          Jan 15 at 22:55













          Which one, out of curiosity?

          – Bernard
          Jan 15 at 22:56





          Which one, out of curiosity?

          – Bernard
          Jan 15 at 22:56




          1




          1





          Wait a moment, I'll post an example.

          – Bernard
          Jan 15 at 23:06





          Wait a moment, I'll post an example.

          – Bernard
          Jan 15 at 23:06




          1




          1





          I've posted an example. Is it more or less like you want?

          – Bernard
          Jan 15 at 23:22





          I've posted an example. Is it more or less like you want?

          – Bernard
          Jan 15 at 23:22




          1




          1





          It is used to insert things between two rows, which do not have to be aligned within a column.

          – Bernard
          Jan 16 at 0:04





          It is used to insert things between two rows, which do not have to be aligned within a column.

          – Bernard
          Jan 16 at 0:04


















          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%2f470310%2fdrawing-a-thick-line-through-rows-of-a-table-to-separate-first-column-from-secon%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

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents