How to set row height on a table











up vote
3
down vote

favorite












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




























    up vote
    3
    down vote

    favorite












    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


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      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 at 17:54









      fernando.reyes

      1033




      1033










      asked Nov 23 at 7:48









      chishimotoji

      2159




      2159






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          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






























            up vote
            5
            down vote













            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 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 at 8:20










            • thats mainly opinion based and is mainly of personal interests ;)
              – Raaja
              Nov 23 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',
            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








            up vote
            5
            down vote



            accepted










            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



























              up vote
              5
              down vote



              accepted










              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

























                up vote
                5
                down vote



                accepted







                up vote
                5
                down vote



                accepted






                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 at 8:21

























                answered Nov 23 at 8:14









                Raaja

                2,0062523




                2,0062523






















                    up vote
                    5
                    down vote













                    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 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 at 8:20










                    • thats mainly opinion based and is mainly of personal interests ;)
                      – Raaja
                      Nov 23 at 8:22

















                    up vote
                    5
                    down vote













                    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 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 at 8:20










                    • thats mainly opinion based and is mainly of personal interests ;)
                      – Raaja
                      Nov 23 at 8:22















                    up vote
                    5
                    down vote










                    up vote
                    5
                    down vote









                    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 at 8:14









                    G. Gare

                    3707




                    3707












                    • I think the OP also needs vertical bars.
                      – Raaja
                      Nov 23 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 at 8:20










                    • thats mainly opinion based and is mainly of personal interests ;)
                      – Raaja
                      Nov 23 at 8:22




















                    • I think the OP also needs vertical bars.
                      – Raaja
                      Nov 23 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 at 8:20










                    • thats mainly opinion based and is mainly of personal interests ;)
                      – Raaja
                      Nov 23 at 8:22


















                    I think the OP also needs vertical bars.
                    – Raaja
                    Nov 23 at 8:17




                    I think the OP also needs vertical bars.
                    – Raaja
                    Nov 23 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 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 at 8:20












                    thats mainly opinion based and is mainly of personal interests ;)
                    – Raaja
                    Nov 23 at 8:22






                    thats mainly opinion based and is mainly of personal interests ;)
                    – Raaja
                    Nov 23 at 8:22




















                     

                    draft saved


                    draft discarded



















































                     


                    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

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...