How to set row height on a table












3















My Code:



documentclass[12pt,a4paper]{article}
usepackage[utf8]{vietnam}
usepackage{amsmath,amssymb}
usepackage{mathptmx}
usepackage{graphicx}
usepackage[margin=2.1cm]{geometry}

usepackage{tabls}
usepackage{diagbox,pict2e}

begin{document}

begin{tabular}{|*{5}{c}|}
hline
2007 & 2008 & 2009 & 2010 & 2011\
hline
08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
hline
end{tabular}
end{document}


The result:



enter image description here



How to the output file as the following:



enter image description here



Is the tabls package obsolete?










share|improve this question





























    3















    My Code:



    documentclass[12pt,a4paper]{article}
    usepackage[utf8]{vietnam}
    usepackage{amsmath,amssymb}
    usepackage{mathptmx}
    usepackage{graphicx}
    usepackage[margin=2.1cm]{geometry}

    usepackage{tabls}
    usepackage{diagbox,pict2e}

    begin{document}

    begin{tabular}{|*{5}{c}|}
    hline
    2007 & 2008 & 2009 & 2010 & 2011\
    hline
    08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
    27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
    hline
    end{tabular}
    end{document}


    The result:



    enter image description here



    How to the output file as the following:



    enter image description here



    Is the tabls package obsolete?










    share|improve this question



























      3












      3








      3








      My Code:



      documentclass[12pt,a4paper]{article}
      usepackage[utf8]{vietnam}
      usepackage{amsmath,amssymb}
      usepackage{mathptmx}
      usepackage{graphicx}
      usepackage[margin=2.1cm]{geometry}

      usepackage{tabls}
      usepackage{diagbox,pict2e}

      begin{document}

      begin{tabular}{|*{5}{c}|}
      hline
      2007 & 2008 & 2009 & 2010 & 2011\
      hline
      08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
      27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
      hline
      end{tabular}
      end{document}


      The result:



      enter image description here



      How to the output file as the following:



      enter image description here



      Is the tabls package obsolete?










      share|improve this question
















      My Code:



      documentclass[12pt,a4paper]{article}
      usepackage[utf8]{vietnam}
      usepackage{amsmath,amssymb}
      usepackage{mathptmx}
      usepackage{graphicx}
      usepackage[margin=2.1cm]{geometry}

      usepackage{tabls}
      usepackage{diagbox,pict2e}

      begin{document}

      begin{tabular}{|*{5}{c}|}
      hline
      2007 & 2008 & 2009 & 2010 & 2011\
      hline
      08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
      27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
      hline
      end{tabular}
      end{document}


      The result:



      enter image description here



      How to the output file as the following:



      enter image description here



      Is the tabls package obsolete?







      tables tabls






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 '18 at 17:54









      fernando.reyes

      1033




      1033










      asked Nov 23 '18 at 7:48









      Trong VuongTrong Vuong

      7331323




      7331323






















          2 Answers
          2






          active

          oldest

          votes


















          5














          You can use the dirty hack of using rule{depth}{width}{height} in particular row to change the appearance of the row itself.



          documentclass{article}
          %https://tex.stackexchange.com/questions/232202/how-to-add-extra-space-inside-of-a-table
          begin{document}
          begin{tabular}{|*{5}{c}|}
          hline
          2007 & 2008 & 2009 & 2010 & 2011rule[-2ex]{0pt}{6ex}\
          hline
          08.04 & 23.03 & 12.04 & 04.04 & 24.04 rule[1ex]{0pt}{3ex}\
          27.05 & 11.05 & 31.05 & 23.05 & 12.06 rule[-2ex]{0pt}{3ex}\
          hline
          end{tabular}
          end{document}


          with which you can get



          enter image description here




          Note: I dont know about the status regarding the package tabls. IMO, it should be a second question instead.







          share|improve this answer

































            5














            I'm not sure I understand your question 100%. Personally, I feel tables made with the booktabs package look more modern. Here's an example



            documentclass[12pt,a4paper]{article}
            usepackage[utf8]{vietnam}
            usepackage{amsmath,amssymb}
            usepackage{mathptmx}
            usepackage{graphicx}
            usepackage[margin=2.1cm]{geometry}

            usepackage{booktabs}
            usepackage{diagbox,pict2e}

            begin{document}

            begin{tabular}{*{5}{c}}
            toprule
            2007 & 2008 & 2009 & 2010 & 2011\
            midrule
            08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
            27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
            bottomrule
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer
























            • I think the OP also needs vertical bars.

              – Raaja
              Nov 23 '18 at 8:17






            • 1





              True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

              – G. Gare
              Nov 23 '18 at 8:20











            • thats mainly opinion based and is mainly of personal interests ;)

              – Raaja
              Nov 23 '18 at 8:22














            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%2f461374%2fhow-to-set-row-height-on-a-table%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









            5














            You can use the dirty hack of using rule{depth}{width}{height} in particular row to change the appearance of the row itself.



            documentclass{article}
            %https://tex.stackexchange.com/questions/232202/how-to-add-extra-space-inside-of-a-table
            begin{document}
            begin{tabular}{|*{5}{c}|}
            hline
            2007 & 2008 & 2009 & 2010 & 2011rule[-2ex]{0pt}{6ex}\
            hline
            08.04 & 23.03 & 12.04 & 04.04 & 24.04 rule[1ex]{0pt}{3ex}\
            27.05 & 11.05 & 31.05 & 23.05 & 12.06 rule[-2ex]{0pt}{3ex}\
            hline
            end{tabular}
            end{document}


            with which you can get



            enter image description here




            Note: I dont know about the status regarding the package tabls. IMO, it should be a second question instead.







            share|improve this answer






























              5














              You can use the dirty hack of using rule{depth}{width}{height} in particular row to change the appearance of the row itself.



              documentclass{article}
              %https://tex.stackexchange.com/questions/232202/how-to-add-extra-space-inside-of-a-table
              begin{document}
              begin{tabular}{|*{5}{c}|}
              hline
              2007 & 2008 & 2009 & 2010 & 2011rule[-2ex]{0pt}{6ex}\
              hline
              08.04 & 23.03 & 12.04 & 04.04 & 24.04 rule[1ex]{0pt}{3ex}\
              27.05 & 11.05 & 31.05 & 23.05 & 12.06 rule[-2ex]{0pt}{3ex}\
              hline
              end{tabular}
              end{document}


              with which you can get



              enter image description here




              Note: I dont know about the status regarding the package tabls. IMO, it should be a second question instead.







              share|improve this answer




























                5












                5








                5







                You can use the dirty hack of using rule{depth}{width}{height} in particular row to change the appearance of the row itself.



                documentclass{article}
                %https://tex.stackexchange.com/questions/232202/how-to-add-extra-space-inside-of-a-table
                begin{document}
                begin{tabular}{|*{5}{c}|}
                hline
                2007 & 2008 & 2009 & 2010 & 2011rule[-2ex]{0pt}{6ex}\
                hline
                08.04 & 23.03 & 12.04 & 04.04 & 24.04 rule[1ex]{0pt}{3ex}\
                27.05 & 11.05 & 31.05 & 23.05 & 12.06 rule[-2ex]{0pt}{3ex}\
                hline
                end{tabular}
                end{document}


                with which you can get



                enter image description here




                Note: I dont know about the status regarding the package tabls. IMO, it should be a second question instead.







                share|improve this answer















                You can use the dirty hack of using rule{depth}{width}{height} in particular row to change the appearance of the row itself.



                documentclass{article}
                %https://tex.stackexchange.com/questions/232202/how-to-add-extra-space-inside-of-a-table
                begin{document}
                begin{tabular}{|*{5}{c}|}
                hline
                2007 & 2008 & 2009 & 2010 & 2011rule[-2ex]{0pt}{6ex}\
                hline
                08.04 & 23.03 & 12.04 & 04.04 & 24.04 rule[1ex]{0pt}{3ex}\
                27.05 & 11.05 & 31.05 & 23.05 & 12.06 rule[-2ex]{0pt}{3ex}\
                hline
                end{tabular}
                end{document}


                with which you can get



                enter image description here




                Note: I dont know about the status regarding the package tabls. IMO, it should be a second question instead.








                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 23 '18 at 8:21

























                answered Nov 23 '18 at 8:14









                RaajaRaaja

                5,19721642




                5,19721642























                    5














                    I'm not sure I understand your question 100%. Personally, I feel tables made with the booktabs package look more modern. Here's an example



                    documentclass[12pt,a4paper]{article}
                    usepackage[utf8]{vietnam}
                    usepackage{amsmath,amssymb}
                    usepackage{mathptmx}
                    usepackage{graphicx}
                    usepackage[margin=2.1cm]{geometry}

                    usepackage{booktabs}
                    usepackage{diagbox,pict2e}

                    begin{document}

                    begin{tabular}{*{5}{c}}
                    toprule
                    2007 & 2008 & 2009 & 2010 & 2011\
                    midrule
                    08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
                    27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
                    bottomrule
                    end{tabular}
                    end{document}


                    enter image description here






                    share|improve this answer
























                    • I think the OP also needs vertical bars.

                      – Raaja
                      Nov 23 '18 at 8:17






                    • 1





                      True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

                      – G. Gare
                      Nov 23 '18 at 8:20











                    • thats mainly opinion based and is mainly of personal interests ;)

                      – Raaja
                      Nov 23 '18 at 8:22


















                    5














                    I'm not sure I understand your question 100%. Personally, I feel tables made with the booktabs package look more modern. Here's an example



                    documentclass[12pt,a4paper]{article}
                    usepackage[utf8]{vietnam}
                    usepackage{amsmath,amssymb}
                    usepackage{mathptmx}
                    usepackage{graphicx}
                    usepackage[margin=2.1cm]{geometry}

                    usepackage{booktabs}
                    usepackage{diagbox,pict2e}

                    begin{document}

                    begin{tabular}{*{5}{c}}
                    toprule
                    2007 & 2008 & 2009 & 2010 & 2011\
                    midrule
                    08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
                    27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
                    bottomrule
                    end{tabular}
                    end{document}


                    enter image description here






                    share|improve this answer
























                    • I think the OP also needs vertical bars.

                      – Raaja
                      Nov 23 '18 at 8:17






                    • 1





                      True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

                      – G. Gare
                      Nov 23 '18 at 8:20











                    • thats mainly opinion based and is mainly of personal interests ;)

                      – Raaja
                      Nov 23 '18 at 8:22
















                    5












                    5








                    5







                    I'm not sure I understand your question 100%. Personally, I feel tables made with the booktabs package look more modern. Here's an example



                    documentclass[12pt,a4paper]{article}
                    usepackage[utf8]{vietnam}
                    usepackage{amsmath,amssymb}
                    usepackage{mathptmx}
                    usepackage{graphicx}
                    usepackage[margin=2.1cm]{geometry}

                    usepackage{booktabs}
                    usepackage{diagbox,pict2e}

                    begin{document}

                    begin{tabular}{*{5}{c}}
                    toprule
                    2007 & 2008 & 2009 & 2010 & 2011\
                    midrule
                    08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
                    27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
                    bottomrule
                    end{tabular}
                    end{document}


                    enter image description here






                    share|improve this answer













                    I'm not sure I understand your question 100%. Personally, I feel tables made with the booktabs package look more modern. Here's an example



                    documentclass[12pt,a4paper]{article}
                    usepackage[utf8]{vietnam}
                    usepackage{amsmath,amssymb}
                    usepackage{mathptmx}
                    usepackage{graphicx}
                    usepackage[margin=2.1cm]{geometry}

                    usepackage{booktabs}
                    usepackage{diagbox,pict2e}

                    begin{document}

                    begin{tabular}{*{5}{c}}
                    toprule
                    2007 & 2008 & 2009 & 2010 & 2011\
                    midrule
                    08.04 & 23.03 & 12.04 & 04.04 & 24.04 \
                    27.05 & 11.05 & 31.05 & 23.05 & 12.06 \
                    bottomrule
                    end{tabular}
                    end{document}


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 23 '18 at 8:14









                    G. GareG. Gare

                    4628




                    4628













                    • I think the OP also needs vertical bars.

                      – Raaja
                      Nov 23 '18 at 8:17






                    • 1





                      True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

                      – G. Gare
                      Nov 23 '18 at 8:20











                    • thats mainly opinion based and is mainly of personal interests ;)

                      – Raaja
                      Nov 23 '18 at 8:22





















                    • I think the OP also needs vertical bars.

                      – Raaja
                      Nov 23 '18 at 8:17






                    • 1





                      True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

                      – G. Gare
                      Nov 23 '18 at 8:20











                    • thats mainly opinion based and is mainly of personal interests ;)

                      – Raaja
                      Nov 23 '18 at 8:22



















                    I think the OP also needs vertical bars.

                    – Raaja
                    Nov 23 '18 at 8:17





                    I think the OP also needs vertical bars.

                    – Raaja
                    Nov 23 '18 at 8:17




                    1




                    1





                    True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

                    – G. Gare
                    Nov 23 '18 at 8:20





                    True. He also talks about something being obsolete, and I think there's little thing in the world which is more obsolete than vertical bars in a table.

                    – G. Gare
                    Nov 23 '18 at 8:20













                    thats mainly opinion based and is mainly of personal interests ;)

                    – Raaja
                    Nov 23 '18 at 8:22







                    thats mainly opinion based and is mainly of personal interests ;)

                    – Raaja
                    Nov 23 '18 at 8:22




















                    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%2f461374%2fhow-to-set-row-height-on-a-table%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

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    RAC Tourist Trophy